Class LastResourceRecord
java.lang.Object
org.omg.PortableServer.Servant
com.arjuna.ArjunaOTS.OTSAbstractRecordPOA
com.arjuna.ats.internal.jta.resources.jts.orbspecific.XAResourceRecord
com.arjuna.ats.internal.jta.resources.jts.orbspecific.LastResourceRecord
- All Implemented Interfaces:
ArjunaSubtranAwareResourceOperations
,OTSAbstractRecordOperations
,org.omg.CORBA.portable.InvokeHandler
,ResourceOperations
,SubtransactionAwareResourceOperations
XAResourceRecord implementing the Last Resource Commit Optimisation.
- Since:
- ATS 4.1
- Version:
- $Id$
- Author:
- Kevin Conner (Kevin.Conner@arjuna.com)
-
Field Summary
Fields inherited from class com.arjuna.ats.internal.jta.resources.jts.orbspecific.XAResourceRecord
_theXAResource, XACONNECTION
-
Constructor Summary
ConstructorDescriptionLastResourceRecord
(TransactionImple tx, XAResource xaResource, Xid xid, Object[] params) Construct the record for last resource commit optimisation. -
Method Summary
Methods inherited from class com.arjuna.ats.internal.jta.resources.jts.orbspecific.XAResourceRecord
alter, commit_one_phase, commit_subtransaction, forget, get_uid, getRecoveryCoordinator, getResource, getXid, isForgotten, merge, notAProblem, prepare_subtransaction, propagateOnAbort, propagateOnCommit, recover, restoreState, rollback, rollback_subtransaction, saveState, setRecoveryCoordinator, setXAResource, shouldAlter, shouldMerge, shouldReplace, toString, typeName, updateState
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
-
Constructor Details
-
LastResourceRecord
Construct the record for last resource commit optimisation.- Parameters:
tx
- The current transaction.xaResource
- The associated XA resource.xid
- The X/Open transaction identifier.params
- Additional parameters.
-
-
Method Details
-
type_id
public int type_id() throws org.omg.CORBA.SystemExceptionThe type id for this record.- Specified by:
type_id
in interfaceOTSAbstractRecordOperations
- Overrides:
type_id
in classXAResourceRecord
- Throws:
org.omg.CORBA.SystemException
-
uid
The UID for this resource.- Specified by:
uid
in interfaceOTSAbstractRecordOperations
- Overrides:
uid
in classXAResourceRecord
- Throws:
org.omg.CORBA.SystemException
-
commit
public void commit() throws org.omg.CORBA.SystemException, NotPrepared, HeuristicRollback, HeuristicMixed, HeuristicHazardCommit this resource.- Specified by:
commit
in interfaceResourceOperations
- Overrides:
commit
in classXAResourceRecord
- Throws:
org.omg.CORBA.SystemException
NotPrepared
HeuristicRollback
HeuristicMixed
HeuristicHazard
-
prepare
Prepare this resource.- Specified by:
prepare
in interfaceResourceOperations
- Overrides:
prepare
in classXAResourceRecord
- Throws:
HeuristicMixed
HeuristicHazard
org.omg.CORBA.SystemException
-
type
The type for saving state.- Overrides:
type
in classXAResourceRecord
-
saveRecord
public boolean saveRecord() throws org.omg.CORBA.SystemException- Specified by:
saveRecord
in interfaceOTSAbstractRecordOperations
- Overrides:
saveRecord
in classXAResourceRecord
- Throws:
org.omg.CORBA.SystemException
-
shouldAdd
- Specified by:
shouldAdd
in interfaceOTSAbstractRecordOperations
- Overrides:
shouldAdd
in classXAResourceRecord
- Throws:
org.omg.CORBA.SystemException
-