FileDocCategorySizeDatePackage
Jdbc30ObjectsFactory.javaAPI DocGlassfish v2 API3667Fri May 04 22:36:06 BST 2007com.sun.gjc.spi.jdbc30

Jdbc30ObjectsFactory

public class Jdbc30ObjectsFactory extends com.sun.gjc.spi.JdbcObjectsFactory
Factory to create jdbc30 connection & datasource

Fields Summary
Constructors Summary
Methods Summary
public com.sun.gjc.spi.base.ConnectionHoldergetConnection(java.sql.Connection conObject, com.sun.gjc.spi.ManagedConnection mcObject, javax.resource.spi.ConnectionRequestInfo criObject, boolean statementWrapping)
To get an instance of ConnectionHolder30.
Will return a ConnectionHolder30 with or without wrapper

param
conObject Connection
param
mcObject ManagedConnection
param
criObject ConnectionRequestInfo
param
statementWrapping Whether to wrap statement objects or not.
return
ConnectionHolder

        ConnectionHolder connection = null;

        if (statementWrapping) {
            connection = new ConnectionWrapper30(conObject, mcObject, criObject);
        } else {
            connection = new ConnectionHolder30(conObject, mcObject, criObject);
        }
        return connection;
    
public javax.sql.DataSourcegetDataSourceInstance(com.sun.gjc.spi.ManagedConnectionFactory mcfObject, javax.resource.spi.ConnectionManager cmObject)
Returns a DataSource instance for JDBC 3.0

param
mcfObject Managed Connection Factory
param
cmObject Connection Manager
return
DataSource

        return new DataSource30(mcfObject, cmObject);