public class CachedDbEntity extends Object implements Recyclable
Modifier and Type | Field and Description |
---|---|
protected Object |
copy |
protected DbEntity |
dbEntity |
protected DbEntityState |
entityState |
protected Set<String> |
flushRelevantEntityReferences
Ids of referenced entities of the same entity type
|
Constructor and Description |
---|
CachedDbEntity() |
Modifier and Type | Method and Description |
---|---|
boolean |
areFlushRelevantReferencesDetermined() |
void |
determineEntityReferences() |
void |
forceSetDirty() |
DbEntity |
getEntity() |
DbEntityState |
getEntityState() |
Class<? extends DbEntity> |
getEntityType() |
Set<String> |
getFlushRelevantEntityReferences() |
boolean |
isDirty()
Allows checking whether this entity is dirty.
|
void |
makeCopy() |
void |
recycle() |
void |
setEntity(DbEntity dbEntity) |
void |
setEntityState(DbEntityState entityState) |
String |
toString() |
protected DbEntity dbEntity
protected Object copy
protected DbEntityState entityState
public void recycle()
recycle
in interface Recyclable
public boolean isDirty()
public void forceSetDirty()
public void makeCopy()
public void determineEntityReferences()
public boolean areFlushRelevantReferencesDetermined()
public DbEntity getEntity()
public void setEntity(DbEntity dbEntity)
public DbEntityState getEntityState()
public void setEntityState(DbEntityState entityState)
Copyright © 2017. All rights reserved.