Class CachedDbEntity
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.entitymanager.cache.CachedDbEntity
-
- All Implemented Interfaces:
Recyclable
public class CachedDbEntity extends Object implements Recyclable
A cached entity- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected Objectcopyprotected DbEntitydbEntityprotected DbEntityStateentityStateprotected Set<String>flushRelevantEntityReferencesIds of referenced entities of the same entity type
-
Constructor Summary
Constructors Constructor Description CachedDbEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanareFlushRelevantReferencesDetermined()voiddetermineEntityReferences()voidforceSetDirty()DbEntitygetEntity()DbEntityStategetEntityState()Class<? extends DbEntity>getEntityType()Set<String>getFlushRelevantEntityReferences()booleanisDirty()Allows checking whether this entity is dirty.voidmakeCopy()voidrecycle()voidsetEntity(DbEntity dbEntity)voidsetEntityState(DbEntityState entityState)StringtoString()
-
-
-
Field Detail
-
dbEntity
protected DbEntity dbEntity
-
copy
protected Object copy
-
entityState
protected DbEntityState entityState
-
-
Method Detail
-
recycle
public void recycle()
- Specified by:
recyclein interfaceRecyclable
-
isDirty
public boolean isDirty()
Allows checking whether this entity is dirty.- Returns:
- true if the entity is dirty (state has changed since it was put into the cache)
-
forceSetDirty
public void forceSetDirty()
-
makeCopy
public void makeCopy()
-
determineEntityReferences
public void determineEntityReferences()
-
areFlushRelevantReferencesDetermined
public boolean areFlushRelevantReferencesDetermined()
-
getEntity
public DbEntity getEntity()
-
setEntity
public void setEntity(DbEntity dbEntity)
-
getEntityState
public DbEntityState getEntityState()
-
setEntityState
public void setEntityState(DbEntityState entityState)
-
-