org.enhydra.jdbc.oracle
Class OracleXADataSource

java.lang.Object
  extended by org.enhydra.jdbc.util.JdbcUtil
      extended by org.enhydra.jdbc.core.CoreDataSource
          extended by org.enhydra.jdbc.standard.StandardDataSource
              extended by org.enhydra.jdbc.standard.StandardConnectionPoolDataSource
                  extended by org.enhydra.jdbc.standard.StandardXADataSource
                      extended by org.enhydra.jdbc.oracle.OracleXADataSource
All Implemented Interfaces:
Serializable, Wrapper, Referenceable, ObjectFactory, CommonDataSource, ConnectionPoolDataSource, DataSource, XADataSource

public class OracleXADataSource
extends StandardXADataSource
implements XADataSource

Data source for creating IdbXAConnections.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.enhydra.jdbc.standard.StandardXADataSource
connectionCount, deadLockMaxWait, deadLockRetryWait, DEFAULT_DEADLOCKMAXWAIT, DEFAULT_DEADLOCKRETRYWAIT, DEFAULT_MAX_CON, DEFAULT_MIN_CON, maxCon, minCon, transactionManager
 
Fields inherited from class org.enhydra.jdbc.standard.StandardConnectionPoolDataSource
DEFAULT_PREPAREDSTMTCACHESIZE
 
Fields inherited from class org.enhydra.jdbc.core.CoreDataSource
logWriter, password, user
 
Fields inherited from class org.enhydra.jdbc.util.JdbcUtil
log
 
Constructor Summary
OracleXADataSource()
          Constructor.
 
Method Summary
 Object getObjectInstance(Object refObj, Name name, Context nameCtx, Hashtable env)
          The factory interface.
 XAConnection getXAConnection()
          Creates an XA connection using the default username and password.
 XAConnection getXAConnection(String user, String password)
          Creates an XA connection using the supplied username and password.
 
Methods inherited from class org.enhydra.jdbc.standard.StandardXADataSource
closeFreeConnection, dump, freeConnection, getAllConnections, getConnectionCount, getDeadLockMaxWait, getDeadLockRetryWait, getMaxCon, getMinCon, getReference, getTransactionManager, getXidConnections, getXidCount, processToWait, setDeadLockMaxWait, setDeadLockRetryWait, setDriverName, setMaxCon, setMinCon, setPassword, setTransactionManager, setTransactionManagerName, setUrl, setUser, toString
 
Methods inherited from class org.enhydra.jdbc.standard.StandardConnectionPoolDataSource
getMasterPrepStmtCache, getPooledConnection, getPooledConnection, getPreparedStmtCacheSize, setPreparedStmtCacheSize
 
Methods inherited from class org.enhydra.jdbc.standard.StandardDataSource
equals, getConnection, getConnection, getDriverName, getTransactionIsolation, getUrl, hashCode, setTransactionIsolation
 
Methods inherited from class org.enhydra.jdbc.core.CoreDataSource
getDescription, getLoginTimeout, getLogWriter, getPassword, getThreadFactory, getUser, isDebug, isVerbose, setDebug, setDescription, setLoginTimeout, setLogWriter, setThreadFactory, setVerbose, shutdown
 
Methods inherited from class org.enhydra.jdbc.util.JdbcUtil
setLogger
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.sql.CommonDataSource
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Constructor Detail

OracleXADataSource

public OracleXADataSource()
Constructor.

Method Detail

getXAConnection

public XAConnection getXAConnection()
                             throws SQLException
Creates an XA connection using the default username and password.

Specified by:
getXAConnection in interface XADataSource
Overrides:
getXAConnection in class StandardXADataSource
Throws:
SQLException

getXAConnection

public XAConnection getXAConnection(String user,
                                    String password)
                             throws SQLException
Creates an XA connection using the supplied username and password.

Specified by:
getXAConnection in interface XADataSource
Overrides:
getXAConnection in class StandardXADataSource
Throws:
SQLException

getObjectInstance

public Object getObjectInstance(Object refObj,
                                Name name,
                                Context nameCtx,
                                Hashtable env)
                         throws Exception
The factory interface.

Specified by:
getObjectInstance in interface ObjectFactory
Overrides:
getObjectInstance in class StandardXADataSource
Throws:
Exception


Copyright © 2011. All Rights Reserved.