|
Berkeley DB Java Edition version 3.0.12 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.Environment
com.sleepycat.je.XAEnvironment
public class XAEnvironment
An Environment that implements XAResource. If JE is used in an XA environment, this class should be used instead of Environment so that appropriate XA functions are available.
Field Summary |
---|
Fields inherited from interface javax.transaction.xa.XAResource |
---|
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY |
Constructor Summary | |
---|---|
XAEnvironment(File envHome,
EnvironmentConfig configuration)
Create a database environment handle. |
Method Summary | |
---|---|
void |
commit(Xid xid,
boolean ignore)
|
void |
end(Xid xid,
int flag)
|
void |
forget(Xid xid)
|
int |
getTransactionTimeout()
|
Transaction |
getXATransaction(Xid xid)
This method can be used by the application to get the Transaction object given an XA Xid. |
boolean |
isSameRM(XAResource rm)
|
int |
prepare(Xid xid)
|
Xid[] |
recover(int flag)
|
void |
rollback(Xid xid)
|
boolean |
setTransactionTimeout(int timeout)
|
void |
setXATransaction(Xid xid,
Transaction txn)
This method can be used by the application to set the Transaction object for an XA Xid. |
void |
start(Xid xid,
int flag)
|
Methods inherited from class com.sleepycat.je.Environment |
---|
beginTransaction, checkpoint, cleanLog, close, compress, evictMemory, getConfig, getDatabaseNames, getHome, getLockStats, getMutableConfig, getStats, getThreadTransaction, getTransactionStats, openDatabase, openSecondaryDatabase, removeDatabase, renameDatabase, setMutableConfig, setThreadTransaction, sync, truncateDatabase, verify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XAEnvironment(File envHome, EnvironmentConfig configuration) throws DatabaseException
envHome
- The database environment's home directory.
configuration
- The database environment attributes. If null, default attributes are used.
DatabaseException
Method Detail |
---|
public Transaction getXATransaction(Xid xid) throws DatabaseException
DatabaseException
public void setXATransaction(Xid xid, Transaction txn) throws DatabaseException
DatabaseException
public void commit(Xid xid, boolean ignore) throws XAException
commit
in interface XAResource
XAException
public void end(Xid xid, int flag) throws XAException
end
in interface XAResource
XAException
public void forget(Xid xid) throws XAException
forget
in interface XAResource
XAException
public int getTransactionTimeout() throws XAException
getTransactionTimeout
in interface XAResource
XAException
public boolean isSameRM(XAResource rm) throws XAException
isSameRM
in interface XAResource
XAException
public int prepare(Xid xid) throws XAException
prepare
in interface XAResource
XAException
public Xid[] recover(int flag) throws XAException
recover
in interface XAResource
XAException
public void rollback(Xid xid) throws XAException
rollback
in interface XAResource
XAException
public boolean setTransactionTimeout(int timeout) throws XAException
setTransactionTimeout
in interface XAResource
XAException
public void start(Xid xid, int flag) throws XAException
start
in interface XAResource
XAException
|
Berkeley DB Java Edition version 3.0.12 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |