Class FilterEntity
- java.lang.Object
-
- org.camunda.bpm.engine.impl.persistence.entity.FilterEntity
-
- All Implemented Interfaces:
Serializable,Filter,DbEntity,DbEntityLifecycleAware,HasDbReferences,HasDbRevision
public class FilterEntity extends Object implements Filter, Serializable, DbEntity, HasDbRevision, HasDbReferences, DbEntityLifecycleAware
- Author:
- Sebastian Menski
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringidprotected static EnginePersistenceLoggerLOGprotected Stringnameprotected Stringownerprotected Map<String,Object>propertiesprotected AbstractQueryquerystatic Map<String,JsonObjectConverter<?>>queryConverterprotected StringresourceTypeprotected intrevision
-
Constructor Summary
Constructors Modifier Constructor Description protectedFilterEntity()FilterEntity(String resourceType)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.impl.db.HasDbReferences
getDependentEntities
-
-
-
-
Field Detail
-
LOG
protected static final EnginePersistenceLogger LOG
-
queryConverter
public static final Map<String,JsonObjectConverter<?>> queryConverter
-
id
protected String id
-
resourceType
protected String resourceType
-
name
protected String name
-
owner
protected String owner
-
query
protected AbstractQuery query
-
revision
protected int revision
-
-
Constructor Detail
-
FilterEntity
protected FilterEntity()
-
FilterEntity
public FilterEntity(String resourceType)
-
-
Method Detail
-
getId
public String getId()
-
getResourceType
public String getResourceType()
- Specified by:
getResourceTypein interfaceFilter- Returns:
- the resource type fo the filter
-
getName
public String getName()
-
getOwner
public String getOwner()
-
getQuery
public <T extends Query<?,?>> T getQuery()
-
getQueryInternal
public String getQueryInternal()
-
setQueryInternal
public void setQueryInternal(String query)
-
getProperties
public Map<String,Object> getProperties()
- Specified by:
getPropertiesin interfaceFilter- Returns:
- the properties as map
-
getPropertiesInternal
public String getPropertiesInternal()
-
setProperties
public Filter setProperties(Map<String,Object> properties)
- Specified by:
setPropertiesin interfaceFilter- Parameters:
properties- the properties to set as map- Returns:
- this filter
-
setPropertiesInternal
public void setPropertiesInternal(String properties)
-
getRevision
public int getRevision()
- Specified by:
getRevisionin interfaceHasDbRevision
-
setRevision
public void setRevision(int revision)
- Specified by:
setRevisionin interfaceHasDbRevision
-
getRevisionNext
public int getRevisionNext()
- Specified by:
getRevisionNextin interfaceHasDbRevision
-
extend
public <T extends Query<?,?>> Filter extend(T extendingQuery)
Description copied from interface:FilterExtends the query with the additional query. The query of the filter is therefore modified and if the filter is saved the query is updated.
-
getConverter
protected <T> JsonObjectConverter<T> getConverter()
-
getPersistentState
public Object getPersistentState()
Description copied from interface:DbEntityReturns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.- Specified by:
getPersistentStatein interfaceDbEntity
-
copyFilter
protected FilterEntity copyFilter()
-
postLoad
public void postLoad()
- Specified by:
postLoadin interfaceDbEntityLifecycleAware
-
getReferencedEntityIds
public Set<String> getReferencedEntityIds()
Description copied from interface:HasDbReferencesScope: IN-MEMORY references
- Specified by:
getReferencedEntityIdsin interfaceHasDbReferences- Returns:
- the ids of the entities that this entity references. Should only return ids for entities of the same type
-
getReferencedEntitiesIdAndClass
public Map<String,Class> getReferencedEntitiesIdAndClass()
Description copied from interface:HasDbReferencesScope: IN-MEMORY references
- Specified by:
getReferencedEntitiesIdAndClassin interfaceHasDbReferences- Returns:
- a map of the ids and the entities' classes that this entity references. It's used when trying to determine if there was an Optimistic Locking occurrence on an INSERT or UPDATE of an object of this type.
-
-