public class WrappedConnectionJDK7 extends WrappedConnection
jndiName, spy, spyLogger
bundle
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
Constructor and Description |
---|
WrappedConnectionJDK7(BaseWrapperManagedConnection mc,
boolean spy,
String jndiName)
Create a new WrappedConnectionJDK7.
|
Modifier and Type | Method and Description |
---|---|
void |
abort(Executor executor) |
int |
getNetworkTimeout() |
String |
getSchema() |
void |
setNetworkTimeout(Executor executor,
int milliseconds) |
void |
setSchema(String schema) |
protected WrappedCallableStatement |
wrapCallableStatement(CallableStatement statement,
boolean spy,
String jndiName)
Wrap callable statement
|
protected WrappedPreparedStatement |
wrapPreparedStatement(PreparedStatement statement,
boolean spy,
String jndiName)
Wrap prepared statement
|
protected WrappedStatement |
wrapStatement(Statement statement,
boolean spy,
String jndiName)
Wrap statement
|
checkException, checkStatus, checkTransaction, clearWarnings, close, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getDataSource, getHoldability, getMetaData, getTransactionIsolation, getTypeMap, getUnderlyingConnection, getWarnings, getWrappedObject, getXAResource, invalidate, isClosed, isReadOnly, isValid, isXA, lock, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setDataSource, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap, unlock
isWrapperFor, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWrapperFor, unwrap
public WrappedConnectionJDK7(BaseWrapperManagedConnection mc, boolean spy, String jndiName)
mc
- the managed connectionspy
- The spy valuejndiName
- The jndi nameprotected WrappedStatement wrapStatement(Statement statement, boolean spy, String jndiName)
wrapStatement
in class WrappedConnection
statement
- The statementspy
- The spy valuejndiName
- The jndi nameprotected WrappedPreparedStatement wrapPreparedStatement(PreparedStatement statement, boolean spy, String jndiName)
wrapPreparedStatement
in class WrappedConnection
statement
- The statementspy
- The spy valuejndiName
- The jndi nameprotected WrappedCallableStatement wrapCallableStatement(CallableStatement statement, boolean spy, String jndiName)
wrapCallableStatement
in class WrappedConnection
statement
- The statementspy
- The spy valuejndiName
- The jndi namepublic void setSchema(String schema) throws SQLException
SQLException
public String getSchema() throws SQLException
SQLException
public void abort(Executor executor) throws SQLException
SQLException
public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException
SQLException
public int getNetworkTimeout() throws SQLException
SQLException
Copyright © 2014 IronJacamar (http://www.ironjacamar.org)