public static class ContextJavaUtil.ConnectionWrapper
A simple delegating wrapper for java.sql.Connection. The close() method does nothing, only closed when closeInternal() called by TransactionFacade on commit, rollback, or destroy (when transactions are also cleaned up as a last resort). Connections are attached to 2 things: entity group and transaction.
Modifiers | Name | Description |
---|---|---|
protected java.sql.Connection |
con |
Constructor and description |
---|
ConnectionWrapper
(java.sql.Connection con, TransactionFacadeImpl tfi, java.lang.String groupName) |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
abort(Executor executor) |
|
public void |
clearWarnings() |
|
public void |
close() |
|
public void |
closeInternal() |
|
public void |
commit() |
|
public Array |
createArrayOf(java.lang.String typeName, java.lang.Object[] elements) |
|
public Blob |
createBlob() |
|
public Clob |
createClob() |
|
public NClob |
createNClob() |
|
public SQLXML |
createSQLXML() |
|
public Statement |
createStatement() |
|
public Statement |
createStatement(int resultSetType, int resultSetConcurrency) |
|
public Statement |
createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) |
|
public Struct |
createStruct(java.lang.String typeName, java.lang.Object[] attributes) |
|
public boolean |
equals(java.lang.Object obj) |
|
public boolean |
getAutoCommit() |
|
public java.lang.String |
getCatalog() |
|
public java.lang.String |
getClientInfo(java.lang.String name) |
|
public java.util.Properties |
getClientInfo() |
|
public java.lang.String |
getGroupName() |
|
public int |
getHoldability() |
|
public DatabaseMetaData |
getMetaData() |
|
public int |
getNetworkTimeout() |
|
public java.lang.String |
getSchema() |
|
public int |
getTransactionIsolation() |
|
public java.util.Map<java.lang.String, java.lang.Class<?>> |
getTypeMap() |
|
public SQLWarning |
getWarnings() |
|
public int |
hashCode() |
|
public boolean |
isClosed() |
|
public boolean |
isReadOnly() |
|
public boolean |
isValid(int timeout) |
|
public boolean |
isWrapperFor(java.lang.Class<?> iface) |
|
public java.lang.String |
nativeSQL(java.lang.String sql) |
|
public CallableStatement |
prepareCall(java.lang.String sql) |
|
public CallableStatement |
prepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency) |
|
public CallableStatement |
prepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) |
|
public PreparedStatement |
prepareStatement(java.lang.String sql) |
|
public PreparedStatement |
prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency) |
|
public PreparedStatement |
prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) |
|
public PreparedStatement |
prepareStatement(java.lang.String sql, int autoGeneratedKeys) |
|
public PreparedStatement |
prepareStatement(java.lang.String sql, int[] columnIndexes) |
|
public PreparedStatement |
prepareStatement(java.lang.String sql, java.lang.String[] columnNames) |
|
public void |
releaseSavepoint(Savepoint savepoint) |
|
public void |
rollback() |
|
public void |
rollback(Savepoint savepoint) |
|
public void |
setAutoCommit(boolean autoCommit) |
|
public void |
setCatalog(java.lang.String catalog) |
|
public void |
setClientInfo(java.lang.String name, java.lang.String value) |
|
public void |
setClientInfo(java.util.Properties properties) |
|
public void |
setHoldability(int holdability) |
|
public void |
setNetworkTimeout(Executor executor, int milliseconds) |
|
public void |
setReadOnly(boolean readOnly) |
|
public Savepoint |
setSavepoint() |
|
public Savepoint |
setSavepoint(java.lang.String name) |
|
public void |
setSchema(java.lang.String schema) |
|
public void |
setTransactionIsolation(int level) |
|
public void |
setTypeMap(java.util.Map<java.lang.String, java.lang.Class<?>> map) |
|
public java.lang.String |
toString() |
<T> |
public T |
unwrap(java.lang.Class<T> iface) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |