Class CachedEntity


  • public class CachedEntity
    extends Object
    Author:
    Joram Barrez
    • Field Detail

      • entity

        protected Entity entity
        The actual Entity instance.
      • originalPersistentState

        protected 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 Object getOriginalPersistentState()
      • setOriginalPersistentState

        public void setOriginalPersistentState​(Object originalPersistentState)
      • hasChanged

        public boolean hasChanged()