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 String
id
protected static EnginePersistenceLogger
LOG
protected String
name
protected String
owner
protected Map<String,Object>
properties
protected AbstractQuery
query
static Map<String,JsonObjectConverter<?>>
queryConverter
protected String
resourceType
protected int
revision
-
Constructor Summary
Constructors Modifier Constructor Description protected
FilterEntity()
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:
getResourceType
in 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:
getProperties
in interfaceFilter
- Returns:
- the properties as map
-
getPropertiesInternal
public String getPropertiesInternal()
-
setProperties
public Filter setProperties(Map<String,Object> properties)
- Specified by:
setProperties
in interfaceFilter
- Parameters:
properties
- the properties to set as map- Returns:
- this filter
-
setPropertiesInternal
public void setPropertiesInternal(String properties)
-
getRevision
public int getRevision()
- Specified by:
getRevision
in interfaceHasDbRevision
-
setRevision
public void setRevision(int revision)
- Specified by:
setRevision
in interfaceHasDbRevision
-
getRevisionNext
public int getRevisionNext()
- Specified by:
getRevisionNext
in interfaceHasDbRevision
-
extend
public <T extends Query<?,?>> Filter extend(T extendingQuery)
Description copied from interface:Filter
Extends 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:DbEntity
Returns 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:
getPersistentState
in interfaceDbEntity
-
copyFilter
protected FilterEntity copyFilter()
-
postLoad
public void postLoad()
- Specified by:
postLoad
in interfaceDbEntityLifecycleAware
-
getReferencedEntityIds
public Set<String> getReferencedEntityIds()
Description copied from interface:HasDbReferences
Scope: IN-MEMORY references
- Specified by:
getReferencedEntityIds
in 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:HasDbReferences
Scope: IN-MEMORY references
- Specified by:
getReferencedEntitiesIdAndClass
in 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.
-
-