Class CachedDbEntity

  • All Implemented Interfaces:

    public class CachedDbEntity
    extends java.lang.Object
    implements Recyclable
    A cached entity
    Daniel Meyer
    • Field Detail

      • copy

        protected java.lang.Object copy
      • flushRelevantEntityReferences

        protected java.util.Set<java.lang.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.
        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 java.lang.String toString()
        toString in class java.lang.Object
      • determineEntityReferences

        public void determineEntityReferences()
      • areFlushRelevantReferencesDetermined

        public boolean areFlushRelevantReferencesDetermined()
      • getFlushRelevantEntityReferences

        public java.util.Set<java.lang.String> getFlushRelevantEntityReferences()
      • getEntity

        public DbEntity getEntity()
      • setEntity

        public void setEntity​(DbEntity dbEntity)
      • setEntityState

        public void setEntityState​(DbEntityState entityState)
      • getEntityType

        public java.lang.Class<? extends DbEntity> getEntityType()