Interface Transaction.State

All Known Implementing Classes:
DiffTransactionState
Enclosing interface:
Transaction

public static interface Transaction.State
DataStore implementations can use this interface to externalize the state they require to implement Transaction Support.

The commit and rollback methods will be called as required. The intension is that several DataStores can share common transaction state (example: Postgis DataStores sharing a connection to the same database).

Author:
jgarnett, Refractions Reasearch Inc.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Call back used for Transaction.setAuthorization()
    void
    Call back used for Transaction.commit()
    void
    Call back used for Transaction.rollback()
    void
    Provides configuration information for Transaction.State
  • Method Details

    • setTransaction

      void setTransaction(Transaction transaction)
      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() ).

    • addAuthorization

      void addAuthorization(String AuthID) throws IOException
      Call back used for Transaction.setAuthorization()
      Throws:
      IOException
    • commit

      void commit() throws IOException
      Call back used for Transaction.commit()
      Throws:
      IOException
    • rollback

      void rollback() throws IOException
      Call back used for Transaction.rollback()
      Throws:
      IOException