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_objectpublic 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
SystemExceptionpublic void commit_subtransaction(Coordinator parent) throws SystemException
SystemExceptionpublic void rollback_subtransaction()
throws SystemException
SystemExceptionpublic int type_id()
throws SystemException
SystemExceptionpublic String uid() throws SystemException
SystemExceptionpublic boolean propagateOnAbort()
throws SystemException
SystemExceptionpublic boolean propagateOnCommit()
throws SystemException
SystemExceptionpublic boolean saveRecord()
throws SystemException
SystemExceptionpublic void merge(OTSAbstractRecord record) throws SystemException
SystemExceptionpublic void alter(OTSAbstractRecord record) throws SystemException
SystemExceptionpublic boolean shouldAdd(OTSAbstractRecord record) throws SystemException
SystemExceptionpublic boolean shouldAlter(OTSAbstractRecord record) throws SystemException
SystemExceptionpublic boolean shouldMerge(OTSAbstractRecord record) throws SystemException
SystemExceptionpublic boolean shouldReplace(OTSAbstractRecord record) throws SystemException
SystemExceptionprotected boolean notAProblem(XAException ex, boolean commit)
public void commit_one_phase()
throws HeuristicHazard,
SystemException
HeuristicHazardSystemExceptionpublic void forget()
throws SystemException
SystemExceptionpublic 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 © 2014 JBoss by Red Hat. All rights reserved.