|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hsqldb.jdbc.JDBCCommonDataSource
org.hsqldb.jdbc.pool.JDBCXADataSource
public class JDBCXADataSource
Connection factory for JDBCXAConnections. For use by XA data source factories, not by end users.
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 Summary | |
---|---|
JDBCXADataSource()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class org.hsqldb.jdbc.JDBCCommonDataSource |
---|
getDatabase, 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.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.sql.CommonDataSource |
---|
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
Constructor Detail |
---|
public JDBCXADataSource() throws SQLException
SQLException
Method Detail |
---|
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 password
SQLException
- 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |