Class CachedEntity
- java.lang.Object
-
- org.flowable.common.engine.impl.persistence.cache.CachedEntity
-
public class CachedEntity extends Object
- Author:
- Joram Barrez
-
-
Field Summary
Fields Modifier and Type Field Description protected EntityentityThe actualEntityinstance.protected ObjectoriginalPersistentStateRepresents the 'persistence state' at the moment thisCachedEntityinstance was created.
-
Constructor Summary
Constructors Constructor Description CachedEntity(Entity entity, boolean storeState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntitygetEntity()ObjectgetOriginalPersistentState()booleanhasChanged()voidsetEntity(Entity entity)voidsetOriginalPersistentState(Object originalPersistentState)
-
-
-
Field Detail
-
originalPersistentState
protected Object originalPersistentState
Represents the 'persistence state' at the moment thisCachedEntityinstance was created. It is used later on to determine if aEntityhas been updated, by comparing the 'persistent state' at that moment with this instance here.
-
-
Constructor Detail
-
CachedEntity
public CachedEntity(Entity entity, boolean storeState)
-
-
Method Detail
-
getEntity
public Entity getEntity()
-
setEntity
public void setEntity(Entity entity)
-
getOriginalPersistentState
public Object getOriginalPersistentState()
-
setOriginalPersistentState
public void setOriginalPersistentState(Object originalPersistentState)
-
hasChanged
public boolean hasChanged()
-
-