|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.service.data.store.db.je.JeTransaction
class JeTransaction
Provides a transaction implementation using Berkeley DB Java Edition.
| Constructor Summary | |
|---|---|
JeTransaction(com.sleepycat.je.XAEnvironment env,
long timeout,
com.sleepycat.je.TransactionConfig txnConfig)
Creates an instance of this class. |
|
| Method Summary | |
|---|---|
void |
abort()
Aborts the transaction. |
void |
commit()
Commits the transaction. |
(package private) static com.sleepycat.je.Transaction |
getJeTxn(DbTransaction dbTxn)
Converts the argument to a Berkeley DB transaction. |
void |
prepare(byte[] gid)
Initiates the first phase of a two-phase commit. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
JeTransaction(com.sleepycat.je.XAEnvironment env,
long timeout,
com.sleepycat.je.TransactionConfig txnConfig)
env - the Berkeley DB environmenttimeout - the number of milliseconds the transaction should be
allowed to runtxnConfig - the Berkeley DB transaction configuration, or null for the default
IllegalArgumentException - if timeout is less than 1
DbDatabaseException - if an unexpected database problem occurs| Method Detail |
|---|
static com.sleepycat.je.Transaction getJeTxn(DbTransaction dbTxn)
public void prepare(byte[] gid)
prepare in interface DbTransactiongid - the global transaction ID, which must be at least 128 bytespublic void commit()
commit in interface DbTransactionpublic void abort()
abort in interface DbTransaction
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||