public class CachedDbEntity extends Object implements Recyclable
Modifier and Type | Field and Description |
---|---|
protected Object |
copy |
protected DbEntityState |
entityState |
protected PersistentObject |
persistentObject |
Constructor and Description |
---|
CachedDbEntity() |
Modifier and Type | Method and Description |
---|---|
PersistentObject |
getEntity() |
DbEntityState |
getEntityState() |
boolean |
isDirty()
Allows checking whether this entity is dirty.
|
void |
makeCopy() |
void |
recycle() |
void |
setEntity(PersistentObject persistentObject) |
void |
setEntityState(DbEntityState entityState) |
protected PersistentObject persistentObject
protected Object copy
protected DbEntityState entityState
public void recycle()
recycle
in interface Recyclable
public boolean isDirty()
public void makeCopy()
public PersistentObject getEntity()
public void setEntity(PersistentObject persistentObject)
public DbEntityState getEntityState()
public void setEntityState(DbEntityState entityState)
Copyright © 2015. All rights reserved.