Package org.jboss.jca.adapters.jdbc.jdk7
Class WrappedConnectionJDK7
java.lang.Object
org.jboss.jca.adapters.jdbc.JBossWrapper
org.jboss.jca.adapters.jdbc.WrappedConnection
org.jboss.jca.adapters.jdbc.jdk7.WrappedConnectionJDK7
- All Implemented Interfaces:
Serializable,AutoCloseable,Connection,Wrapper
WrappedConnectionJDK7.
- Author:
- Jesper Pedersen
- See Also:
-
Field Summary
Fields inherited from class org.jboss.jca.adapters.jdbc.WrappedConnection
doLocking, jndiName, spy, spyLoggerFields inherited from class org.jboss.jca.adapters.jdbc.JBossWrapper
bundleFields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE -
Constructor Summary
ConstructorsConstructorDescriptionWrappedConnectionJDK7(BaseWrapperManagedConnection mc, boolean spy, String jndiName, boolean doLocking, ClassLoaderPlugin clp) Create a new WrappedConnectionJDK7. -
Method Summary
Modifier and TypeMethodDescriptionprotected WrappedCallableStatementwrapCallableStatement(CallableStatement statement, boolean spy, String jndiName, boolean doLocking) Wrap callable statementprotected WrappedPreparedStatementwrapPreparedStatement(PreparedStatement statement, boolean spy, String jndiName, boolean doLocking) Wrap prepared statementprotected WrappedStatementwrapStatement(Statement statement, boolean spy, String jndiName, boolean doLocking) Wrap statementMethods inherited from class org.jboss.jca.adapters.jdbc.WrappedConnection
abort, checkException, checkStatus, checkTransaction, clearWarnings, close, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getDataSource, getHoldability, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getUnderlyingConnection, getWarnings, getWrappedObject, getXAResource, invalidate, isClosed, isReadOnly, isValid, isWrapperFor, isXA, lock, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setDataSource, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap, unlock, unwrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.sql.Connection
beginRequest, endRequest, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid
-
Constructor Details
-
WrappedConnectionJDK7
public WrappedConnectionJDK7(BaseWrapperManagedConnection mc, boolean spy, String jndiName, boolean doLocking, ClassLoaderPlugin clp) Create a new WrappedConnectionJDK7.- Parameters:
mc- the managed connectionspy- The spy valuejndiName- The jndi namedoLocking- Do locking
-
-
Method Details
-
wrapStatement
protected WrappedStatement wrapStatement(Statement statement, boolean spy, String jndiName, boolean doLocking) Wrap statement- Specified by:
wrapStatementin classWrappedConnection- Parameters:
statement- The statementspy- The spy valuejndiName- The jndi namedoLocking- Do locking- Returns:
- The result
-
wrapPreparedStatement
protected WrappedPreparedStatement wrapPreparedStatement(PreparedStatement statement, boolean spy, String jndiName, boolean doLocking) Wrap prepared statement- Specified by:
wrapPreparedStatementin classWrappedConnection- Parameters:
statement- The statementspy- The spy valuejndiName- The jndi namedoLocking- Do locking- Returns:
- The result
-
wrapCallableStatement
protected WrappedCallableStatement wrapCallableStatement(CallableStatement statement, boolean spy, String jndiName, boolean doLocking) Wrap callable statement- Specified by:
wrapCallableStatementin classWrappedConnection- Parameters:
statement- The statementspy- The spy valuejndiName- The jndi namedoLocking- Do locking- Returns:
- The result
-