oracle.sqlj.runtime
Class OracleSqljOCIConnectionPool
java.lang.Object
|
+--oracle.jdbc.pool.OracleDataSource
|
+--oracle.jdbc.pool.OracleOCIConnectionPool
|
+--oracle.sqlj.runtime.OracleSqljOCIConnectionPool
- public class OracleSqljOCIConnectionPool
- extends oracle.jdbc.pool.OracleOCIConnectionPool
- implements SqljDataSource
OracleSqljOCIConnectionPool extends the JDBC data source
OracleOCIConnectionPool 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.OracleOCIConnectionPool |
CONNECTION_ID,
CONNECTION_POOL,
CONNPOOL_ACTIVE_SIZE,
CONNPOOL_ALIASED_CONNECTION,
CONNPOOL_CONNECTION,
CONNPOOL_INCREMENT,
CONNPOOL_IS_POOLCREATED,
CONNPOOL_LOGON_MODE,
CONNPOOL_MAX_LIMIT,
CONNPOOL_MIN_LIMIT,
CONNPOOL_NOWAIT,
CONNPOOL_OBJECT,
CONNPOOL_POOL_SIZE,
CONNPOOL_PROXY_CONNECTION,
CONNPOOL_TIMEOUT,
IS_CONNECTION_POOLING,
m_connection_pool,
m_stmtCacheSize,
m_stmtClearMetaData,
PROXY_CERTIFICATE,
PROXY_DISTINGUISHED_NAME,
PROXY_NUM_ROLES,
PROXY_PASSWORD,
PROXY_ROLES,
PROXY_USER_NAME,
PROXYTYPE,
PROXYTYPE_CERTIFICATE,
PROXYTYPE_DISTINGUISHED_NAME,
PROXYTYPE_USER_NAME,
TRANSACTIONS_DISTRIBUTED |
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 |
Methods inherited from class oracle.jdbc.pool.OracleOCIConnectionPool |
close,
connectionClosed,
getActiveSize,
getAliasedConnection,
getConnection,
getConnection,
getConnectionIncrement,
getMaxLimit,
getMinLimit,
getNoWait,
getPoolConfig,
getPoolSize,
getProxyConnection,
getReference,
getStmtCacheSize,
getTimeout,
isDistributedTransEnabled,
isPoolCreated,
isStmtCacheEnabled,
setPoolConfig,
setStmtCacheSize,
setStmtCacheSize |
Methods inherited from class oracle.jdbc.pool.OracleDataSource |
addRefProperties,
getDatabaseName,
getDataSourceName,
getDescription,
getDriverType,
getExplicitCachingEnabled,
getImplicitCachingEnabled,
getLoginTimeout,
getLogWriter,
getMaxStatements,
getNetworkProtocol,
getPassword,
getPortNumber,
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 |
OracleSqljOCIConnectionPool
public OracleSqljOCIConnectionPool()
throws java.sql.SQLException
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 contextpassword
- 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 contextuser
- the user name for the JDBC connection assciated with the returned contextpassword
- 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 contextpassword
- the password for the JDBC connection assciated with the returned contextautoCommit
- 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 contextautoCommit
- 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 contextuser
- the user name for the JDBC connection assciated with the returned contextpassword
- the password for the JDBC connection assciated with the returned contextautoCommit
- the autoCommit setting of the JDBC connection associated with the returned connection context- Throws:
- java.sql.SQLException - the connection context cannot be created