org.camunda.bpm.engine.impl.db.entitymanager.cache
Class CachedDbEntity

java.lang.Object
  extended by org.camunda.bpm.engine.impl.db.entitymanager.cache.CachedDbEntity
All Implemented Interfaces:
Recyclable

public class CachedDbEntity
extends Object
implements Recyclable

A cached entity

Author:
Daniel Meyer

Field Summary
protected  Object copy
           
protected  DbEntity dbEntity
           
protected  DbEntityState entityState
           
protected  Set<String> flushRelevantEntityReferences
          Ids of referenced entities of the same entity type
 
Constructor Summary
CachedDbEntity()
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dbEntity

protected DbEntity dbEntity

copy

protected Object copy

entityState

protected DbEntityState entityState

flushRelevantEntityReferences

protected Set<String> flushRelevantEntityReferences
Ids of referenced entities of the same entity type

Constructor Detail

CachedDbEntity

public CachedDbEntity()
Method Detail

recycle

public void recycle()
Specified by:
recycle in interface Recyclable

isDirty

public boolean isDirty()
Allows checking whether this entity is dirty.

Returns:
true if the entity is dirty (state has changed since it was put into the cache)

forceSetDirty

public void forceSetDirty()

makeCopy

public void makeCopy()

toString

public String toString()
Overrides:
toString in class Object

determineEntityReferences

public void determineEntityReferences()

areFlushRelevantReferencesDetermined

public boolean areFlushRelevantReferencesDetermined()

getFlushRelevantEntityReferences

public Set<String> getFlushRelevantEntityReferences()

getEntity

public DbEntity getEntity()

setEntity

public void setEntity(DbEntity dbEntity)

getEntityState

public DbEntityState getEntityState()

setEntityState

public void setEntityState(DbEntityState entityState)

getEntityType

public Class<? extends DbEntity> getEntityType()


Copyright © 2017 camunda services GmbH. All rights reserved.