com.sleepycat.je.txn
Class AutoTxn
java.lang.Object
com.sleepycat.je.txn.Locker
com.sleepycat.je.txn.Txn
com.sleepycat.je.txn.AutoTxn
- All Implemented Interfaces:
- LogReadable, LogWritable
- public class AutoTxn
- extends Txn
An AutoTxn is one that's created by use of the AutoCommit property.
Method Summary |
void |
operationEnd()
AutoTxns abort or commit at the end of the operation |
void |
operationEnd(boolean operationOK)
AutoTxns abort or commit at the end of the operation |
void |
setHandleLockOwner(boolean operationOK,
Database dbHandle,
boolean dbIsClosing)
Transfer any handle locks to the db handle on success. |
Methods inherited from class com.sleepycat.je.txn.Txn |
abort, addLock, addLogInfo, checkState, collectStats, commit, commit, createdNode, dumpLog, generateId, getAbortKnownDeleted, getAbortLsn, getFirstActiveLsn, getInMemorySize, getLastLsn, getLogSize, getTransactionId, isHandleLockTransferrable, isSerializableIsolation, isTransactional, lock, logEntryIsTransactional, markDeleteAtTxnEnd, moveWriteToReadLock, newInstance, readFromLog, registerCursor, removeLock, setOnlyAbortable, unRegisterCursor, writeToLog |
Methods inherited from class com.sleepycat.je.txn.Locker |
addDeleteInfo, addToHandleMaps, demoteLock, dumpLockTable, getId, getLockTimeout, getTxnStartMillis, getTxnTimeOut, getWaitingFor, isDirtyReadDefault, isTimedOut, operationEnd, releaseLock, rememberHandleWriteLock, setLockTimeout, setTxnTimeout, setWaitingFor, sharesLocksWith, toString, transferHandleLock, transferHandleLockToHandle, unregisterHandle |
AutoTxn
public AutoTxn(EnvironmentImpl env,
TransactionConfig config)
throws DatabaseException
operationEnd
public void operationEnd(boolean operationOK)
throws DatabaseException
- AutoTxns abort or commit at the end of the operation
- Overrides:
operationEnd
in class Txn
- Throws:
DatabaseException
operationEnd
public void operationEnd()
throws DatabaseException
- AutoTxns abort or commit at the end of the operation
- Overrides:
operationEnd
in class Txn
- Throws:
DatabaseException
setHandleLockOwner
public void setHandleLockOwner(boolean operationOK,
Database dbHandle,
boolean dbIsClosing)
throws DatabaseException
- Transfer any handle locks to the db handle on success.
On failure, leave it with this txn, the handle lock will
be released at abort and the handle marked invalid.
- Overrides:
setHandleLockOwner
in class Txn
- Throws:
DatabaseException
Copyright 2004 Sleepycat, Inc. All Rights Reserved.