org.enhydra.jdbc.instantdb
Class IdbXADataSource
java.lang.Object
org.enhydra.jdbc.util.JdbcUtil
org.enhydra.jdbc.core.CoreDataSource
org.enhydra.jdbc.standard.StandardDataSource
org.enhydra.jdbc.standard.StandardConnectionPoolDataSource
org.enhydra.jdbc.standard.StandardXADataSource
org.enhydra.jdbc.instantdb.IdbXADataSource
- All Implemented Interfaces:
- Serializable, Wrapper, Referenceable, ObjectFactory, CommonDataSource, ConnectionPoolDataSource, DataSource, XADataSource
public class IdbXADataSource
- extends StandardXADataSource
- implements XADataSource
Data source for creating IdbXAConnections.
- See Also:
- Serialized Form
| Fields inherited from class org.enhydra.jdbc.util.JdbcUtil |
log |
| 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.core.CoreDataSource |
getDescription, getLoginTimeout, getLogWriter, getPassword, getThreadFactory, getUser, isDebug, isVerbose, setDebug, setDescription, setLoginTimeout, setLogWriter, setThreadFactory, setVerbose, shutdown |
IdbXADataSource
public IdbXADataSource()
- Constructor.
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.