public class DirectRecoverableConnection extends Object implements RecoverableXAConnection, TransactionalDriverXAConnection
AUTO_RECOVERY, OBJECT_RECOVERY
Constructor and Description |
---|
DirectRecoverableConnection() |
DirectRecoverableConnection(String dbName,
String user,
String passwd,
String dynamic,
ConnectionImple conn) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
closeCloseCurrentConnection() |
String |
dataSourceName() |
String |
dynamicClass() |
void |
finalize() |
XAConnection |
getConnection() |
XAConnection |
getCurrentConnection()
If there is a connection then return it.
|
XADataSource |
getDataSource() |
XAResource |
getResource() |
boolean |
inuse() |
boolean |
packInto(OutputObjectState os) |
String |
password() |
void |
reset() |
void |
setModifier(ConnectionModifier cm) |
boolean |
setTransaction(Transaction tx)
Remember the transaction we are being used within.
|
Transaction |
transaction() |
boolean |
unpackFrom(InputObjectState os) |
String |
url() |
String |
user() |
boolean |
validTransaction(Transaction tx)
Is this the same transaction?
|
public DirectRecoverableConnection() throws SQLException
SQLException
public DirectRecoverableConnection(String dbName, String user, String passwd, String dynamic, ConnectionImple conn) throws SQLException
SQLException
public boolean packInto(OutputObjectState os)
packInto
in interface RecoverableXAConnection
public boolean unpackFrom(InputObjectState os)
unpackFrom
in interface RecoverableXAConnection
public boolean setTransaction(Transaction tx)
RecoverableXAConnection
setTransaction
in interface TransactionalDriverXAConnection
setTransaction
in interface RecoverableXAConnection
public boolean validTransaction(Transaction tx)
RecoverableXAConnection
validTransaction
in interface TransactionalDriverXAConnection
validTransaction
in interface RecoverableXAConnection
public XAResource getResource() throws SQLException
getResource
in interface TransactionalDriverXAConnection
getResource
in interface RecoverableXAConnection
SQLException
public final void close()
close
in interface RecoverableXAConnection
public final void reset()
reset
in interface RecoverableXAConnection
public XAConnection getCurrentConnection() throws SQLException
getCurrentConnection
in interface RecoverableXAConnection
SQLException
public void closeCloseCurrentConnection() throws SQLException
closeCloseCurrentConnection
in interface TransactionalDriverXAConnection
closeCloseCurrentConnection
in interface RecoverableXAConnection
SQLException
public XAConnection getConnection() throws SQLException
getConnection
in interface TransactionalDriverXAConnection
getConnection
in interface RecoverableXAConnection
SQLException
public XADataSource getDataSource() throws SQLException
getDataSource
in interface RecoverableXAConnection
SQLException
public boolean inuse()
inuse
in interface TransactionalDriverXAConnection
inuse
in interface RecoverableXAConnection
public String user()
public String password()
public String url()
public String dynamicClass()
public String dataSourceName()
public Transaction transaction()
public void setModifier(ConnectionModifier cm)
Copyright © 2021 JBoss by Red Hat. All rights reserved.