public class LastResourceRecord extends XAResourceRecord
_theXAResource, XACONNECTION| Constructor and Description |
|---|
LastResourceRecord(TransactionImple tx,
XAResource xaResource,
Xid xid,
Object[] params)
Construct the record for last resource commit optimisation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commit this resource.
|
Vote |
prepare()
Prepare this resource.
|
boolean |
saveRecord() |
boolean |
shouldAdd(OTSAbstractRecord record) |
int |
type_id()
The type id for this record.
|
String |
type()
The type for saving state.
|
String |
uid()
The UID for this resource.
|
alter, commit_one_phase, commit_subtransaction, forget, get_uid, getRecoveryCoordinator, getResource, getXid, merge, notAProblem, prepare_subtransaction, propagateOnAbort, propagateOnCommit, recover, restoreState, rollback_subtransaction, rollback, saveState, setRecoveryCoordinator, setXAResource, shouldAlter, shouldMerge, shouldReplace, toString, typeName_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 LastResourceRecord(TransactionImple tx, XAResource xaResource, Xid xid, Object[] params)
tx - The current transaction.xaResource - The associated XA resource.xid - The X/Open transaction identifier.params - Additional parameters.public int type_id()
throws SystemException
type_id in interface OTSAbstractRecordOperationstype_id in class XAResourceRecordSystemExceptionpublic String uid() throws SystemException
uid in interface OTSAbstractRecordOperationsuid in class XAResourceRecordSystemExceptionpublic void commit()
throws SystemException,
NotPrepared,
HeuristicRollback,
HeuristicMixed,
HeuristicHazard
commit in interface ResourceOperationscommit in class XAResourceRecordSystemExceptionNotPreparedHeuristicRollbackHeuristicMixedHeuristicHazardpublic Vote prepare() throws HeuristicMixed, HeuristicHazard, SystemException
prepare in interface ResourceOperationsprepare in class XAResourceRecordHeuristicMixedHeuristicHazardSystemExceptionpublic String type()
type in class XAResourceRecordpublic boolean saveRecord()
throws SystemException
saveRecord in interface OTSAbstractRecordOperationssaveRecord in class XAResourceRecordSystemExceptionpublic boolean shouldAdd(OTSAbstractRecord record) throws SystemException
shouldAdd in interface OTSAbstractRecordOperationsshouldAdd in class XAResourceRecordSystemExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.