Package com.arjuna.ats.jta.xa
Interface RecoverableXAConnection
-
public interface RecoverableXAConnectionXA connection implementations must provide an implementation of this class.- Since:
- JTS 1.2.4.
- Version:
- $Id: RecoverableXAConnection.java 2342 2006-03-30 13:06:17Z $
- Author:
- Mark Little (mark_little@hp.com)
-
-
Field Summary
Fields Modifier and Type Field Description static intAUTO_RECOVERYstatic intOBJECT_RECOVERY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()voidcloseCloseCurrentConnection()XAConnectiongetConnection()XAConnectiongetCurrentConnection()XADataSourcegetDataSource()XAResourcegetResource()booleaninuse()booleanpackInto(OutputObjectState os)voidreset()booleansetTransaction(jakarta.transaction.Transaction tx)Remember the transaction we are being used within.booleanunpackFrom(InputObjectState os)booleanvalidTransaction(jakarta.transaction.Transaction tx)Is this the same transaction?
-
-
-
Field Detail
-
AUTO_RECOVERY
static final int AUTO_RECOVERY
- See Also:
- Constant Field Values
-
OBJECT_RECOVERY
static final int OBJECT_RECOVERY
- See Also:
- Constant Field Values
-
-
Method Detail
-
packInto
boolean packInto(OutputObjectState os)
-
unpackFrom
boolean unpackFrom(InputObjectState os)
-
getResource
XAResource getResource() throws SQLException
- Throws:
SQLException
-
getConnection
XAConnection getConnection() throws SQLException
- Throws:
SQLException
-
getCurrentConnection
XAConnection getCurrentConnection() throws SQLException
- Throws:
SQLException
-
getDataSource
XADataSource getDataSource() throws SQLException
- Throws:
SQLException
-
closeCloseCurrentConnection
void closeCloseCurrentConnection() throws SQLException- Throws:
SQLException
-
inuse
boolean inuse()
- Returns:
- true if the connection is being used within a transaction, false otherwise.
-
reset
void reset()
- Since:
- JTS 2.2.
-
close
void close()
- Since:
- JTS 2.2.
-
setTransaction
boolean setTransaction(jakarta.transaction.Transaction tx)
Remember the transaction we are being used within.- Since:
- JTS 2.2.
-
validTransaction
boolean validTransaction(jakarta.transaction.Transaction tx)
Is this the same transaction?- Returns:
- true if the connection can be used by this transaction, false otherwise.
- Since:
- JTS 2.2.
-
-