Package org.apache.torque.util
Klasse TorqueConnectionImpl
java.lang.Object
org.apache.torque.util.TorqueConnectionImpl
- Alle implementierten Schnittstellen:
AutoCloseable,Connection,Wrapper,TorqueConnection
Encapsulates connection status tracking and allows AutoClosing within Torque.
- 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 -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidvoidvoidclose()voidcommit()createArrayOf(String typeName, Object[] elements) createStatement(int resultSetType, int resultSetConcurrency) createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) createStruct(String typeName, Object[] attributes) booleangetClientInfo(String name) intintintbooleanisClosed()booleanHas Transaction.commit() been called successfully on this connection?booleanbooleanHas Transaction.rollback() been called successfully on this connection?booleanisValid(int timeout) booleanisWrapperFor(Class<?> iface) prepareCall(String sql) prepareCall(String sql, int resultSetType, int resultSetConcurrency) prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) prepareStatement(String sql) prepareStatement(String sql, int autoGeneratedKeys) prepareStatement(String sql, int[] columnIndexes) prepareStatement(String sql, int resultSetType, int resultSetConcurrency) prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) prepareStatement(String sql, String[] columnNames) voidreleaseSavepoint(Savepoint savepoint) voidrollback()voidvoidsetAutoCommit(boolean autoCommit) voidsetCatalog(String catalog) voidsetClientInfo(String name, String value) voidsetClientInfo(Properties properties) voidsetCommitted(boolean committed) Called by TransactionManagerImpl.commit() to track statevoidsetHoldability(int holdability) voidsetNetworkTimeout(Executor executor, int milliseconds) voidsetReadOnly(boolean readOnly) voidsetRolledBack(boolean rolledBack) Called by TransactionManagerImpl.rollback() to track statesetSavepoint(String name) voidvoidsetTransactionIsolation(int level) voidsetTypeMap(Map<String, Class<?>> map) <T> TVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden java.sql.Connection
beginRequest, endRequest, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid
-
Konstruktordetails
-
TorqueConnectionImpl
Constructor- Parameter:
con- Connection object
-
-
Methodendetails
-
setCommitted
public void setCommitted(boolean committed) Called by TransactionManagerImpl.commit() to track state- Angegeben von:
setCommittedin SchnittstelleTorqueConnection- Parameter:
committed- the committed state to set
-
isCommitted
public boolean isCommitted()Has Transaction.commit() been called successfully on this connection?- Angegeben von:
isCommittedin SchnittstelleTorqueConnection- Gibt zurück:
- true, if Transaction.commit() has been called.
-
setRolledBack
public void setRolledBack(boolean rolledBack) Called by TransactionManagerImpl.rollback() to track state- Angegeben von:
setRolledBackin SchnittstelleTorqueConnection- Parameter:
rolledBack- the rolledBack state to set
-
isRolledBack
public boolean isRolledBack()Has Transaction.rollback() been called successfully on this connection?- Angegeben von:
isRolledBackin SchnittstelleTorqueConnection- Gibt zurück:
- true, if Transaction.rollback() has been called.
-
unwrap
- Angegeben von:
unwrapin SchnittstelleWrapper- Löst aus:
SQLException- Siehe auch:
-
isWrapperFor
- Angegeben von:
isWrapperForin SchnittstelleWrapper- Löst aus:
SQLException- Siehe auch:
-
createStatement
- Angegeben von:
createStatementin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
prepareStatement
- Angegeben von:
prepareStatementin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
prepareCall
- Angegeben von:
prepareCallin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
nativeSQL
- Angegeben von:
nativeSQLin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
setAutoCommit
- Angegeben von:
setAutoCommitin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
getAutoCommit
- Angegeben von:
getAutoCommitin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
commit
- Angegeben von:
commitin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
rollback
- Angegeben von:
rollbackin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
close
- Angegeben von:
closein SchnittstelleAutoCloseable- Angegeben von:
closein SchnittstelleConnection- Angegeben von:
closein SchnittstelleTorqueConnection- Löst aus:
TorqueException- Siehe auch:
-
isClosed
- Angegeben von:
isClosedin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
getMetaData
- Angegeben von:
getMetaDatain SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
setReadOnly
- Angegeben von:
setReadOnlyin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
isReadOnly
- Angegeben von:
isReadOnlyin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
setCatalog
- Angegeben von:
setCatalogin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
getCatalog
- Angegeben von:
getCatalogin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
setTransactionIsolation
- Angegeben von:
setTransactionIsolationin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
getTransactionIsolation
- Angegeben von:
getTransactionIsolationin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
getWarnings
- Angegeben von:
getWarningsin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
clearWarnings
- Angegeben von:
clearWarningsin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
createStatement
- Angegeben von:
createStatementin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
prepareStatement
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException - Angegeben von:
prepareStatementin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
prepareCall
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException - Angegeben von:
prepareCallin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
getTypeMap
- Angegeben von:
getTypeMapin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
setTypeMap
- Angegeben von:
setTypeMapin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
setHoldability
- Angegeben von:
setHoldabilityin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
getHoldability
- Angegeben von:
getHoldabilityin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
setSavepoint
- Angegeben von:
setSavepointin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
setSavepoint
- Angegeben von:
setSavepointin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
rollback
- Angegeben von:
rollbackin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
releaseSavepoint
- Angegeben von:
releaseSavepointin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
createStatement
public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Angegeben von:
createStatementin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
prepareStatement
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Angegeben von:
prepareStatementin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
prepareCall
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Angegeben von:
prepareCallin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
prepareStatement
- Angegeben von:
prepareStatementin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
prepareStatement
- Angegeben von:
prepareStatementin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
prepareStatement
- Angegeben von:
prepareStatementin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
createClob
- Angegeben von:
createClobin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
createBlob
- Angegeben von:
createBlobin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
createNClob
- Angegeben von:
createNClobin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
createSQLXML
- Angegeben von:
createSQLXMLin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
isValid
- Angegeben von:
isValidin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
setClientInfo
- Angegeben von:
setClientInfoin SchnittstelleConnection- Löst aus:
SQLClientInfoException- Siehe auch:
-
setClientInfo
- Angegeben von:
setClientInfoin SchnittstelleConnection- Löst aus:
SQLClientInfoException- Siehe auch:
-
getClientInfo
- Angegeben von:
getClientInfoin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
getClientInfo
- Angegeben von:
getClientInfoin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
createArrayOf
- Angegeben von:
createArrayOfin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
createStruct
- Angegeben von:
createStructin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
setSchema
- Angegeben von:
setSchemain SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
getSchema
- Angegeben von:
getSchemain SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
abort
- Angegeben von:
abortin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
setNetworkTimeout
- Angegeben von:
setNetworkTimeoutin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-
getNetworkTimeout
- Angegeben von:
getNetworkTimeoutin SchnittstelleConnection- Löst aus:
SQLException- Siehe auch:
-