- java.lang.Object
- 
- org.hsqldb.jdbc.JDBCCommonDataSource
- 
- org.hsqldb.jdbc.pool.JDBCXADataSource
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- javax.naming.Referenceable,- javax.sql.CommonDataSource,- javax.sql.XADataSource
 
 public class JDBCXADataSource extends JDBCCommonDataSource implements javax.sql.XADataSource, java.io.Serializable, javax.naming.Referenceable, javax.sql.CommonDataSource Connection factory for JDBCXAConnections. For use by XA data source factories, not by end users.The JDBCDataSourceFactorycan be used to get instances of this class.The methods of the superclass, JDBCCommonDataSource, are used for settings the HyperSQL server and user.- Since:
- HSQLDB 2.0.0
- Author:
- Blaine Simpson (blaine dot simpson at admc dot com)
- See Also:
- XADataSource,- JDBCXAConnection, Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description JDBCXADataSource()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddResource(javax.transaction.xa.Xid xid, JDBCXAResource xaResource)javax.naming.ReferencegetReference()Retrieves the Reference of this object.javax.sql.XAConnectiongetXAConnection()Get new XAConnection connection, to be managed by a connection manager.javax.sql.XAConnectiongetXAConnection(java.lang.String user, java.lang.String password)Gets a new XAConnection after validating the given username and password.JDBCXAResourceremoveResource(javax.transaction.xa.Xid xid)- 
Methods inherited from class org.hsqldb.jdbc.JDBCCommonDataSourcegetDatabase, getDatabaseName, getDataSourceName, getDescription, getLoginTimeout, getLogWriter, getNetworkProtocol, getParentLogger, getServerName, getUrl, getURL, getUser, setDatabase, setDatabaseName, setLoginTimeout, setLogWriter, setPassword, setProperties, setUrl, setURL, setUser
 - 
Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
- 
 
- 
- 
- 
Method Detail- 
getXAConnectionpublic javax.sql.XAConnection getXAConnection() throws java.sql.SQLExceptionGet new XAConnection connection, to be managed by a connection manager.- Specified by:
- getXAConnectionin interface- javax.sql.XADataSource
- Throws:
- java.sql.SQLException- on error
 
 - 
getXAConnectionpublic javax.sql.XAConnection getXAConnection(java.lang.String user, java.lang.String password) throws java.sql.SQLExceptionGets a new XAConnection after validating the given username and password.- Specified by:
- getXAConnectionin interface- javax.sql.XADataSource
- Parameters:
- user- String which must match the 'user' configured for this JDBCXADataSource.
- password- String which must match the 'password' configured for this JDBCXADataSource.
- Throws:
- java.sql.SQLException- on error
- See Also:
- getXAConnection()
 
 - 
getReferencepublic javax.naming.Reference getReference() throws javax.naming.NamingExceptionRetrieves the Reference of this object.- Specified by:
- getReferencein interface- javax.naming.Referenceable
- Returns:
- The non-null javax.naming.Reference of this object.
- Throws:
- javax.naming.NamingException- If a naming exception was encountered while retrieving the reference.
 
 - 
addResourcepublic void addResource(javax.transaction.xa.Xid xid, JDBCXAResource xaResource)
 - 
removeResourcepublic JDBCXAResource removeResource(javax.transaction.xa.Xid xid) 
 
- 
 
-