oracle.sqlj.runtime
Class OracleSqljConnectionPoolDataSource

java.lang.Object
  |
  +--oracle.jdbc.pool.OracleDataSource
        |
        +--oracle.jdbc.pool.OracleConnectionPoolDataSource
              |
              +--oracle.sqlj.runtime.OracleSqljConnectionPoolDataSource

public class OracleSqljConnectionPoolDataSource
extends oracle.jdbc.pool.OracleConnectionPoolDataSource
implements SqljConnectionPoolDataSource, SqljDataSource

OracleSqljConnectionPoolDataSource extends the JDBC data source OracleSqljConnectionPoolDataSource with ConnectionContextFactory APIs, which provide convinent ways of obtaining connection context within SQLJ programs. This interface requires Java 2 Enterprise Edition (J2EE).

See Also:
Serialized Form

Fields inherited from class oracle.jdbc.pool.OracleDataSource
m_databaseName, m_dataSourceName, m_description, m_driverType, m_explicitCachingEnabled, m_implicitCachingEnabled, m_maxStatements, m_networkProtocol, m_password, m_portNumber, m_pw, m_serverName, m_serviceName, m_timeout, m_tnsentry, m_url, m_user
 
Constructor Summary
OracleSqljConnectionPoolDataSource()
           
 
Method Summary
 ConnectionContext getContext(java.lang.Class ctxClass)
          Returns an instance of ctxClass.
 ConnectionContext getContext(java.lang.Class ctxClass, boolean autoCommit)
          Returns an instance of ctxClass.
 ConnectionContext getContext(java.lang.Class ctxClass, java.lang.String user, java.lang.String password)
          Returns an instance of ctxClass.
 ConnectionContext getContext(java.lang.Class ctxClass, java.lang.String user, java.lang.String password, boolean autoCommit)
          Returns an instance of ctxClass.
 DefaultContext getDefaultContext()
          Returns a DefaultContext instance.
 DefaultContext getDefaultContext(boolean autoCommit)
          Returns a DefaultContext instance.
 DefaultContext getDefaultContext(java.lang.String user, java.lang.String password)
          Returns a DefaultContext instance.
 DefaultContext getDefaultContext(java.lang.String user, java.lang.String password, boolean autoCommit)
          Returns a DefaultContext instance.
 
Methods inherited from class oracle.jdbc.pool.OracleConnectionPoolDataSource
getPhysicalConnection, getPhysicalConnection, getPhysicalConnection, getPooledConnection, getPooledConnection
 
Methods inherited from class oracle.jdbc.pool.OracleDataSource
addRefProperties, getConnection, getConnection, getDatabaseName, getDataSourceName, getDescription, getDriverType, getExplicitCachingEnabled, getImplicitCachingEnabled, getLoginTimeout, getLogWriter, getMaxStatements, getNetworkProtocol, getPassword, getPortNumber, getReference, getServerName, getServiceName, getTNSEntryName, getURL, getUser, setDatabaseName, setDataSourceName, setDescription, setDriverType, setExplicitCachingEnabled, setImplicitCachingEnabled, setLoginTimeout, setLogWriter, setMaxStatements, setNetworkProtocol, setPassword, setPortNumber, setServerName, setServiceName, setTNSEntryName, setURL, setUser, trace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleSqljConnectionPoolDataSource

public OracleSqljConnectionPoolDataSource()
                                   throws java.sql.SQLException
Method Detail

getDefaultContext

public DefaultContext getDefaultContext()
                                 throws java.sql.SQLException
Returns a DefaultContext instance. A new logical JDBC connection handle is created to be associated with that DefaultContext instance.
Throws:
java.sql.SQLException - a DefaultContext instance cannot be created

getDefaultContext

public DefaultContext getDefaultContext(java.lang.String user,
                                        java.lang.String password)
                                 throws java.sql.SQLException
Returns a DefaultContext instance. A new logical JDBC connection handle is created with the given user and password and is associated with that DefaultContext instance.
Parameters:
user - the user name for the JDBC connection assciated with the returned context
password - the password for the JDBC connection assciated with the returned context
Throws:
java.sql.SQLException - a DefaultContext instance cannot be created

getContext

public ConnectionContext getContext(java.lang.Class ctxClass)
                             throws java.sql.SQLException
Returns an instance of ctxClass. A new logical JDBC connection handle is created with the given user and password and is associated with that instance.
Parameters:
ctxClass - the type of the returned connection context
Throws:
java.sql.SQLException - the connection context cannot be created

getContext

public ConnectionContext getContext(java.lang.Class ctxClass,
                                    java.lang.String user,
                                    java.lang.String password)
                             throws java.sql.SQLException
Returns an instance of ctxClass. A new logical JDBC connection handle is created with the given user and password and is associated with that instance.
Parameters:
ctxClass - the type of the returned connection context
user - the user name for the JDBC connection assciated with the returned context
password - the password for the JDBC connection assciated with the returned context
Throws:
java.sql.SQLException - the connection context cannot be created

getDefaultContext

public DefaultContext getDefaultContext(boolean autoCommit)
                                 throws java.sql.SQLException
Returns a DefaultContext instance. A new logical JDBC connection handle is associated with that DefaultContext instance.
Parameters:
autoCommit - the autoCommit setting of the JDBC connection associated with the returned connection context
Throws:
java.sql.SQLException - a DefaultContext instance cannot be created

getDefaultContext

public DefaultContext getDefaultContext(java.lang.String user,
                                        java.lang.String password,
                                        boolean autoCommit)
                                 throws java.sql.SQLException
Returns a DefaultContext instance. A new logical JDBC connection handle is created with the given user and password and is associated with that DefaultContext instance.
Parameters:
user - the user name for the JDBC connection assciated with the returned context
password - the password for the JDBC connection assciated with the returned context
autoCommit - the autoCommit setting of the JDBC connection associated with the returned connection context
Throws:
java.sql.SQLException - a DefaultContext instance cannot be created

getContext

public ConnectionContext getContext(java.lang.Class ctxClass,
                                    boolean autoCommit)
                             throws java.sql.SQLException
Returns an instance of ctxClass. A new logical JDBC connection handle is created and is associated with that instance.
Parameters:
ctxClass - the type of the returned connection context
autoCommit - the autoCommit setting of the JDBC connection associated with the returned connection context
Throws:
java.sql.SQLException - a DefaultContext instance cannot be created

getContext

public ConnectionContext getContext(java.lang.Class ctxClass,
                                    java.lang.String user,
                                    java.lang.String password,
                                    boolean autoCommit)
                             throws java.sql.SQLException
Returns an instance of ctxClass. A new logical JDBC connection handle is created and is associated with that instance.
Parameters:
ctxClass - the type of the returned connection context
user - the user name for the JDBC connection assciated with the returned context
password - the password for the JDBC connection assciated with the returned context
autoCommit - the autoCommit setting of the JDBC connection associated with the returned connection context
Throws:
java.sql.SQLException - the connection context cannot be created