public class CadaverRecord extends PersistenceRecord
classicPrepare, MAX_OBJECT_SIZE, shadowMade, targetParticipantStore, topLevelStateobjectAddr, statemodifyingActions, objectModel, objectUid, usingActions| Constructor and Description |
|---|
CadaverRecord()
Create a new instance using default values.
|
CadaverRecord(OutputObjectState os,
ParticipantStore participantStore,
StateManager sm)
Create a new instance, passing in the object that is being managed.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
doSave()
Override the AbstractRecord.doSave.
|
void |
merge(AbstractRecord mergewith)
merge takes the information from the incoming PersistenceRecord and
uses it to initialise the oldState information.
|
int |
nestedAbort()
The nested transaction has aborted.
|
int |
nestedPrepare()
The nested transaction is preparing.
|
void |
print(PrintWriter strm)
Override AbstractRecord.print to write specific information to
the specified stream.
|
boolean |
propagateOnAbort()
Override default AbstractRecord method.
|
boolean |
shouldMerge(AbstractRecord ar)
Overrides AbstractRecord.shouldMerge
|
boolean |
shouldReplace(AbstractRecord ar)
Overrides AbstractRecord.shouldReplace
|
int |
topLevelAbort()
The nested transaction has aborted.
|
int |
topLevelCommit()
At topLevelCommit we commit the uncommitted version already saved
into object participantStore.
|
int |
topLevelPrepare()
At topLevelPrepare write uncommitted version into object participantStore.
|
String |
type()
The type of the class - may be used to save information in an
hierarchical manner in the object participantStore.
|
int |
typeIs()
The type of the record.
|
restore_state, save_state, shadowForced, topLevelCleanupalter, finalize, forgetAction, nestedCommit, setValue, shouldAdd, shouldAlter, valuecreate, equals, forgetHeuristic, getNext, getPrevious, getTypeOfObject, greaterThan, lessThan, nestedCleanup, nestedOnePhaseCommit, order, propagateOnCommit, replace, setNext, setPrevious, 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 CadaverRecord(OutputObjectState os, ParticipantStore participantStore, StateManager sm)
os - the state of the object that is being
removed.participantStore - the object participantStore instance used to manipulate the
persistent state.sm - the object being removed.public CadaverRecord()
public boolean propagateOnAbort()
propagateOnAbort in class AbstractRecordtruepublic int typeIs()
typeIs in class PersistenceRecordRecordTypepublic int nestedAbort()
nestedAbort in class RecoveryRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic int nestedPrepare()
nestedPrepare in class RecoveryRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic int topLevelAbort()
topLevelAbort in class PersistenceRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic int topLevelCommit()
topLevelCommit in class PersistenceRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic int topLevelPrepare()
topLevelPrepare in class PersistenceRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic void print(PrintWriter strm)
print in class PersistenceRecordstrm - the stream to use.public String type()
type in class PersistenceRecordpublic boolean doSave()
doSave in class PersistenceRecordtrue if the object being removed is a persistent
object (RecordType.PERSISTENT). false otherwise.RecordTypepublic void merge(AbstractRecord mergewith)
merge in class RecoveryRecordmergewith - The record to merge with.public boolean shouldMerge(AbstractRecord ar)
shouldMerge in class RecoveryRecordar - the record to potentially merge with.true if this instance and the parameter have the
same id (order()) and the parameter is either persistent or recoverable.
false otherwise.RecordTypepublic boolean shouldReplace(AbstractRecord ar)
shouldReplace in class RecoveryRecordar - the record to potentially replace this
instance.true if this instance and the parameter have the
same id (order()) and the parameter is either persistent or recoverable.
false otherwise.RecordTypeCopyright © 2016 JBoss by Red Hat. All rights reserved.