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

java.lang.Object
  extended by org.jboss.jca.adapters.jdbc.jdk6.WrappedConnectionFactoryJDK6
All Implemented Interfaces:
WrappedConnectionFactory

public class WrappedConnectionFactoryJDK6
extends Object
implements WrappedConnectionFactory

WrappedConnectionFactoryJDK6

Version:
$Revision: 85945 $
Author:
Adrian Brock

Constructor Summary
WrappedConnectionFactoryJDK6()
          Constructor
 
Method Summary
 CachedCallableStatement createCachedCallableStatement(CallableStatement cs)
          Create a cached callable statement
 CachedPreparedStatement createCachedPreparedStatement(PreparedStatement ps)
          Create a cached prepared statement
 WrappedConnection createWrappedConnection(BaseWrapperManagedConnection mc, boolean spy, String jndiName)
          Wrap connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrappedConnectionFactoryJDK6

public WrappedConnectionFactoryJDK6()
Constructor

Method Detail

createWrappedConnection

public WrappedConnection createWrappedConnection(BaseWrapperManagedConnection mc,
                                                 boolean spy,
                                                 String jndiName)
Wrap connection

Specified by:
createWrappedConnection in interface WrappedConnectionFactory
Parameters:
mc - The managed connection
spy - The spy value
jndiName - The jndi name
Returns:
The result

createCachedPreparedStatement

public CachedPreparedStatement createCachedPreparedStatement(PreparedStatement ps)
                                                      throws SQLException
Create a cached prepared statement

Specified by:
createCachedPreparedStatement in interface WrappedConnectionFactory
Parameters:
ps - The prepared statement
Returns:
The cached prepared statement
Throws:
SQLException - Thrown if an error occurs

createCachedCallableStatement

public CachedCallableStatement createCachedCallableStatement(CallableStatement cs)
                                                      throws SQLException
Create a cached callable statement

Specified by:
createCachedCallableStatement in interface WrappedConnectionFactory
Parameters:
cs - The callable statement
Returns:
The cached callable statement
Throws:
SQLException - Thrown if an error occurs


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