org.jboss.jca.adapters.jdbc.jdk7
Class WrappedConnectionJDK7

java.lang.Object
  extended by org.jboss.jca.adapters.jdbc.JBossWrapper
      extended by org.jboss.jca.adapters.jdbc.WrappedConnection
          extended by org.jboss.jca.adapters.jdbc.jdk7.WrappedConnectionJDK7
All Implemented Interfaces:
Serializable, Connection, Wrapper

public class WrappedConnectionJDK7
extends WrappedConnection

WrappedConnectionJDK7.

Author:
Jesper Pedersen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.jca.adapters.jdbc.WrappedConnection
jndiName, spy, spyLogger
 
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
Constructor Summary
WrappedConnectionJDK7(BaseWrapperManagedConnection mc, boolean spy, String jndiName)
          Create a new WrappedConnectionJDK7.
 
Method Summary
 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
 
Methods inherited from class org.jboss.jca.adapters.jdbc.WrappedConnection
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, isClosed, isReadOnly, isValid, 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
 
Methods inherited from class org.jboss.jca.adapters.jdbc.JBossWrapper
isWrapperFor, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Constructor Detail

WrappedConnectionJDK7

public WrappedConnectionJDK7(BaseWrapperManagedConnection mc,
                             boolean spy,
                             String jndiName)
Create a new WrappedConnectionJDK7.

Parameters:
mc - the managed connection
spy - The spy value
jndiName - The jndi name
Method Detail

wrapStatement

protected WrappedStatement wrapStatement(Statement statement,
                                         boolean spy,
                                         String jndiName)
Wrap statement

Specified by:
wrapStatement in class WrappedConnection
Parameters:
statement - The statement
spy - The spy value
jndiName - The jndi name
Returns:
The result

wrapPreparedStatement

protected WrappedPreparedStatement wrapPreparedStatement(PreparedStatement statement,
                                                         boolean spy,
                                                         String jndiName)
Wrap prepared statement

Specified by:
wrapPreparedStatement in class WrappedConnection
Parameters:
statement - The statement
spy - The spy value
jndiName - The jndi name
Returns:
The result

wrapCallableStatement

protected WrappedCallableStatement wrapCallableStatement(CallableStatement statement,
                                                         boolean spy,
                                                         String jndiName)
Wrap callable statement

Specified by:
wrapCallableStatement in class WrappedConnection
Parameters:
statement - The statement
spy - The spy value
jndiName - The jndi name
Returns:
The result

setSchema

public void setSchema(String schema)
               throws SQLException

Throws:
SQLException

getSchema

public String getSchema()
                 throws SQLException

Throws:
SQLException

abort

public void abort(Executor executor)
           throws SQLException

Throws:
SQLException

setNetworkTimeout

public void setNetworkTimeout(Executor executor,
                              int milliseconds)
                       throws SQLException

Throws:
SQLException

getNetworkTimeout

public int getNetworkTimeout()
                      throws SQLException

Throws:
SQLException


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)