Class CachedEntity


  • public class CachedEntity
    extends java.lang.Object
    • Field Detail

      • entity

        protected Entity entity
        The actual Entity instance.
      • originalPersistentState

        protected java.lang.Object originalPersistentState
        Represents the 'persistence state' at the moment this CachedEntity instance was created. It is used later on to determine if a Entity has been updated, by comparing the 'persistent state' at that moment with this instance here.
    • Constructor Detail

      • CachedEntity

        public CachedEntity​(Entity entity,
                            boolean storeState)
    • Method Detail

      • getEntity

        public Entity getEntity()
      • setEntity

        public void setEntity​(Entity entity)
      • getOriginalPersistentState

        public java.lang.Object getOriginalPersistentState()
      • setOriginalPersistentState

        public void setOriginalPersistentState​(java.lang.Object originalPersistentState)
      • hasChanged

        public boolean hasChanged()