org.jboss.jca.adapters.jdbc.jdk6
Class WrappedConnectionJDK6

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.jdk6.WrappedConnectionJDK6
All Implemented Interfaces:
Serializable, Connection, Wrapper

public class WrappedConnectionJDK6
extends WrappedConnection

WrappedConnectionJDK6.

Version:
$Revision: 85945 $
Author:
Adrian Brock
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
Constructor Summary
WrappedConnectionJDK6(BaseWrapperManagedConnection mc)
          Create a new WrappedConnectionJDK6.
 
Method Summary
 Array createArrayOf(String typeName, Object[] elements)
          
 Blob createBlob()
          
 Clob createClob()
          
 NClob createNClob()
          
 SQLXML createSQLXML()
          
 Struct createStruct(String typeName, Object[] attributes)
          
 Properties getClientInfo()
          
 String getClientInfo(String name)
          
 boolean isValid(int timeout)
          
 void setClientInfo(Properties properties)
          
 void setClientInfo(String name, String value)
          
protected  WrappedCallableStatement wrapCallableStatement(CallableStatement statement)
          Wrap callable statement
protected  WrappedPreparedStatement wrapPreparedStatement(PreparedStatement statement)
          Wrap prepared statement
protected  WrappedStatement wrapStatement(Statement statement)
          Wrap statement
 
Methods inherited from class org.jboss.jca.adapters.jdbc.WrappedConnection
checkException, checkStatus, checkTransaction, clearWarnings, close, commit, createStatement, createStatement, createStatement, getAutoCommit, getCatalog, getDataSource, getHoldability, getMetaData, getTransactionIsolation, getTypeMap, getUnderlyingConnection, getWarnings, getWrappedObject, isClosed, isReadOnly, lock, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, 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

WrappedConnectionJDK6

public WrappedConnectionJDK6(BaseWrapperManagedConnection mc)
Create a new WrappedConnectionJDK6.

Parameters:
mc - the managed connection
Method Detail

wrapStatement

protected WrappedStatement wrapStatement(Statement statement)
Wrap statement

Specified by:
wrapStatement in class WrappedConnection
Parameters:
statement - The statement
Returns:
The result

wrapPreparedStatement

protected WrappedPreparedStatement wrapPreparedStatement(PreparedStatement statement)
Wrap prepared statement

Specified by:
wrapPreparedStatement in class WrappedConnection
Parameters:
statement - The statement
Returns:
The result

wrapCallableStatement

protected WrappedCallableStatement wrapCallableStatement(CallableStatement statement)
Wrap callable statement

Specified by:
wrapCallableStatement in class WrappedConnection
Parameters:
statement - The statement
Returns:
The result

createArrayOf

public Array createArrayOf(String typeName,
                           Object[] elements)
                    throws SQLException

Throws:
SQLException

createBlob

public Blob createBlob()
                throws SQLException

Throws:
SQLException

createClob

public Clob createClob()
                throws SQLException

Throws:
SQLException

createNClob

public NClob createNClob()
                  throws SQLException

Throws:
SQLException

createSQLXML

public SQLXML createSQLXML()
                    throws SQLException

Throws:
SQLException

createStruct

public Struct createStruct(String typeName,
                           Object[] attributes)
                    throws SQLException

Throws:
SQLException

getClientInfo

public Properties getClientInfo()
                         throws SQLException

Throws:
SQLException

getClientInfo

public String getClientInfo(String name)
                     throws SQLException

Throws:
SQLException

isValid

public boolean isValid(int timeout)
                throws SQLException

Throws:
SQLException

setClientInfo

public void setClientInfo(Properties properties)
                   throws SQLClientInfoException

Throws:
SQLClientInfoException

setClientInfo

public void setClientInfo(String name,
                          String value)
                   throws SQLClientInfoException

Throws:
SQLClientInfoException


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