Interface TorqueConnection

All Superinterfaces:
AutoCloseable, Connection, Wrapper
All Known Implementing Classes:
TorqueConnectionImpl

public interface TorqueConnection extends Connection
Torque's extension to the JDBC connection
Author:
Thomas Vandahl
  • Method Details

    • close

      void close() throws TorqueException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Connection
      Throws:
      TorqueException
    • setCommitted

      void setCommitted(boolean committed)
      Called by TransactionManagerImpl.commit() to track state
      Parameters:
      committed - the committed state to set
    • isCommitted

      boolean isCommitted()
      Has Transaction.commit() been called successfully on this connection?
      Returns:
      true, if Transaction.commit() has been called.
    • setRolledBack

      void setRolledBack(boolean rolledBack)
      Called by TransactionManagerImpl.rollback() to track state
      Parameters:
      rolledBack - the rolledBack state to set
    • isRolledBack

      boolean isRolledBack()
      Has Transaction.rollback() been called successfully on this connection?
      Returns:
      true, if Transaction.rollback() has been called.