Interface CpoTrxAdapter

All Superinterfaces:
AutoCloseable, CpoAdapter, Serializable
All Known Implementing Classes:
JdbcCpoTrxAdapter, JdbcCpoXaAdapter

public interface CpoTrxAdapter extends CpoAdapter, AutoCloseable
CpoTrxAdapter adds commit, rollback, and close functionality to the methods already in CpoAdapter. This allows the user to control the transaction boundries of CPO.
Author:
david berry
  • Method Details

    • commit

      void commit() throws CpoException
      Commits the current transaction behind the CpoTrxAdapter
      Throws:
      CpoException - An error occurred
    • rollback

      void rollback() throws CpoException
      Rollback the current transaction behind the CpoTrxAdapter
      Throws:
      CpoException - An error occurred
    • close

      void close() throws CpoException
      Closes the current transaction behind the CpoTrxAdapter. All subsequent calls to the CpoTrxAdapter will throw an exception.
      Specified by:
      close in interface AutoCloseable
      Throws:
      CpoException
    • isClosed

      boolean isClosed() throws CpoException
      Returns true if the TrxAdapter has been closed, false if it is still active
      Returns:
      true if it is closed
      Throws:
      CpoException - An error occurred