oracle.jdbc.xa
Class OracleXADataSource
java.lang.Object
oracle.jdbc.pool.OracleDataSource
oracle.jdbc.pool.OracleConnectionPoolDataSource
oracle.jdbc.xa.OracleXADataSource
- All Implemented Interfaces:
- java.io.Serializable, javax.naming.Referenceable, javax.sql.ConnectionPoolDataSource, javax.sql.DataSource, javax.sql.XADataSource
- Direct Known Subclasses:
- OracleXADataSource
public abstract class OracleXADataSource
- extends OracleConnectionPoolDataSource
- implements javax.sql.XADataSource
A factory for XAConnection objects. An object that implements the
XADataSource interface is typically registered with a JNDI service
provider.
- See Also:
- Serialized Form
Method Summary |
abstract javax.sql.XAConnection |
getXAConnection()
Attempt to establish a database connection. |
abstract javax.sql.XAConnection |
getXAConnection(java.lang.String user,
java.lang.String passwd)
Attempt to establish a database connection. |
Methods inherited from class oracle.jdbc.pool.OracleDataSource |
close, getConnection, getConnection, getConnection, getConnection, getConnectionCacheName, getConnectionCacheProperties, getConnectionCachingEnabled, getConnectionProperties, getDatabaseName, getDataSourceName, getDescription, getDriverType, getExplicitCachingEnabled, getFastConnectionFailoverEnabled, getImplicitCachingEnabled, getLoginTimeout, getLogWriter, getMaxStatements, getNetworkProtocol, getONSConfiguration, getPortNumber, getReference, getServerName, getServiceName, getTNSEntryName, getURL, getUser, setConnectionCacheName, setConnectionCacheProperties, setConnectionCachingEnabled, setConnectionProperties, setDatabaseName, setDataSourceName, setDescription, setDriverType, setExplicitCachingEnabled, setFastConnectionFailoverEnabled, setImplicitCachingEnabled, setLoginTimeout, setLogWriter, setMaxStatements, setNetworkProtocol, setONSConfiguration, setPassword, setPortNumber, setServerName, setServiceName, setTNSEntryName, setURL, setUser |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.sql.XADataSource |
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
Methods inherited from interface javax.sql.ConnectionPoolDataSource |
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
BUILD_DATE
public static final java.lang.String BUILD_DATE
- See Also:
- Constant Field Values
TRACE
public static final boolean TRACE
- See Also:
- Constant Field Values
OracleXADataSource
public OracleXADataSource()
throws java.sql.SQLException
Create an OracleXADataSource instance.
- Throws:
java.sql.SQLException
- if error occurs while creating an object
getXAConnection
public abstract javax.sql.XAConnection getXAConnection()
throws java.sql.SQLException
Attempt to establish a database connection.
- Specified by:
getXAConnection
in interface javax.sql.XADataSource
- Returns:
- a Connection to the database
- Throws:
java.sql.SQLException
- if a database-access error occurs.
getXAConnection
public abstract javax.sql.XAConnection getXAConnection(java.lang.String user,
java.lang.String passwd)
throws java.sql.SQLException
Attempt to establish a database connection.
- Specified by:
getXAConnection
in interface javax.sql.XADataSource
- Parameters:
user
- the database user on whose behalf the Connection is being madepassword
- the user's password
- Returns:
- a Connection to the database
- Throws:
java.sql.SQLException
- if a database-access error occurs.
Copyright © 1998, 2007, Oracle. All rights reserved.