Class FilterEntity
java.lang.Object
org.eximeebpms.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
FieldsModifier and TypeFieldDescriptionprotected Stringprotected static final EnginePersistenceLoggerprotected Stringprotected Stringprotected AbstractQuerystatic final Map<String,JsonObjectConverter<?>> protected Stringprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FilterEntityextend(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 referencesintintvoidpostLoad()voidsetProperties(Map<String, Object> properties) voidsetPropertiesInternal(String properties) setQuery(T query) voidsetQueryInternal(String query) setResourceType(String resourceType) voidsetRevision(int revision) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eximeebpms.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:
getResourceTypein interfaceFilter- Returns:
- the resource type fo the filter
-
getName
-
setName
-
getOwner
-
setOwner
-
getQuery
-
getQueryInternal
-
setQuery
-
setQueryInternal
-
getProperties
- Specified by:
getPropertiesin interfaceFilter- Returns:
- the properties as map
-
getPropertiesInternal
-
setProperties
- Specified by:
setPropertiesin interfaceFilter- Parameters:
properties- the properties to set as map- Returns:
- this filter
-
setPropertiesInternal
-
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
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
-
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
-
postLoad
public void postLoad()- Specified by:
postLoadin interfaceDbEntityLifecycleAware
-
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
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.
-