oracle.sqlj.runtime
Class OracleSqljXADataSource

java.lang.Object
  |
  +--oracle.jdbc.pool.OracleDataSource
        |
        +--oracle.jdbc.pool.OracleConnectionPoolDataSource
              |
              +--oracle.jdbc.xa.OracleXADataSource
                    |
                    +--oracle.sqlj.runtime.OracleSqljXADataSource

public abstract class OracleSqljXADataSource
extends oracle.jdbc.xa.OracleXADataSource
implements ConnectionContextFactory

OracleSqljXADataSource extends the JDBC data source abstract class OracleXADataSource 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

Field Summary
protected  ConnectionContextFactory m_ctxFactory
           
 
Fields inherited from class oracle.jdbc.xa.OracleXADataSource
m_nativeXA
 
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
 
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.xa.OracleXADataSource
getNativeXA, getXAConnection, getXAConnection, setNativeXA
 
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
 

Field Detail

m_ctxFactory

protected ConnectionContextFactory m_ctxFactory
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.
Specified by:
getDefaultContext in interface ConnectionContextFactory
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.
Specified by:
getDefaultContext in interface ConnectionContextFactory
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.
Specified by:
getContext in interface ConnectionContextFactory
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.
Specified by:
getContext in interface ConnectionContextFactory
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.
Specified by:
getDefaultContext in interface ConnectionContextFactory
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.
Specified by:
getDefaultContext in interface ConnectionContextFactory
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.
Specified by:
getContext in interface ConnectionContextFactory
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.
Specified by:
getContext in interface ConnectionContextFactory
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