public class OracleConnectionPoolDataSourceImpl extends OracleDataSourceImpl implements oracle.jdbc.replay.internal.OracleConnectionPoolDataSource, Serializable, Referenceable, ObjectFactory
CHECKSUM_PROPERTY, clientChecksum11203x, clientChecksum12x, connectionProperties, FAILOVER_RESTORE_AUTO, FAILOVER_RESTORE_LEVEL1, FAILOVER_RESTORE_NONE, FAILOVER_RESTORE_PROPERTY, FAILOVER_TYPE_AUTO, FAILOVER_TYPE_PROPERTY, FAILOVER_TYPE_TRANSACTION, IGNORE_AC_CONTEXT_PROPERTY, INITIATION_TIMEOUT_PROPERTY, isAutoACEnabled, isFirstConnection, isReplayInDynamicMode, isStateRestorationAuto, isStateRestorationEnabled, isTransactionReplayEnabled, ods, odsReconnectOnly, password, RECONNECT_DELAY_PROPERTY, RECONNECT_RETRIES_PROPERTY, reconnectDelay, reconnectionProperties, reconnectRetries, replayInitiationTimeout, SESSION_STATE_CONSISTENCY_STATIC, SESSION_STATE_PROPERTY, user
CONNECTION_PROPERTIES, DATA_SOURCE_NAME, DATABASE_NAME, DESCRIPTION, EXPLICIT_CACHING_ENABLED, IMPLICIT_CACHING_ENABLED, MAX_STATEMENTS, NETWORK_PROTOCOL, PASSWORD, PORT_NUMBER, ROLE_NAME, SERVER_NAME, URL, USER
Constructor and Description |
---|
OracleConnectionPoolDataSourceImpl() |
Modifier and Type | Method and Description |
---|---|
OraclePooledConnectionBuilder |
createPooledConnectionBuilder()
Creates a new
OraclePooledConnectionBuilder instance |
Connection |
getConnection() |
Connection |
getConnection(Properties props) |
Connection |
getConnection(String usr, String pwd)
Attempts to obtain a database connection with the specified user and password.
|
Connection |
getConnection(String usr, String pwd, Properties props) |
protected Connection |
getPhysicalConnection()
Gets a physical connection with default url, user name, and password.
|
protected Connection |
getPhysicalConnection(String _user, String _passwd)
Gets a physical connection with the default URL and given user name and password.
|
protected Connection |
getPhysicalConnection(String _url, String _user, String _passwd)
Gets a physical connection with the given url, user name, and password.
|
PooledConnection |
getPooledConnection()
Attempts to establish a database connection.
|
protected OraclePooledConnection |
getPooledConnection(OracleConnectionBuilderImpl connBuilder) |
PooledConnection |
getPooledConnection(String _user, String _passwd)
Attempts to establish a database connection.
|
clearReplayStatistics, createConnectionBuilder, enableACAndProxifyIfNecessary, getConnection, getConnectionInitializationCallback, getConnectionNoProxy, getConnectionProperties, getConnectionProperty, getDatabaseName, getDataSourceName, getDescription, getExplicitCachingEnabled, getImplicitCachingEnabled, getLoginTimeout, getLogWriter, getMaxStatements, getNetworkProtocol, getObjectInstance, getParentLogger, getPortNumber, getProxyFactory, getReference, getReplayStatistics, getRoleName, getServerName, getURL, getUser, isWrapperFor, registerConnectionInitializationCallback, setConnectionProperties, setConnectionProperty, setDatabaseName, setDataSourceName, setDescription, setExplicitCachingEnabled, setImplicitCachingEnabled, setLoginTimeout, setLogWriter, setMaxStatements, setNetworkProtocol, setPassword, setPortNumber, setRoleName, setServerName, setupACSpecificProperties, setURL, setUser, unregisterConnectionInitializationCallback, unwrap, updateReplayStatistics
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConnectionNoProxy, getProxyFactory, updateReplayStatistics
clearReplayStatistics, getConnectionInitializationCallback, getConnectionProperty, getExplicitCachingEnabled, getImplicitCachingEnabled, getMaxStatements, getReplayStatistics, getRoleName, registerConnectionInitializationCallback, setConnectionProperty, setExplicitCachingEnabled, setImplicitCachingEnabled, setMaxStatements, setRoleName, unregisterConnectionInitializationCallback
createConnectionBuilder
isWrapperFor, unwrap
getLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriter
getReference
getObjectInstance
public PooledConnection getPooledConnection() throws SQLException
getPooledConnection
in interface ConnectionPoolDataSource
SQLException
- if a database-access error occurs.public PooledConnection getPooledConnection(String _user, String _passwd) throws SQLException
getPooledConnection
in interface ConnectionPoolDataSource
user
- The database user on whose behalf the Connection is being made.password
- The user's passwordSQLException
- if a database-access error occurs.public Connection getConnection() throws SQLException
getConnection
in interface DataSource
getConnection
in class OracleDataSourceImpl
SQLException
public Connection getConnection(String usr, String pwd) throws SQLException
OracleDataSourceImpl
getConnection
in interface DataSource
getConnection
in class OracleDataSourceImpl
usr
- The database user on whose behalf the connection is being made.pwd
- The user's password.SQLException
- if a database-access error occurs.public Connection getConnection(Properties props) throws SQLException
SQLException
public Connection getConnection(String usr, String pwd, Properties props) throws SQLException
SQLException
protected Connection getPhysicalConnection() throws SQLException
SQLException
- if a database-access error occurs.protected Connection getPhysicalConnection(String _url, String _user, String _passwd) throws SQLException
_url
- The connect url._user
- The database user on whose behalf the connection is being made._passwd
- The user's passwordSQLException
- if a database-access error occurs.protected Connection getPhysicalConnection(String _user, String _passwd) throws SQLException
_user
- The database user on whose behalf the connection is being made._passwd
- The user's passwordSQLException
- if a database-access error occurs.protected OraclePooledConnection getPooledConnection(OracleConnectionBuilderImpl connBuilder) throws SQLException
SQLException
public OraclePooledConnectionBuilder createPooledConnectionBuilder() throws SQLException
OracleConnectionPoolDataSource
OraclePooledConnectionBuilder
instancecreatePooledConnectionBuilder
in interface OracleConnectionPoolDataSource
OraclePooledConnectionBuilder
instance that was createdSQLException
- if an error occurs while creating the builder