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 FormConstructor 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, setUser
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriter
public JDBCXADataSource() throws SQLException
SQLException
public XAConnection getXAConnection() throws SQLException
getXAConnection
in interface XADataSource
SQLException
- on errorpublic XAConnection getXAConnection(String user, String password) throws SQLException
getXAConnection
in interface XADataSource
user
- 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 Referenceable
NamingException
- 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.