Package org.jboss.jca.adapters.jdbc.jdk8
Class WrappedConnectionFactoryJDK8
java.lang.Object
org.jboss.jca.adapters.jdbc.jdk8.WrappedConnectionFactoryJDK8
- All Implemented Interfaces:
WrappedConnectionFactory
WrappedConnectionFactoryJDK8
- Author:
- Jesper Pedersen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a cached callable statementCreate a cached prepared statementcreateWrappedConnection(BaseWrapperManagedConnection mc, boolean spy, String jndiName, boolean doLocking, ClassLoaderPlugin clp) Wrap connection
-
Constructor Details
-
WrappedConnectionFactoryJDK8
public WrappedConnectionFactoryJDK8()Constructor
-
-
Method Details
-
createWrappedConnection
public WrappedConnection createWrappedConnection(BaseWrapperManagedConnection mc, boolean spy, String jndiName, boolean doLocking, ClassLoaderPlugin clp) Wrap connection- Specified by:
createWrappedConnectionin interfaceWrappedConnectionFactory- Parameters:
mc- The managed connectionspy- The spy valuejndiName- The jndi namedoLocking- Do locking- Returns:
- The result
-
createCachedPreparedStatement
public CachedPreparedStatement createCachedPreparedStatement(PreparedStatement ps) throws SQLException Create a cached prepared statement- Specified by:
createCachedPreparedStatementin interfaceWrappedConnectionFactory- 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:
createCachedCallableStatementin interfaceWrappedConnectionFactory- Parameters:
cs- The callable statement- Returns:
- The cached callable statement
- Throws:
SQLException- Thrown if an error occurs
-