public class JDBCXADataSource extends JDBCCommonDataSource implements XADataSource, Serializable, Referenceable, 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(Xid xid,
JDBCXAResource xaResource) |
Reference |
getReference()
Retrieves the Reference of this object.
|
XAConnection |
getXAConnection()
Get new XAConnection connection, to be managed by a connection manager.
|
XAConnection |
getXAConnection(String user,
String password)
Gets a new XAConnection after validating the given username
and password.
|
JDBCXAResource |
removeResource(Xid xid) |
getDatabase, getDatabaseName, getDataSourceName, getDescription, getLoginTimeout, getLogWriter, getNetworkProtocol, getParentLogger, getServerName, getUrl, getURL, getUser, setDatabase, setDatabaseName, setLoginTimeout, setLogWriter, setPassword, setProperties, setUrl, setURL, setUserequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriterpublic JDBCXADataSource()
throws SQLException
SQLExceptionpublic XAConnection getXAConnection() throws SQLException
getXAConnection in interface XADataSourceSQLException - on errorpublic XAConnection getXAConnection(String user, String password) throws SQLException
getXAConnection in interface 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 passwordSQLException - on errorgetXAConnection()public Reference getReference() throws NamingException
getReference in interface ReferenceableNamingException - If a naming exception was encountered
while retrieving the reference.public void addResource(Xid xid, JDBCXAResource xaResource)
public JDBCXAResource removeResource(Xid xid)
Copyright © 2001 - 2017 HSQL Development Group.