public abstract class OracleXADataSource extends OracleConnectionPoolDataSource implements OracleXADataSource
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
useNativeXA |
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, TRACE, url, user| Constructor and Description |
|---|
OracleXADataSource()
Create an OracleXADataSource instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
copy(OracleDataSource ds) |
OracleXAConnectionBuilder |
createXAConnectionBuilder()
Creates a new Oracle XA ConnectionBuilder instance
|
protected oracle.jdbc.internal.OracleConnection |
getConnectionDuringExceptionHandling() |
abstract XAConnection |
getXAConnection()
Attempt to establish a database connection.
|
abstract XAConnection |
getXAConnection(String user, String passwd)
Attempt to establish a database connection.
|
void |
setURL(String url)
Set the URL from which connections have to be obtained.
|
createPooledConnectionBuilder, getPhysicalConnection, getPhysicalConnection, getPhysicalConnection, getPooledConnection, getPooledConnection, getPooledConnectionaddRefProperties, close, createConnectionBuilder, debug, 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, setTNSEntryName, setUser, trace, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateShardingKeyBuilder, 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, setUsergetLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriterpublic OracleXADataSource()
throws SQLException
Create an OracleXADataSource instance.
SQLException - if error occurs while creating an objectpublic abstract XAConnection getXAConnection() throws SQLException
Attempt to establish a database connection.
getXAConnection in interface XADataSourceSQLException - if a database-access error occurs.public abstract XAConnection getXAConnection(String user, String passwd) throws SQLException
Attempt to establish a database connection.
getXAConnection in interface XADataSourceuser - the database user on whose behalf the Connection is being madepassword - the user's passwordSQLException - if a database-access error occurs.public void setURL(String url)
OracleDataSourcesetURL in interface OracleCommonDataSourcesetURL in class OracleDataSourceurl - URL to be set.protected void copy(OracleDataSource ds) throws SQLException
copy in class OracleDataSourceSQLExceptionprotected oracle.jdbc.internal.OracleConnection getConnectionDuringExceptionHandling()
getConnectionDuringExceptionHandling in class OracleDataSourcepublic OracleXAConnectionBuilder createXAConnectionBuilder()
createXAConnectionBuilder in interface OracleXADataSource