public class JDBCXADataSource extends JDBCCommonDataSource implements javax.sql.XADataSource, java.io.Serializable, javax.naming.Referenceable, javax.sql.CommonDataSource
The JDBCDataSourceFactory can be used to get
instances of this class.
The methods of the superclass, JDBCCommonDataSource,
are used for settings the HyperSQL server and user.
XADataSource,
JDBCXAConnection,
Serialized Form| Constructor and Description |
|---|
JDBCXADataSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
addResource(javax.transaction.xa.Xid xid,
JDBCXAResource xaResource) |
javax.naming.Reference |
getReference()
Retrieves the Reference of this object.
|
javax.sql.XAConnection |
getXAConnection()
Get new XAConnection connection, to be managed by a connection manager.
|
javax.sql.XAConnection |
getXAConnection(java.lang.String user,
java.lang.String password)
Gets a new XAConnection after validating the given username
and password.
|
JDBCXAResource |
removeResource(javax.transaction.xa.Xid xid) |
getDatabase, getDatabaseName, getDataSourceName, getDescription, getLoginTimeout, getLogWriter, getNetworkProtocol, getParentLogger, getServerName, getUrl, getURL, getUser, setDatabase, setDatabaseName, setLoginTimeout, setLogWriter, setPassword, setProperties, setUrl, setURL, setUserpublic JDBCXADataSource()
throws java.sql.SQLException
java.sql.SQLExceptionpublic javax.sql.XAConnection getXAConnection()
throws java.sql.SQLException
getXAConnection in interface javax.sql.XADataSourcejava.sql.SQLException - on errorpublic javax.sql.XAConnection getXAConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
getXAConnection in interface javax.sql.XADataSourceuser - String which must match the 'user' configured for this
JDBCXADataSource.password - String which must match the 'password' configured
for this JDBCXADataSource.user - the userpassword - the passwordjava.sql.SQLException - on errorgetXAConnection()public javax.naming.Reference getReference()
throws javax.naming.NamingException
getReference in interface javax.naming.Referenceablejavax.naming.NamingException - If a naming exception was encountered
while retrieving the reference.public void addResource(javax.transaction.xa.Xid xid,
JDBCXAResource xaResource)
public JDBCXAResource removeResource(javax.transaction.xa.Xid xid)
Copyright © 2001 - 2018 HSQL Development Group.