public class CadaverActivationRecord extends ActivationRecord
modifyingActions, objectModel, objectUid, usingActions
Modifier | Constructor and Description |
---|---|
protected |
CadaverActivationRecord() |
|
CadaverActivationRecord(StateManager sm) |
Modifier and Type | Method and Description |
---|---|
int |
nestedAbort()
nestedAbort causes the reset_state function of the object to be invoked
passing it the saved ObjectStatus.
|
int |
nestedCommit()
nestedCommit does nothing since the passing of the state up to the parent
action is handled by the record list merging system.
|
int |
nestedPrepare()
A prepare for a nested transaction has occurred.
|
boolean |
propagateOnAbort()
Determine if records are discarded on action abort or must be propagated
to parents.
|
boolean |
shouldReplace(AbstractRecord ar)
Should we replace the record presented with the current record?
|
int |
topLevelAbort()
topLevelAbort for Activation records is exactly like a nested abort.
|
int |
topLevelCommit()
A commit of a top-level transaction has occurred.
|
int |
topLevelPrepare()
A prepare for a top-level transaction has occurred.
|
String |
type()
Re-implementation of abstract methods inherited from base class.
|
alter, merge, print, restore_state, save_state, setValue, shouldAdd, shouldAlter, shouldMerge, typeIs, value
create, doSave, equals, forgetHeuristic, getNext, getPrevious, getTypeOfObject, greaterThan, lessThan, nestedCleanup, nestedOnePhaseCommit, order, propagateOnCommit, replace, save_state, 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 CadaverActivationRecord(StateManager sm)
protected CadaverActivationRecord()
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()
ActivationRecord
nestedAbort
in class ActivationRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public int nestedCommit()
ActivationRecord
nestedCommit
in class ActivationRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public int nestedPrepare()
AbstractRecord
nestedPrepare
in class ActivationRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public int topLevelAbort()
ActivationRecord
topLevelAbort
in class ActivationRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public int topLevelCommit()
AbstractRecord
topLevelCommit
in class ActivationRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public int topLevelPrepare()
AbstractRecord
topLevelPrepare
in class ActivationRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public String type()
AbstractRecord
type
in class ActivationRecord
public boolean shouldReplace(AbstractRecord ar)
AbstractRecord
shouldReplace
in class ActivationRecord
ar
- The record to try to replace.true
if the record should be replaced,
false
otherwise.Copyright © 2021 JBoss by Red Hat. All rights reserved.