public class TorqueConnectionImpl extends Object implements TorqueConnection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE| Constructor and Description |
|---|
TorqueConnectionImpl(Connection con)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
abort(Executor executor) |
void |
clearWarnings() |
void |
close() |
void |
commit() |
Array |
createArrayOf(String typeName,
Object[] elements) |
Blob |
createBlob() |
Clob |
createClob() |
NClob |
createNClob() |
SQLXML |
createSQLXML() |
Statement |
createStatement() |
Statement |
createStatement(int resultSetType,
int resultSetConcurrency) |
Statement |
createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
Struct |
createStruct(String typeName,
Object[] attributes) |
boolean |
getAutoCommit() |
String |
getCatalog() |
Properties |
getClientInfo() |
String |
getClientInfo(String name) |
int |
getHoldability() |
DatabaseMetaData |
getMetaData() |
int |
getNetworkTimeout() |
String |
getSchema() |
int |
getTransactionIsolation() |
Map<String,Class<?>> |
getTypeMap() |
SQLWarning |
getWarnings() |
boolean |
isClosed() |
boolean |
isCommitted()
Has Transaction.commit() been called successfully on
this connection?
|
boolean |
isReadOnly() |
boolean |
isRolledBack()
Has Transaction.rollback() been called successfully on
this connection?
|
boolean |
isValid(int timeout) |
boolean |
isWrapperFor(Class<?> iface) |
String |
nativeSQL(String sql) |
CallableStatement |
prepareCall(String sql) |
CallableStatement |
prepareCall(String sql,
int resultSetType,
int resultSetConcurrency) |
CallableStatement |
prepareCall(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
PreparedStatement |
prepareStatement(String sql) |
PreparedStatement |
prepareStatement(String sql,
int autoGeneratedKeys) |
PreparedStatement |
prepareStatement(String sql,
int[] columnIndexes) |
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency) |
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
PreparedStatement |
prepareStatement(String sql,
String[] columnNames) |
void |
releaseSavepoint(Savepoint savepoint) |
void |
rollback() |
void |
rollback(Savepoint savepoint) |
void |
setAutoCommit(boolean autoCommit) |
void |
setCatalog(String catalog) |
void |
setClientInfo(Properties properties) |
void |
setClientInfo(String name,
String value) |
void |
setCommitted(boolean committed)
Called by TransactionManagerImpl.commit() to track state
|
void |
setHoldability(int holdability) |
void |
setNetworkTimeout(Executor executor,
int milliseconds) |
void |
setReadOnly(boolean readOnly) |
void |
setRolledBack(boolean rolledBack)
Called by TransactionManagerImpl.rollback() to track state
|
Savepoint |
setSavepoint() |
Savepoint |
setSavepoint(String name) |
void |
setSchema(String schema) |
void |
setTransactionIsolation(int level) |
void |
setTypeMap(Map<String,Class<?>> map) |
<T> T |
unwrap(Class<T> iface) |
public TorqueConnectionImpl(Connection con)
con - Connection objectpublic void setCommitted(boolean committed)
setCommitted in interface TorqueConnectioncommitted - the committed state to setpublic boolean isCommitted()
isCommitted in interface TorqueConnectionpublic void setRolledBack(boolean rolledBack)
setRolledBack in interface TorqueConnectionrolledBack - the rolledBack state to setpublic boolean isRolledBack()
isRolledBack in interface TorqueConnectionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptionWrapper.unwrap(java.lang.Class)public boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionWrapper.isWrapperFor(java.lang.Class)public Statement createStatement() throws SQLException
createStatement in interface ConnectionSQLExceptionConnection.createStatement()public PreparedStatement prepareStatement(String sql) throws SQLException
prepareStatement in interface ConnectionSQLExceptionConnection.prepareStatement(java.lang.String)public CallableStatement prepareCall(String sql) throws SQLException
prepareCall in interface ConnectionSQLExceptionConnection.prepareCall(java.lang.String)public String nativeSQL(String sql) throws SQLException
nativeSQL in interface ConnectionSQLExceptionConnection.nativeSQL(java.lang.String)public void setAutoCommit(boolean autoCommit)
throws SQLException
setAutoCommit in interface ConnectionSQLExceptionConnection.setAutoCommit(boolean)public boolean getAutoCommit()
throws SQLException
getAutoCommit in interface ConnectionSQLExceptionConnection.getAutoCommit()public void commit()
throws SQLException
commit in interface ConnectionSQLExceptionConnection.commit()public void rollback()
throws SQLException
rollback in interface ConnectionSQLExceptionConnection.rollback()public void close()
throws TorqueException
close in interface AutoCloseableclose in interface Connectionclose in interface TorqueConnectionTorqueExceptionConnection.close()public boolean isClosed()
throws SQLException
isClosed in interface ConnectionSQLExceptionConnection.isClosed()public DatabaseMetaData getMetaData() throws SQLException
getMetaData in interface ConnectionSQLExceptionConnection.getMetaData()public void setReadOnly(boolean readOnly)
throws SQLException
setReadOnly in interface ConnectionSQLExceptionConnection.setReadOnly(boolean)public boolean isReadOnly()
throws SQLException
isReadOnly in interface ConnectionSQLExceptionConnection.isReadOnly()public void setCatalog(String catalog) throws SQLException
setCatalog in interface ConnectionSQLExceptionConnection.setCatalog(java.lang.String)public String getCatalog() throws SQLException
getCatalog in interface ConnectionSQLExceptionConnection.getCatalog()public void setTransactionIsolation(int level)
throws SQLException
setTransactionIsolation in interface ConnectionSQLExceptionConnection.setTransactionIsolation(int)public int getTransactionIsolation()
throws SQLException
getTransactionIsolation in interface ConnectionSQLExceptionConnection.getTransactionIsolation()public SQLWarning getWarnings() throws SQLException
getWarnings in interface ConnectionSQLExceptionConnection.getWarnings()public void clearWarnings()
throws SQLException
clearWarnings in interface ConnectionSQLExceptionConnection.clearWarnings()public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException
createStatement in interface ConnectionSQLExceptionConnection.createStatement(int, int)public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
prepareStatement in interface ConnectionSQLExceptionConnection.prepareStatement(java.lang.String, int, int)public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
prepareCall in interface ConnectionSQLExceptionConnection.prepareCall(java.lang.String, int, int)public Map<String,Class<?>> getTypeMap() throws SQLException
getTypeMap in interface ConnectionSQLExceptionConnection.getTypeMap()public void setTypeMap(Map<String,Class<?>> map) throws SQLException
setTypeMap in interface ConnectionSQLExceptionConnection.setTypeMap(java.util.Map)public void setHoldability(int holdability)
throws SQLException
setHoldability in interface ConnectionSQLExceptionConnection.setHoldability(int)public int getHoldability()
throws SQLException
getHoldability in interface ConnectionSQLExceptionConnection.getHoldability()public Savepoint setSavepoint() throws SQLException
setSavepoint in interface ConnectionSQLExceptionConnection.setSavepoint()public Savepoint setSavepoint(String name) throws SQLException
setSavepoint in interface ConnectionSQLExceptionConnection.setSavepoint(java.lang.String)public void rollback(Savepoint savepoint) throws SQLException
rollback in interface ConnectionSQLExceptionConnection.rollback(java.sql.Savepoint)public void releaseSavepoint(Savepoint savepoint) throws SQLException
releaseSavepoint in interface ConnectionSQLExceptionConnection.releaseSavepoint(java.sql.Savepoint)public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
createStatement in interface ConnectionSQLExceptionConnection.createStatement(int, int, int)public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
prepareStatement in interface ConnectionSQLExceptionConnection.prepareStatement(java.lang.String, int, int, int)public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
prepareCall in interface ConnectionSQLExceptionConnection.prepareCall(java.lang.String, int, int, int)public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException
prepareStatement in interface ConnectionSQLExceptionConnection.prepareStatement(java.lang.String, int)public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException
prepareStatement in interface ConnectionSQLExceptionConnection.prepareStatement(java.lang.String, int[])public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException
prepareStatement in interface ConnectionSQLExceptionConnection.prepareStatement(java.lang.String, java.lang.String[])public Clob createClob() throws SQLException
createClob in interface ConnectionSQLExceptionConnection.createClob()public Blob createBlob() throws SQLException
createBlob in interface ConnectionSQLExceptionConnection.createBlob()public NClob createNClob() throws SQLException
createNClob in interface ConnectionSQLExceptionConnection.createNClob()public SQLXML createSQLXML() throws SQLException
createSQLXML in interface ConnectionSQLExceptionConnection.createSQLXML()public boolean isValid(int timeout)
throws SQLException
isValid in interface ConnectionSQLExceptionConnection.isValid(int)public void setClientInfo(String name, String value) throws SQLClientInfoException
setClientInfo in interface ConnectionSQLClientInfoExceptionConnection.setClientInfo(java.lang.String, java.lang.String)public void setClientInfo(Properties properties) throws SQLClientInfoException
setClientInfo in interface ConnectionSQLClientInfoExceptionConnection.setClientInfo(java.util.Properties)public String getClientInfo(String name) throws SQLException
getClientInfo in interface ConnectionSQLExceptionConnection.getClientInfo(java.lang.String)public Properties getClientInfo() throws SQLException
getClientInfo in interface ConnectionSQLExceptionConnection.getClientInfo()public Array createArrayOf(String typeName, Object[] elements) throws SQLException
createArrayOf in interface ConnectionSQLExceptionConnection.createArrayOf(java.lang.String, java.lang.Object[])public Struct createStruct(String typeName, Object[] attributes) throws SQLException
createStruct in interface ConnectionSQLExceptionConnection.createStruct(java.lang.String, java.lang.Object[])public void setSchema(String schema) throws SQLException
setSchema in interface ConnectionSQLExceptionConnection.setSchema(java.lang.String)public String getSchema() throws SQLException
getSchema in interface ConnectionSQLExceptionConnection.getSchema()public void abort(Executor executor) throws SQLException
abort in interface ConnectionSQLExceptionConnection.abort(java.util.concurrent.Executor)public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException
setNetworkTimeout in interface ConnectionSQLExceptionConnection.setNetworkTimeout(java.util.concurrent.Executor, int)public int getNetworkTimeout()
throws SQLException
getNetworkTimeout in interface ConnectionSQLExceptionConnection.getNetworkTimeout()Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.