public abstract class JdbcObjectsFactory extends Object implements Serializable
| Constructor and Description |
|---|
JdbcObjectsFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract ConnectionHolder |
getConnection(Connection conObject,
ManagedConnectionImpl mcObject,
javax.resource.spi.ConnectionRequestInfo criObject,
boolean statementWrapping,
SQLTraceDelegator sqlTraceDelegator)
To get an instance of ConnectionHolder.
Will return a ConnectionHolder with or without wrapper |
abstract DataSource |
getDataSourceInstance(ManagedConnectionFactoryImpl mcfObject,
javax.resource.spi.ConnectionManager cmObject)
Returns a DataSource instance.
|
static JdbcObjectsFactory |
getInstance()
Returns JDBC Objet Factory for JDBC 3.0 or JDBC 4.0 depending upon the jdbc version
available in JDK. |
protected Connection |
getProxiedConnection(Object conObject,
Class[] connIntf,
SQLTraceDelegator sqlTraceDelegator) |
protected <T> T |
getProxyObject(Object actualObject,
Class<T>[] ifaces,
SQLTraceDelegator sqlTraceDelegator) |
protected static final Logger _logger
public static JdbcObjectsFactory getInstance()
public abstract DataSource getDataSourceInstance(ManagedConnectionFactoryImpl mcfObject, javax.resource.spi.ConnectionManager cmObject)
mcfObject - Managed Connection FactorycmObject - Connection Managerpublic abstract ConnectionHolder getConnection(Connection conObject, ManagedConnectionImpl mcObject, javax.resource.spi.ConnectionRequestInfo criObject, boolean statementWrapping, SQLTraceDelegator sqlTraceDelegator)
conObject - ConnectionmcObject - ManagedConnectioncriObject - Connection Request InfostatementWrapping - Whether to wrap statement objects or not.protected Connection getProxiedConnection(Object conObject, Class[] connIntf, SQLTraceDelegator sqlTraceDelegator)
protected <T> T getProxyObject(Object actualObject, Class<T>[] ifaces, SQLTraceDelegator sqlTraceDelegator) throws Exception
ExceptionCopyright © 2017. All rights reserved.