public class IndirectRecoverableConnection extends Object implements RecoverableXAConnection
AUTO_RECOVERY, OBJECT_RECOVERY| Constructor and Description |
|---|
IndirectRecoverableConnection() |
IndirectRecoverableConnection(String dbName,
String user,
String passwd,
ConnectionImple conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeCloseCurrentConnection() |
String |
dataSourceName() |
String |
dynamicClass() |
void |
finalize() |
XAConnection |
getConnection() |
XAConnection |
getCurrentConnection() |
String |
getDatabaseName() |
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 IndirectRecoverableConnection()
throws SQLException
SQLExceptionpublic IndirectRecoverableConnection(String dbName, String user, String passwd, ConnectionImple conn) throws SQLException
SQLExceptionpublic boolean packInto(OutputObjectState os)
packInto in interface RecoverableXAConnectionpublic boolean unpackFrom(InputObjectState os)
unpackFrom in interface RecoverableXAConnectionpublic String getDatabaseName()
public XAResource getResource() throws SQLException
getResource in interface RecoverableXAConnectionSQLExceptionpublic final void close()
close in interface RecoverableXAConnectionpublic final void reset()
reset in interface RecoverableXAConnectionpublic boolean setTransaction(Transaction tx)
RecoverableXAConnectionsetTransaction in interface RecoverableXAConnectionpublic boolean validTransaction(Transaction tx)
RecoverableXAConnectionvalidTransaction in interface RecoverableXAConnectionpublic XAConnection getCurrentConnection() throws SQLException
getCurrentConnection in interface RecoverableXAConnectionSQLExceptionpublic void closeCloseCurrentConnection()
throws SQLException
closeCloseCurrentConnection in interface RecoverableXAConnectionSQLExceptionpublic XAConnection getConnection() throws SQLException
getConnection in interface RecoverableXAConnectionSQLExceptionpublic XADataSource getDataSource() throws SQLException
getDataSource in interface RecoverableXAConnectionSQLExceptionpublic boolean inuse()
inuse in interface RecoverableXAConnectionpublic String user()
public String password()
public String url()
public String dynamicClass()
public String dataSourceName()
public Transaction transaction()
public void setModifier(ConnectionModifier cm)
Copyright © 2013. All rights reserved.