Package oracle.jdbc.replay
Interface OracleXADataSource
-
- All Superinterfaces:
javax.sql.CommonDataSource
,javax.sql.ConnectionPoolDataSource
,javax.sql.DataSource
,OracleCommonDataSource
,OracleConnectionPoolDataSource
,OracleConnectionPoolDataSource
,OracleDataSource
,OracleDataSource
,OracleXADataSource
,java.sql.Wrapper
,javax.sql.XADataSource
- All Known Implementing Classes:
OracleXADataSource
,OracleXADataSource
,OracleXADataSourceImpl
public interface OracleXADataSource extends OracleConnectionPoolDataSource, OracleXADataSource
A data source that supports transparent failover replay of JDBC operations.
-
-
Field Summary
-
Fields inherited from interface oracle.jdbc.replay.OracleDataSource
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.sql.XAConnection
getXAConnection()
Attempts to establish a database connection that can be used in a distributed transaction.javax.sql.XAConnection
getXAConnection(java.lang.String user, java.lang.String passwd)
Attempts to establish a database connection that can be used in a distributed transaction.-
Methods inherited from interface javax.sql.ConnectionPoolDataSource
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
-
Methods inherited from interface javax.sql.DataSource
getConnection, getConnection, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
-
Methods inherited from interface oracle.jdbc.datasource.OracleCommonDataSource
createShardingKeyBuilder, getConnectionProperties, getConnectionProperty, getDatabaseName, getDataSourceName, getDescription, getNetworkProtocol, getPortNumber, getServerName, getURL, getUser, setConnectionProperties, setConnectionProperty, setDatabaseName, setDataSourceName, setDescription, setHostnameResolver, setNetworkProtocol, setPassword, setPortNumber, setServerName, setSingleShardTransactionSupport, setSSLContext, setTokenSupplier, setURL, setUser
-
Methods inherited from interface oracle.jdbc.datasource.OracleConnectionPoolDataSource
createPooledConnectionBuilder
-
Methods inherited from interface oracle.jdbc.replay.OracleConnectionPoolDataSource
getPooledConnection, getPooledConnection
-
Methods inherited from interface oracle.jdbc.datasource.OracleDataSource
createConnectionBuilder
-
Methods inherited from interface oracle.jdbc.replay.OracleDataSource
clearReplayStatistics, getConnectionInitializationCallback, getExplicitCachingEnabled, getImplicitCachingEnabled, getMaxStatements, getReplayStatistics, getRoleName, registerConnectionInitializationCallback, setExplicitCachingEnabled, setImplicitCachingEnabled, setMaxStatements, setRoleName, unregisterConnectionInitializationCallback
-
Methods inherited from interface oracle.jdbc.datasource.OracleXADataSource
createXAConnectionBuilder
-
-
-
-
Method Detail
-
getXAConnection
javax.sql.XAConnection getXAConnection() throws java.sql.SQLException
Attempts to establish a database connection that can be used in a distributed transaction.- Specified by:
getXAConnection
in interfacejavax.sql.XADataSource
- Returns:
- An XAConnection to the database
- Throws:
java.sql.SQLException
- if a database-access error occurs.
-
getXAConnection
javax.sql.XAConnection getXAConnection(java.lang.String user, java.lang.String passwd) throws java.sql.SQLException
Attempts to establish a database connection that can be used in a distributed transaction.- Specified by:
getXAConnection
in interfacejavax.sql.XADataSource
- Parameters:
user
- The database user on whose behalf the Connection is being made.passwd
- The user's password- Returns:
- An XAConnection to the database
- Throws:
java.sql.SQLException
- if a database-access error occurs.
-
-