Serializable
, Wrapper
, Referenceable
, ObjectFactory
, CommonDataSource
, ConnectionPoolDataSource
, DataSource
, XADataSource
, OracleCommonDataSource
, OracleConnectionPoolDataSource
, OracleDataSource
, OracleXADataSource
, oracle.jdbc.replay.internal.OracleConnectionPoolDataSource
, oracle.jdbc.replay.internal.OracleDataSource
, oracle.jdbc.replay.internal.OracleXADataSource
, OracleConnectionPoolDataSource
, OracleDataSource
, OracleXADataSource
public class OracleXADataSourceImpl extends OracleConnectionPoolDataSourceImpl implements oracle.jdbc.replay.internal.OracleXADataSource, Serializable, Referenceable, ObjectFactory
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
CHECKSUM_PROPERTY, clientChecksum11203x, clientChecksum12x, connectionProperties, doneDumpOnMemoryPressure, 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, isTransactionReplayEnabled, ods, odsReconnectOnly, password, RECONNECT_DELAY_PROPERTY, RECONNECT_RETRIES_PROPERTY, reconnectDelay, reconnectionProperties, reconnectRetries, replayInitiationTimeout, REQUEST_SIZE_LIMIT_PROPERTY, SESSION_STATE_CONSISTENCY_STATIC, SESSION_STATE_PROPERTY, stateRestorationType, user
Constructor | Description |
---|---|
OracleXADataSourceImpl() |
Modifier and Type | Method | Description |
---|---|---|
OracleXAConnectionBuilderImpl |
createXAConnectionBuilder() |
Creates a new Oracle XA ConnectionBuilder instance
|
Connection |
getConnection() |
|
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) |
|
Connection |
getConnection(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.
|
XAConnection |
getXAConnection() |
Attempts to establish a database connection that can be used in a distributed transaction.
|
XAConnection |
getXAConnection(String user, String passwd) |
Attempts to establish a database connection that can be used in a distributed transaction.
|
getParentLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getObjectInstance
createPooledConnectionBuilder
getPooledConnection, getPooledConnection
createPooledConnectionBuilder, getPooledConnection, getPooledConnection, getPooledConnection
createConnectionBuilder
clearDoneDumpOnMemoryPressure, getConnectionNoProxy, getProxyFactory, getReplayStatisticsString, getRequestSizeLimit, updateReplayStatistics
clearReplayStatistics, getConnectionInitializationCallback, getConnectionProperty, getExplicitCachingEnabled, getImplicitCachingEnabled, getMaxStatements, getReplayStatistics, getRoleName, registerConnectionInitializationCallback, setConnectionProperty, setExplicitCachingEnabled, setImplicitCachingEnabled, setMaxStatements, setRoleName, unregisterConnectionInitializationCallback
clearDoneDumpOnMemoryPressure, clearReplayStatistics, createConnectionBuilder, enableACAndProxifyIfNecessary, getConnection, getConnectionInitializationCallback, getConnectionNoProxy, getConnectionProperties, getConnectionProperty, getDatabaseName, getDataSourceName, getDescription, getExplicitCachingEnabled, getImplicitCachingEnabled, getLoginTimeout, getLogWriter, getMaxStatements, getNetworkProtocol, getObjectInstance, getParentLogger, getPortNumber, getProxyFactory, getReference, getReplayStatistics, getReplayStatisticsString, getRequestSizeLimit, getRoleName, getServerName, getURL, getUser, isWrapperFor, registerConnectionInitializationCallback, setConnectionProperties, setConnectionProperty, setDatabaseName, setDataSourceName, setDescription, setExplicitCachingEnabled, setImplicitCachingEnabled, setLoginTimeout, setLogWriter, setMaxStatements, setNetworkProtocol, setPassword, setPortNumber, setRoleName, setServerName, setSSLContext, setupACSpecificProperties, setURL, setUser, unregisterConnectionInitializationCallback, unwrap, updateReplayStatistics
getReference
isWrapperFor, unwrap
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
public XAConnection getXAConnection() throws SQLException
getXAConnection
in interface OracleXADataSource
getXAConnection
in interface XADataSource
SQLException
- if a database-access error occurs.public XAConnection getXAConnection(String user, String passwd) throws SQLException
getXAConnection
in interface OracleXADataSource
getXAConnection
in interface XADataSource
user
- The database user on whose behalf the Connection is being made.passwd
- The user's passwordSQLException
- if a database-access error occurs.public OracleXAConnectionBuilderImpl createXAConnectionBuilder()
createXAConnectionBuilder
in interface OracleXADataSource
createXAConnectionBuilder
in interface XADataSource
public Connection getConnection() throws SQLException
getConnection
in interface DataSource
getConnection
in class OracleConnectionPoolDataSourceImpl
SQLException
public Connection getConnection(String usr, String pwd) throws SQLException
OracleDataSourceImpl
getConnection
in interface DataSource
getConnection
in class OracleConnectionPoolDataSourceImpl
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
getConnection
in class OracleConnectionPoolDataSourceImpl
SQLException
public Connection getConnection(String usr, String pwd, Properties props) throws SQLException
getConnection
in class OracleConnectionPoolDataSourceImpl
SQLException
protected Connection getPhysicalConnection() throws SQLException
getPhysicalConnection
in class OracleConnectionPoolDataSourceImpl
SQLException
- if a database-access error occurs.protected Connection getPhysicalConnection(String _url, String _user, String _passwd) throws SQLException
getPhysicalConnection
in class OracleConnectionPoolDataSourceImpl
_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
getPhysicalConnection
in class OracleConnectionPoolDataSourceImpl
_user
- The database user on whose behalf the connection is being made._passwd
- The user's passwordSQLException
- if a database-access error occurs.