public class CachedDataObjectInstanceVariableContainer extends Object
Modifier and Type | Field and Description |
---|---|
protected DataObjectInstanceVariableContainerImpl |
entity
The actual
Entity instance. |
protected Object |
originalPersistentState
Represents the 'persistence state' at the moment this
CachedEntity instance was created. |
Constructor and Description |
---|
CachedDataObjectInstanceVariableContainer(DataObjectInstanceVariableContainerImpl entity,
boolean storeState) |
Modifier and Type | Method and Description |
---|---|
DataObjectInstanceVariableContainerImpl |
getEntity() |
Object |
getOriginalPersistentState() |
boolean |
hasChanged() |
void |
setEntity(DataObjectInstanceVariableContainerImpl entity) |
void |
setOriginalPersistentState(Object originalPersistentState) |
protected DataObjectInstanceVariableContainerImpl entity
Entity
instance.protected Object originalPersistentState
CachedEntity
instance was created. It is used later on to determine if a Entity
has been updated, by comparing the
'persistent state' at that moment with this instance here.public CachedDataObjectInstanceVariableContainer(DataObjectInstanceVariableContainerImpl entity, boolean storeState)
public DataObjectInstanceVariableContainerImpl getEntity()
public void setEntity(DataObjectInstanceVariableContainerImpl entity)
public Object getOriginalPersistentState()
public void setOriginalPersistentState(Object originalPersistentState)
public boolean hasChanged()