Serializable
, Wrapper
, Referenceable
, CommonDataSource
, ConnectionPoolDataSource
, DataSource
, XADataSource
, OracleCommonDataSource
, OracleConnectionPoolDataSource
, OracleDataSource
, OracleXADataSource
public class OracleXADataSource extends OracleXADataSource
For optimization purposes, we implemented 2 versions of OracleXADataSource: one for client, and one for server when used in Java Stored Procedures and in EJB. The server-version is only available in 8.1.6 and post-8.1.6 backends. This one is the implementation of OracleXADataSource for client-side usage and works for both pre- and post-8.1.6 RMs.
Modifier and Type | Field | Description |
---|---|---|
static boolean |
TRACE |
cacheManager, connCacheName, connCacheProperties, connCachingEnabled, connectionProperties, databaseName, dataSourceName, DEFAULT_SERVICE_NAME, description, driver, driverType, ENABLE_AC_SUPPORT_PROPERTY, explicitCachingEnabled, explicitCachingEnabledSet, fastConnFailover, implicitCachingEnabled, implicitCachingEnabledSet, isOracleDataSource, loginTimeout, logWriter, maxStatements, maxStatementsSet, networkProtocol, odsCache, onsConfigStr, password, portNumber, serverName, serviceName, tnsEntry, url, user
useNativeXA
Constructor | Description |
---|---|
OracleXADataSource() |
Create an OracleXADataSource instance.
|
Modifier and Type | Method | Description |
---|---|---|
OracleXAConnectionBuilderImpl |
createXAConnectionBuilder() |
Creates a new Oracle XA ConnectionBuilder instance
|
protected void |
debug(Logger logger, Level level, Executable method, String msg) |
|
XAConnection |
getXAConnection() |
Attempt to establish a database connection.
|
XAConnection |
getXAConnection(String userName, String passwd) |
Attempt to establish a database connection.
|
XAConnection |
getXAConnection(OracleXAConnectionBuilderImpl builder) |
getParentLogger
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createShardingKeyBuilder, getConnectionProperties, getDatabaseName, getDataSourceName, getDescription, getExplicitCachingEnabled, getImplicitCachingEnabled, getMaxStatements, getNetworkProtocol, getPortNumber, getRoleName, getServerName, getURL, getUser, setConnectionProperties, setDatabaseName, setDataSourceName, setDescription, setExplicitCachingEnabled, setImplicitCachingEnabled, setMaxStatements, setNetworkProtocol, setPassword, setPortNumber, setRoleName, setServerName, setSSLContext, setUser
createPooledConnectionBuilder, getPhysicalConnection, getPhysicalConnection, getPhysicalConnection, getPooledConnection, getPooledConnection
addRefProperties, close, createConnectionBuilder, getConnection, getConnection, getConnection, getConnection, getConnection, getConnectionCacheName, getConnectionCacheProperties, getConnectionCachingEnabled, getConnectionProperties, getConnectionProperty, getDatabaseName, getDataSourceName, getDescription, getDriverType, getExplicitCachingEnabled, getFastConnectionFailoverEnabled, getImplicitCachingEnabled, getLoginTimeout, getLogWriter, getMaxStatements, getNetworkProtocol, getONSConfiguration, getParentLogger, getPassword, getPhysicalConnection, getPortNumber, getReference, getRoleName, getServerName, getServiceName, getTNSEntryName, getURL, getUser, isWrapperFor, setConnectionCacheName, setConnectionCacheProperties, setConnectionCachingEnabled, setConnectionProperties, setConnectionProperty, setDatabaseName, setDataSourceName, setDescription, setDriverType, setExplicitCachingEnabled, setFastConnectionFailoverEnabled, setImplicitCachingEnabled, setLoginTimeout, setLogWriter, setMaxStatements, setNetworkProtocol, setONSConfiguration, setPassword, setPortNumber, setRoleName, setServerName, setServiceName, setSSLContext, setTNSEntryName, setUser, trace, unwrap
copy, getConnectionDuringExceptionHandling, setURL
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
public static final boolean TRACE
public OracleXADataSource() throws SQLException
SQLException
- if error occurs while creating an objectpublic XAConnection getXAConnection() throws SQLException
getXAConnection
in interface XADataSource
getXAConnection
in class OracleXADataSource
SQLException
- if a database-access error occurs.public XAConnection getXAConnection(String userName, String passwd) throws SQLException
getXAConnection
in interface XADataSource
getXAConnection
in class OracleXADataSource
userName
- the database user on whose behalf the Connection is madepasswd
- the user's passwordSQLException
- if a database-access error occurs.public XAConnection getXAConnection(OracleXAConnectionBuilderImpl builder) throws SQLException
SQLException
public OracleXAConnectionBuilderImpl createXAConnectionBuilder()
createXAConnectionBuilder
in interface OracleXADataSource
createXAConnectionBuilder
in interface XADataSource
createXAConnectionBuilder
in class OracleXADataSource
protected void debug(Logger logger, Level level, Executable method, String msg)
debug
in class OracleDataSource