public class CachedEntity extends Object
Modifier and Type | Field and Description |
---|---|
protected Entity |
entity
The actual
Entity instance. |
protected Object |
originalPersistentState
Represents the 'persistence state' at the moment this
CachedEntity instance was created. |
Constructor and Description |
---|
CachedEntity(Entity entity,
boolean storeState) |
Modifier and Type | Method and Description |
---|---|
Entity |
getEntity() |
Object |
getOriginalPersistentState() |
boolean |
hasChanged() |
void |
setEntity(Entity entity) |
void |
setOriginalPersistentState(Object originalPersistentState) |
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 CachedEntity(Entity entity, boolean storeState)
public Entity getEntity()
public void setEntity(Entity entity)
public Object getOriginalPersistentState()
public void setOriginalPersistentState(Object originalPersistentState)
public boolean hasChanged()
Copyright © 2015 Alfresco. All rights reserved.