public class XAResourceRecord extends OTSAbstractRecordPOA
Modifier and Type | Field and Description |
---|---|
protected XAResource |
_theXAResource |
static int |
XACONNECTION |
Modifier | Constructor and Description |
---|---|
|
XAResourceRecord() |
|
XAResourceRecord(TransactionImple tx,
XAResource res,
Xid xid,
Object[] params)
The params represent specific parameters we need to recreate the
connection to the database in the event of a failure.
|
protected |
XAResourceRecord(Uid u) |
Modifier and Type | Method and Description |
---|---|
void |
alter(OTSAbstractRecord record) |
void |
commit_one_phase()
For commit_one_phase we can do whatever we want since the transaction
outcome is whatever we want.
|
void |
commit_subtransaction(Coordinator parent) |
void |
commit() |
void |
forget() |
Uid |
get_uid() |
RecoveryCoordinator |
getRecoveryCoordinator()
Deprecated.
Only used in tests
|
Resource |
getResource() |
Xid |
getXid() |
void |
merge(OTSAbstractRecord record) |
protected boolean |
notAProblem(XAException ex,
boolean commit)
Is the XAException a non-error when received in reply to commit or
rollback? It normally is, but may be overridden in recovery.
|
Vote |
prepare_subtransaction() |
Vote |
prepare() |
boolean |
propagateOnAbort() |
boolean |
propagateOnCommit() |
protected int |
recover() |
boolean |
restoreState(InputObjectState os) |
void |
rollback_subtransaction() |
void |
rollback() |
boolean |
saveRecord() |
boolean |
saveState(OutputObjectState os) |
void |
setRecoveryCoordinator(RecoveryCoordinator recCoord) |
protected void |
setXAResource(XAResource res)
For those objects where the original XAResource could not be saved.
|
boolean |
shouldAdd(OTSAbstractRecord record) |
boolean |
shouldAlter(OTSAbstractRecord record) |
boolean |
shouldMerge(OTSAbstractRecord record) |
boolean |
shouldReplace(OTSAbstractRecord record) |
String |
toString() |
int |
type_id() |
String |
type() |
static String |
typeName() |
String |
uid() |
_all_interfaces, _invoke, _this, _this
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
public static final int XACONNECTION
protected XAResource _theXAResource
public XAResourceRecord(TransactionImple tx, XAResource res, Xid xid, Object[] params)
public XAResourceRecord()
protected XAResourceRecord(Uid u)
public final Uid get_uid()
public final Resource getResource()
public final Xid getXid()
public Vote prepare() throws HeuristicMixed, HeuristicHazard, SystemException
public void rollback() throws SystemException, HeuristicCommit, HeuristicMixed, HeuristicHazard
public void commit() throws SystemException, NotPrepared, HeuristicRollback, HeuristicMixed, HeuristicHazard
public Vote prepare_subtransaction() throws SystemException
SystemException
public void commit_subtransaction(Coordinator parent) throws SystemException
SystemException
public void rollback_subtransaction() throws SystemException
SystemException
public int type_id() throws SystemException
SystemException
public String uid() throws SystemException
SystemException
public boolean propagateOnAbort() throws SystemException
SystemException
public boolean propagateOnCommit() throws SystemException
SystemException
public boolean saveRecord() throws SystemException
SystemException
public void merge(OTSAbstractRecord record) throws SystemException
SystemException
public void alter(OTSAbstractRecord record) throws SystemException
SystemException
public boolean shouldAdd(OTSAbstractRecord record) throws SystemException
SystemException
public boolean shouldAlter(OTSAbstractRecord record) throws SystemException
SystemException
public boolean shouldMerge(OTSAbstractRecord record) throws SystemException
SystemException
public boolean shouldReplace(OTSAbstractRecord record) throws SystemException
SystemException
protected boolean notAProblem(XAException ex, boolean commit)
public void commit_one_phase() throws HeuristicHazard, SystemException
HeuristicHazard
SystemException
public void forget() throws SystemException
SystemException
public boolean saveState(OutputObjectState os)
public boolean restoreState(InputObjectState os)
public String type()
public static String typeName()
public final void setRecoveryCoordinator(RecoveryCoordinator recCoord)
public final RecoveryCoordinator getRecoveryCoordinator()
protected void setXAResource(XAResource res)
protected int recover()
Copyright © 2021 JBoss by Red Hat. All rights reserved.