public class CadaverLockRecord extends LockRecord
actionHandle
modifyingActions, 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, value
create, doSave, equals, forgetHeuristic, getNext, getPrevious, getTypeOfObject, greaterThan, lessThan, nestedCleanup, nestedOnePhaseCommit, order, propagateOnCommit, setNext, setPrevious, topLevelCleanup, topLevelOnePhaseCommit
activate, 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, unpackHeader
public CadaverLockRecord(LockStore store, LockManager lm, BasicAction currAct)
protected CadaverLockRecord()
public boolean propagateOnAbort()
AbstractRecord
propagateOnAbort
in class AbstractRecord
true
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()
AbstractRecord
nestedAbort
in class LockRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public int nestedCommit()
AbstractRecord
nestedCommit
in class LockRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public int topLevelAbort()
AbstractRecord
topLevelAbort
in class LockRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public int topLevelCommit()
AbstractRecord
topLevelCommit
in class LockRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public void print(PrintWriter strm)
AbstractRecord
print
in class LockRecord
strm
- the stream on which to output.public String type()
AbstractRecord
type
in class LockRecord
public boolean shouldReplace(AbstractRecord ar)
AbstractRecord
shouldReplace
in class LockRecord
ar
- The record to try to replace.true
if the record should be replaced,
false
otherwise.public void replace(AbstractRecord ar)
AbstractRecord
replace
in class AbstractRecord
ar
- the record that will replace this instance.Copyright © 2021 JBoss by Red Hat. All rights reserved.