Class XAResourceRecord
java.lang.Object
org.omg.PortableServer.Servant
com.arjuna.ArjunaOTS.OTSAbstractRecordPOA
com.arjuna.ats.internal.jta.resources.jts.orbspecific.XAResourceRecord
- All Implemented Interfaces:
ArjunaSubtranAwareResourceOperations
,OTSAbstractRecordOperations
,org.omg.CORBA.portable.InvokeHandler
,ResourceOperations
,SubtransactionAwareResourceOperations
- Direct Known Subclasses:
LastResourceRecord
,XARecoveryResourceImple
,XAResourceRecordBean.JTSXAResourceRecordWrapper
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
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. -
Method Summary
Modifier and TypeMethodDescriptionvoid
alter
(OTSAbstractRecord record) void
commit()
void
For commit_one_phase we can do whatever we want since the transaction outcome is whatever we want.void
commit_subtransaction
(Coordinator parent) void
forget()
final Uid
get_uid()
final RecoveryCoordinator
Deprecated.Only used in testsfinal Resource
final Xid
getXid()
boolean
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.prepare()
boolean
boolean
protected int
recover()
boolean
void
rollback()
void
boolean
boolean
final 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) toString()
type()
int
type_id()
static String
typeName()
uid()
protected final boolean
updateState
(int h) Methods inherited from class com.arjuna.ArjunaOTS.OTSAbstractRecordPOA
_all_interfaces, _invoke, _this, _this
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
-
Field Details
-
XACONNECTION
public static final int XACONNECTION- See Also:
-
_theXAResource
-
-
Constructor Details
-
XAResourceRecord
The params represent specific parameters we need to recreate the connection to the database in the event of a failure. If they're not set then recovery is out of our control. Could also use it to pass other information, such as the readonly flag. -
XAResourceRecord
public XAResourceRecord() -
XAResourceRecord
-
-
Method Details
-
get_uid
-
getResource
-
getXid
-
prepare
- Throws:
HeuristicMixed
HeuristicHazard
org.omg.CORBA.SystemException
-
rollback
public void rollback() throws org.omg.CORBA.SystemException, HeuristicCommit, HeuristicMixed, HeuristicHazard- Throws:
org.omg.CORBA.SystemException
HeuristicCommit
HeuristicMixed
HeuristicHazard
-
commit
public void commit() throws org.omg.CORBA.SystemException, NotPrepared, HeuristicRollback, HeuristicMixed, HeuristicHazard- Throws:
org.omg.CORBA.SystemException
NotPrepared
HeuristicRollback
HeuristicMixed
HeuristicHazard
-
prepare_subtransaction
- Throws:
org.omg.CORBA.SystemException
-
commit_subtransaction
- Throws:
org.omg.CORBA.SystemException
-
rollback_subtransaction
public void rollback_subtransaction() throws org.omg.CORBA.SystemException- Throws:
org.omg.CORBA.SystemException
-
type_id
public int type_id() throws org.omg.CORBA.SystemException- Throws:
org.omg.CORBA.SystemException
-
uid
- Throws:
org.omg.CORBA.SystemException
-
propagateOnAbort
public boolean propagateOnAbort() throws org.omg.CORBA.SystemException- Throws:
org.omg.CORBA.SystemException
-
propagateOnCommit
public boolean propagateOnCommit() throws org.omg.CORBA.SystemException- Throws:
org.omg.CORBA.SystemException
-
saveRecord
public boolean saveRecord() throws org.omg.CORBA.SystemException- Throws:
org.omg.CORBA.SystemException
-
merge
- Throws:
org.omg.CORBA.SystemException
-
alter
- Throws:
org.omg.CORBA.SystemException
-
shouldAdd
- Throws:
org.omg.CORBA.SystemException
-
shouldAlter
- Throws:
org.omg.CORBA.SystemException
-
shouldMerge
- Throws:
org.omg.CORBA.SystemException
-
shouldReplace
- Throws:
org.omg.CORBA.SystemException
-
notAProblem
Is the XAException a non-error when received in reply to commit or rollback? It normally is, but may be overridden in recovery. -
commit_one_phase
For commit_one_phase we can do whatever we want since the transaction outcome is whatever we want. Therefore, we do not need to save any additional recoverable state, such as a reference to the transaction coordinator, since it will not have an intentions list anyway.- Throws:
HeuristicHazard
org.omg.CORBA.SystemException
-
forget
public void forget() throws org.omg.CORBA.SystemException- Throws:
org.omg.CORBA.SystemException
-
isForgotten
public boolean isForgotten() -
saveState
-
restoreState
-
type
-
typeName
-
setRecoveryCoordinator
-
getRecoveryCoordinator
Deprecated.Only used in tests -
toString
-
setXAResource
For those objects where the original XAResource could not be saved. -
recover
protected int recover() -
updateState
protected final boolean updateState(int h)
-