Package org.apache.torque.util

# Schnittstelle TorqueConnection

Alle Superschnittstellen:
  `AutoCloseable`, `Connection`, `Wrapper`

Alle bekannten Implementierungsklassen:
  `TorqueConnectionImpl`

public interface TorqueConnection extends Connection
Torque's extension to the JDBC connection

Autor:
  Thomas Vandahl

- ## Feldübersicht

  ### Von Schnittstelle geerbte Felder java.sql.Connection

  `TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE`

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `void`
  `close()`
  `boolean`
  `isCommitted()`
  Has Transaction.commit() been called successfully on this connection?
  `boolean`
  `isRolledBack()`
  Has Transaction.rollback() been called successfully on this connection?
  `void`
  `setCommitted(boolean committed)`
  Called by TransactionManagerImpl.commit() to track state
  `void`
  `setRolledBack(boolean rolledBack)`
  Called by TransactionManagerImpl.rollback() to track state

  ### Von Schnittstelle geerbte Methoden java.sql.Connection

  `abort, beginRequest, clearWarnings, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, endRequest, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, isValid, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid, setTransactionIsolation, setTypeMap`

  ### Von Schnittstelle geerbte Methoden java.sql.Wrapper

  `isWrapperFor, unwrap`

- ## Methodendetails

  - ### close

    void close() throws TorqueException
    Angegeben von:
      `close` in Schnittstelle `AutoCloseable`
    Angegeben von:
      `close` in Schnittstelle `Connection`
    Löst aus:
      `TorqueException`

  - ### setCommitted

    void setCommitted(boolean committed)
    Called by TransactionManagerImpl.commit() to track state
    Parameter:
      `committed` - the committed state to set

  - ### isCommitted

    boolean isCommitted()
    Has Transaction.commit() been called successfully on this connection?
    Gibt zurück:
      true, if Transaction.commit() has been called.

  - ### setRolledBack

    void setRolledBack(boolean rolledBack)
    Called by TransactionManagerImpl.rollback() to track state
    Parameter:
      `rolledBack` - the rolledBack state to set

  - ### isRolledBack

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