Class CachedDbEntity
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.entitymanager.cache.CachedDbEntity
-
- All Implemented Interfaces:
Recyclable
public class CachedDbEntity extends java.lang.Object implements Recyclable
A cached entity- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Object
copy
protected DbEntity
dbEntity
protected DbEntityState
entityState
protected java.util.Set<java.lang.String>
flushRelevantEntityReferences
Ids 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 boolean
areFlushRelevantReferencesDetermined()
void
determineEntityReferences()
void
forceSetDirty()
DbEntity
getEntity()
DbEntityState
getEntityState()
java.lang.Class<? extends DbEntity>
getEntityType()
java.util.Set<java.lang.String>
getFlushRelevantEntityReferences()
boolean
isDirty()
Allows checking whether this entity is dirty.void
makeCopy()
void
recycle()
void
setEntity(DbEntity dbEntity)
void
setEntityState(DbEntityState entityState)
java.lang.String
toString()
-
-
-
Field Detail
-
dbEntity
protected DbEntity dbEntity
-
copy
protected java.lang.Object copy
-
entityState
protected DbEntityState entityState
-
flushRelevantEntityReferences
protected java.util.Set<java.lang.String> flushRelevantEntityReferences
Ids of referenced entities of the same entity type
-
-
Method Detail
-
recycle
public void recycle()
- Specified by:
recycle
in 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()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
determineEntityReferences
public void determineEntityReferences()
-
areFlushRelevantReferencesDetermined
public boolean areFlushRelevantReferencesDetermined()
-
getFlushRelevantEntityReferences
public java.util.Set<java.lang.String> getFlushRelevantEntityReferences()
-
getEntity
public DbEntity getEntity()
-
setEntity
public void setEntity(DbEntity dbEntity)
-
getEntityState
public DbEntityState getEntityState()
-
setEntityState
public void setEntityState(DbEntityState entityState)
-
getEntityType
public java.lang.Class<? extends DbEntity> getEntityType()
-
-