public class CadaverLockRecord extends LockRecord
actionHandlemodifyingActions, objectModel, objectUid, usingActions| Modifier | Constructor and Description |
|---|---|
protected |
CadaverLockRecord() |
|
CadaverLockRecord(LockStore store,
LockManager lm,
BasicAction currAct) |
| Modifier and Type | Method and Description |
|---|---|
int |
nestedAbort()
A rollback of a nested transaction has occurred.
|
int |
nestedCommit()
A commit of a nested transaction has occurred.
|
void |
print(PrintWriter strm)
Write information about this specific instance to the specified stream.
|
boolean |
propagateOnAbort()
Determine if records are discarded on action abort or must be propagated
to parents.
|
void |
replace(AbstractRecord ar)
The current record is about to replace the one presented.
|
boolean |
shouldReplace(AbstractRecord ar)
Should we replace the record presented with the current record?
|
int |
topLevelAbort()
A rollback of a top-level transaction has occurred.
|
int |
topLevelCommit()
A commit of a top-level transaction has occurred.
|
String |
type()
Re-implementation of abstract methods inherited from base class.
|
alter, isReadOnly, lockType, merge, nestedPrepare, restore_state, save_state, setValue, shouldAdd, shouldAlter, shouldMerge, topLevelPrepare, toString, typeIs, valuecreate, doSave, equals, forgetHeuristic, getNext, getPrevious, getTypeOfObject, greaterThan, lessThan, nestedCleanup, nestedOnePhaseCommit, order, propagateOnCommit, setNext, setPrevious, topLevelCleanup, topLevelOnePhaseCommitactivate, activate, cleanup, createLists, deactivate, deactivate, deactivate, destroy, disable, forgetAction, get_uid, getMutex, getObjectModel, getStore, getStoreRoot, loadObjectState, lockMutex, modified, objectType, packHeader, persist, rememberAction, setStatus, setupStore, setupStore, setupStore, status, terminate, tryLockMutex, unlockMutex, unpackHeaderpublic CadaverLockRecord(LockStore store, LockManager lm, BasicAction currAct)
protected CadaverLockRecord()
public boolean propagateOnAbort()
AbstractRecordpropagateOnAbort in class AbstractRecordtrue if the record should be propagated to the
parent transaction if the current transaction rolls back,
false otherwise. The default is false.public int nestedAbort()
AbstractRecordnestedAbort in class LockRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic int nestedCommit()
AbstractRecordnestedCommit in class LockRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic int topLevelAbort()
AbstractRecordtopLevelAbort in class LockRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic int topLevelCommit()
AbstractRecordtopLevelCommit in class LockRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic void print(PrintWriter strm)
AbstractRecordprint in class LockRecordstrm - the stream on which to output.public String type()
AbstractRecordtype in class LockRecordpublic boolean shouldReplace(AbstractRecord ar)
AbstractRecordshouldReplace in class LockRecordar - The record to try to replace.true if the record should be replaced,
false otherwise.public void replace(AbstractRecord ar)
AbstractRecordreplace in class AbstractRecordar - the record that will replace this instance.Copyright © 2013. All rights reserved.