Serializable
, Wrapper
, Referenceable
, CommonDataSource
, ConnectionPoolDataSource
, DataSource
, XADataSource
, OracleCommonDataSource
, OracleConnectionPoolDataSource
, OracleDataSource
, OracleXADataSource
OracleXADataSource
public abstract class OracleXADataSource extends OracleConnectionPoolDataSource implements OracleXADataSource
Modifier and Type | Field | 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 | Description |
---|---|
OracleXADataSource() |
Create an OracleXADataSource instance.
|
Modifier and Type | Method | 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.
|
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, getPooledConnection
addRefProperties, 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, setSSLContext, setTNSEntryName, setUser, trace, unwrap
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
public 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 XADataSource
SQLException
- 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 XADataSource
user
- 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)
OracleDataSource
setURL
in interface OracleCommonDataSource
setURL
in class OracleDataSource
url
- URL to be set.protected void copy(OracleDataSource ds) throws SQLException
copy
in class OracleDataSource
SQLException
protected oracle.jdbc.internal.OracleConnection getConnectionDuringExceptionHandling()
getConnectionDuringExceptionHandling
in class OracleDataSource
public OracleXAConnectionBuilder createXAConnectionBuilder()
createXAConnectionBuilder
in interface OracleXADataSource
createXAConnectionBuilder
in interface XADataSource