Class DiffTransactionState

  • All Implemented Interfaces:
    Transaction.State

    public class DiffTransactionState
    extends Object
    implements Transaction.State
    Transaction state responsible for holding an in memory Diff of any modifications.
    • Field Detail

      • diff

        protected Diff diff
      • transaction

        protected Transaction transaction
        The transaction (ie session) associated with this state
      • state

        protected ContentState state
        ContentState for this transaction used to hold information for FeatureReader implementations
    • Constructor Detail

      • DiffTransactionState

        public DiffTransactionState​(ContentState state)
        Transaction state responsible for holding an in memory Diff.
        Parameters:
        state - ContentState for the transaction
      • DiffTransactionState

        protected DiffTransactionState​(ContentState state,
                                       Diff diff)
        Transaction state responsible for holding an in memory Diff.
        Parameters:
        state - ContentState for the transaction
    • Method Detail

      • getDiff

        public Diff getDiff()
        Access the in memory Diff.
        Returns:
        in memory diff.
      • setTransaction

        public void setTransaction​(Transaction transaction)
        Description copied from interface: Transaction.State
        Provides configuration information for Transaction.State

        setTransaction is called with non null transaction when Transaction.State is putState into a Transaction. This tranasction will be used to determine correct event notification.

        setTransaction is called with null when removeState is called (usually during Transaction.close() ).

        Specified by:
        setTransaction in interface Transaction.State
      • commit

        public void commit()
                    throws IOException
        Description copied from interface: Transaction.State
        Call back used for Transaction.commit()
        Specified by:
        commit in interface Transaction.State
        Throws:
        IOException
      • rollback

        public void rollback()
                      throws IOException
        Description copied from interface: Transaction.State
        Call back used for Transaction.rollback()
        Specified by:
        rollback in interface Transaction.State
        Throws:
        IOException
      • addAuthorization

        public void addAuthorization​(String AuthID)
                              throws IOException
        Description copied from interface: Transaction.State
        Call back used for Transaction.setAuthorization()
        Specified by:
        addAuthorization in interface Transaction.State
        Throws:
        IOException