Class CachedDbEntity

  • All Implemented Interfaces:
    Recyclable

    public class CachedDbEntity
    extends Object
    implements Recyclable
    A cached entity
    Author:
    Daniel Meyer
    • Field Detail

      • flushRelevantEntityReferences

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

      • CachedDbEntity

        public CachedDbEntity()
    • Method Detail

      • 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()
      • determineEntityReferences

        public void determineEntityReferences()
      • areFlushRelevantReferencesDetermined

        public boolean areFlushRelevantReferencesDetermined()
      • getFlushRelevantEntityReferences

        public Set<String> getFlushRelevantEntityReferences()
      • getEntity

        public DbEntity getEntity()
      • setEntity

        public void setEntity​(DbEntity dbEntity)
      • setEntityState

        public void setEntityState​(DbEntityState entityState)
      • getEntityType

        public Class<? extends DbEntity> getEntityType()