public class CadaverRecord extends PersistenceRecord
classicPrepare, MAX_OBJECT_SIZE, shadowMade, targetParticipantStore, topLevelState
objectAddr, state
modifyingActions, 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, topLevelCleanup
alter, forgetAction, nestedCommit, setValue, shouldAdd, shouldAlter, value
create, equals, forgetHeuristic, getNext, getPrevious, getTypeOfObject, greaterThan, lessThan, nestedCleanup, nestedOnePhaseCommit, order, propagateOnCommit, replace, setNext, setPrevious, 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 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 AbstractRecord
true
public int typeIs()
typeIs
in class PersistenceRecord
RecordType
public int nestedAbort()
nestedAbort
in class RecoveryRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public int nestedPrepare()
nestedPrepare
in class RecoveryRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public int topLevelAbort()
topLevelAbort
in class PersistenceRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public int topLevelCommit()
topLevelCommit
in class PersistenceRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public int topLevelPrepare()
topLevelPrepare
in class PersistenceRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public void print(PrintWriter strm)
print
in class PersistenceRecord
strm
- the stream to use.public String type()
type
in class PersistenceRecord
public boolean doSave()
doSave
in class PersistenceRecord
true
if the object being removed is a persistent
object (RecordType.PERSISTENT). false
otherwise.RecordType
public void merge(AbstractRecord mergewith)
merge
in class RecoveryRecord
mergewith
- The record to merge with.public boolean shouldMerge(AbstractRecord ar)
shouldMerge
in class RecoveryRecord
ar
- 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.RecordType
public boolean shouldReplace(AbstractRecord ar)
shouldReplace
in class RecoveryRecord
ar
- 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.RecordType
Copyright © 2021 JBoss by Red Hat. All rights reserved.