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

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

public class WrappedConnectionFactoryJDK7
extends Object
implements WrappedConnectionFactory

WrappedConnectionFactoryJDK7

Author:
Jesper Pedersen

Constructor Summary
WrappedConnectionFactoryJDK7()
          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

WrappedConnectionFactoryJDK7

public WrappedConnectionFactoryJDK7()
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 © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)