Class SavedState


  • public class SavedState
    extends java.lang.Object
    Definition of the saved state of a Persistable object. Used during the rollback process.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean[] loadedFields
      Loaded fields of the persistable instance when the instance is enlisted in the transaction.
      protected Persistable pc
      Copy (shallow) of the Persistable instance when the instance is enlisted in the transaction.
      protected byte persistenceFlags
      Flags of the persistable instance when the instance is enlisted in the transaction.
    • Constructor Summary

      Constructors 
      Constructor Description
      SavedState​(Persistable pc, boolean[] loadedFields, byte persistenceFlags)  
    • Field Detail

      • pc

        protected Persistable pc
        Copy (shallow) of the Persistable instance when the instance is enlisted in the transaction.
      • persistenceFlags

        protected byte persistenceFlags
        Flags of the persistable instance when the instance is enlisted in the transaction.
      • loadedFields

        protected boolean[] loadedFields
        Loaded fields of the persistable instance when the instance is enlisted in the transaction.
    • Constructor Detail

      • SavedState

        public SavedState​(Persistable pc,
                          boolean[] loadedFields,
                          byte persistenceFlags)
    • Method Detail

      • getPersistenceFlags

        public byte getPersistenceFlags()
      • setPersistenceFlags

        public void setPersistenceFlags​(byte persistenceFlags)
      • getLoadedFields

        public boolean[] getLoadedFields()
      • setLoadedFields

        public void setLoadedFields​(boolean[] loadedFields)