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:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected static final EnginePersistenceLogger
protected String
protected String
protected AbstractQuery
static final Map<String,
JsonObjectConverter<?>> protected String
protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected FilterEntity
extend
(T extendingQuery) Extends the query with the additional query.protected <T> JsonObjectConverter<T>
getId()
getName()
getOwner()
Returns a representation of the object, as would be stored in the database.<T extends Query<?,
?>>
TgetQuery()
Scope: IN-MEMORY referencesScope: IN-MEMORY referencesint
int
void
postLoad()
void
setProperties
(Map<String, Object> properties) void
setPropertiesInternal
(String properties) setQuery
(T query) void
setQueryInternal
(String query) setResourceType
(String resourceType) void
setRevision
(int revision) 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 Details
-
LOG
-
queryConverter
-
id
-
resourceType
-
name
-
owner
-
query
-
properties
-
revision
protected int revision
-
-
Constructor Details
-
FilterEntity
protected FilterEntity() -
FilterEntity
-
-
Method Details
-
setId
-
getId
-
setResourceType
-
getResourceType
- Specified by:
getResourceType
in interfaceFilter
- Returns:
- the resource type fo the filter
-
getName
-
setName
-
getOwner
-
setOwner
-
getQuery
-
getQueryInternal
-
setQuery
-
setQueryInternal
-
getProperties
- Specified by:
getProperties
in interfaceFilter
- Returns:
- the properties as map
-
getPropertiesInternal
-
setProperties
- Specified by:
setProperties
in interfaceFilter
- Parameters:
properties
- the properties to set as map- Returns:
- this filter
-
setPropertiesInternal
-
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
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
-
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
-
postLoad
public void postLoad()- Specified by:
postLoad
in interfaceDbEntityLifecycleAware
-
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
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.
-