Skip navigation links
oracle.jdbc.xa.client
Class OracleXADataSource
java.lang.Object
oracle.jdbc.pool.OracleDataSource
oracle.jdbc.pool.OracleConnectionPoolDataSource
oracle.jdbc.xa.OracleXADataSource
oracle.jdbc.xa.client.OracleXADataSource
- All Implemented Interfaces:
- Serializable, Wrapper, Referenceable, CommonDataSource, ConnectionPoolDataSource, DataSource, XADataSource
-
public class OracleXADataSource
- extends OracleXADataSource
A factory for XAConnection objects. An object that implements the XADataSource interface is typically registered with a JNDI service provider.
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.
- See Also:
- Serialized Form
Field Summary |
static boolean |
TRACE
|
Fields inherited from class oracle.jdbc.pool.OracleDataSource |
cacheManager, connCacheName, connCacheProperties, connCachingEnabled, connectionProperties, databaseName, dataSourceName, description, driver, driverType, explicitCachingEnabled, explicitCachingEnabledSet, fastConnFailover, implicitCachingEnabled, implicitCachingEnabledSet, isOracleDataSource, loginTimeout, logWriter, maxStatements, maxStatementsSet, networkProtocol, odsCache, onsConfigStr, password, portNumber, serverName, serviceName, tnsEntry, url, user |
Methods inherited from class oracle.jdbc.pool.OracleDataSource |
addRefProperties, close, getConnection, getConnection, getConnection, getConnection, getConnectionCacheName, getConnectionCacheProperties, getConnectionCachingEnabled, getConnectionProperties, getDatabaseName, getDataSourceName, getDescription, getDriverType, getExplicitCachingEnabled, getFastConnectionFailoverEnabled, getImplicitCachingEnabled, getLoginTimeout, getLogWriter, getMaxStatements, getNetworkProtocol, getONSConfiguration, getParentLogger, getPassword, getPhysicalConnection, getPortNumber, getReference, getServerName, getServiceName, getTNSEntryName, getURL, getUser, isWrapperFor, setConnectionCacheName, setConnectionCacheProperties, setConnectionCachingEnabled, setConnectionProperties, setDatabaseName, setDataSourceName, setDescription, setDriverType, setExplicitCachingEnabled, setFastConnectionFailoverEnabled, setImplicitCachingEnabled, setLoginTimeout, setLogWriter, setMaxStatements, setNetworkProtocol, setONSConfiguration, setPassword, setPortNumber, setServerName, setServiceName, setTNSEntryName, setUser, trace, unwrap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRACE
public static final boolean TRACE
-
- See Also:
- Constant Field Values
OracleXADataSource
public OracleXADataSource()
throws SQLException
- Create an OracleXADataSource instance.
- Throws:
SQLException
- if error occurs while creating an object
getXAConnection
public XAConnection getXAConnection()
throws SQLException
- Attempt to establish a database connection.
-
- Specified by:
getXAConnection
in interface XADataSource
- Specified by:
getXAConnection
in class OracleXADataSource
-
- Returns:
- an Connection to the database
- Throws:
SQLException
- if a database-access error occurs.
getXAConnection
public XAConnection getXAConnection(String userName,
String passwd)
throws SQLException
- Attempt to establish a database connection.
-
- Specified by:
getXAConnection
in interface XADataSource
- Specified by:
getXAConnection
in class OracleXADataSource
-
- Parameters:
userName
- the database user on whose behalf the Connection is made
passwd
- the user's password
- Returns:
- an XAConnection encapsulating a connection to the database
- Throws:
SQLException
- if a database-access error occurs.
Skip navigation links
Copyright © 2008, 2014, Oracle and/or its affiliates. All rights reserved.