18 #ifndef _CMS_XARESOURCE_H_ 19 #define _CMS_XARESOURCE_H_ 132 virtual void commit(
const Xid* xid,
bool onePhase) = 0;
164 virtual void end(
const Xid* xid,
int flags) = 0;
178 virtual void forget(
const Xid* xid) = 0;
190 virtual int getTransactionTimeout()
const = 0;
204 virtual bool isSameRM(
const XAResource* theXAResource) = 0;
224 virtual int prepare(
const Xid* xid) = 0;
245 virtual int recover(
int flag,
Xid** recovered) = 0;
256 virtual void rollback(
const Xid* xid) = 0;
272 virtual bool setTransactionTimeout(
int seconds) = 0;
299 virtual void start(
const Xid* xid,
int flags) = 0;
static const int TMENDRSCAN
Flag to end a recovery scan.
Definition: XAResource.h:50
An interface which provides a mapping for the X/Open XID transaction identifier structure.
Definition: Xid.h:37
static const int TMFAIL
Flag to indicate that the caller is dissociation from a transaction branch and that it should be mark...
Definition: XAResource.h:56
The XAResource interface is a CMS mapping of the industry standard XA interface based on the X/Open C...
Definition: XAResource.h:44
static const int TMRESUME
Flag that indicates the caller is resuming association with a suspended transaction branch...
Definition: XAResource.h:78
#define CMS_API
Definition: Config.h:31
static const int TMSUCCESS
Flag that indicates the caller is dissociating from a transaction branch.
Definition: XAResource.h:88
static const int TMONEPHASE
Flag that indicates the caller is using one-phase commit optimization.
Definition: XAResource.h:72
static const int TMNOFLAGS
Flag that indicates that no flags options are selected.
Definition: XAResource.h:67
static const int TMJOIN
Flag to indicate that the caller is joining sn existing transaction branch.
Definition: XAResource.h:62
static const int TMSTARTRSCAN
Flag that indicates the start of a recovery scan.
Definition: XAResource.h:83
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: DestinationResolver.h:23
static const int TMSUSPEND
Flag that indicates that the caller is suspending (not terminating) its association with a transactio...
Definition: XAResource.h:94
static const int XA_RDONLY
Flag that indicates that transaction work has been read only and has been committed normally...
Definition: XAResource.h:100
static const int XA_OK
Flag that indicates that transaction work has been Prepared normally.
Definition: XAResource.h:105