#include <src/main/activemq/commands/XATransactionId.h>

Public Types | |
| typedef decaf::lang::PointerComparator < XATransactionId > | COMPARATOR |
Public Member Functions | |
| XATransactionId () | |
| XATransactionId (const XATransactionId &other) | |
| XATransactionId (const cms::Xid *xid) | |
| virtual | ~XATransactionId () |
| virtual unsigned char | getDataStructureType () const |
| Get the DataStructure Type as defined in CommandTypes.h. | |
| virtual XATransactionId * | cloneDataStructure () const |
| Clone this obbject and return a new instance that the caller now owns, this will be an exact copy of this one. | |
| virtual void | copyDataStructure (const DataStructure *src) |
| virtual std::string | toString () const |
| Returns a string containing the information for this DataStructure such as its type and value of its elements. | |
| virtual bool | equals (const DataStructure *value) const |
| virtual bool | isXATransactionId () const |
| virtual Xid * | clone () const |
| Creates a Copy of this Xid instance that contains the same id values. | |
| virtual bool | equals (const Xid *other) const |
| virtual int | getBranchQualifier (unsigned char *buffer, int size) const |
| Gets the transaction branch qualifier component of the XID. | |
| virtual int | getGlobalTransactionId (unsigned char *buffer, int size) const |
| Gets the global transaction id component of the XID. | |
| virtual int | getFormatId () const |
| Gets the format identifier component of the XID. | |
| virtual void | setFormatId (int formatId) |
| virtual const std::vector < unsigned char > & | getGlobalTransactionId () const |
| virtual std::vector< unsigned char > & | getGlobalTransactionId () |
| virtual void | setGlobalTransactionId (const std::vector< unsigned char > &globalTransactionId) |
| virtual const std::vector < unsigned char > & | getBranchQualifier () const |
| virtual std::vector< unsigned char > & | getBranchQualifier () |
| virtual void | setBranchQualifier (const std::vector< unsigned char > &branchQualifier) |
| virtual int | compareTo (const XATransactionId &value) const |
| virtual bool | equals (const XATransactionId &value) const |
| virtual bool | operator== (const XATransactionId &value) const |
| virtual bool | operator< (const XATransactionId &value) const |
| XATransactionId & | operator= (const XATransactionId &other) |
| int | getHashCode () const |
Static Public Attributes | |
| static const unsigned char | ID_XATRANSACTIONID = 112 |
Protected Attributes | |
| int | formatId |
| std::vector< unsigned char > | globalTransactionId |
| std::vector< unsigned char > | branchQualifier |
| typedef decaf::lang::PointerComparator<XATransactionId> activemq::commands::XATransactionId::COMPARATOR |
Reimplemented from activemq::commands::TransactionId.
| activemq::commands::XATransactionId::XATransactionId | ( | ) |
| activemq::commands::XATransactionId::XATransactionId | ( | const XATransactionId & | other | ) |
| activemq::commands::XATransactionId::XATransactionId | ( | const cms::Xid * | xid | ) |
| virtual activemq::commands::XATransactionId::~XATransactionId | ( | ) | [virtual] |
| virtual Xid* activemq::commands::XATransactionId::clone | ( | ) | const [virtual] |
Creates a Copy of this Xid instance that contains the same id values.
Implements cms::Xid.
| virtual XATransactionId* activemq::commands::XATransactionId::cloneDataStructure | ( | ) | const [virtual] |
Clone this obbject and return a new instance that the caller now owns, this will be an exact copy of this one.
Reimplemented from activemq::commands::TransactionId.
| virtual int activemq::commands::XATransactionId::compareTo | ( | const XATransactionId & | value | ) | const [virtual] |
Reimplemented from activemq::commands::TransactionId.
| virtual void activemq::commands::XATransactionId::copyDataStructure | ( | const DataStructure * | src | ) | [virtual] |
Reimplemented from activemq::commands::TransactionId.
| virtual bool activemq::commands::XATransactionId::equals | ( | const XATransactionId & | value | ) | const [virtual] |
Reimplemented from activemq::commands::TransactionId.
| virtual bool activemq::commands::XATransactionId::equals | ( | const Xid * | other | ) | const [virtual] |
| virtual bool activemq::commands::XATransactionId::equals | ( | const DataStructure * | value | ) | const [virtual] |
Reimplemented from activemq::commands::TransactionId.
| virtual std::vector<unsigned char>& activemq::commands::XATransactionId::getBranchQualifier | ( | ) | [virtual] |
| virtual const std::vector<unsigned char>& activemq::commands::XATransactionId::getBranchQualifier | ( | ) | const [virtual] |
| virtual int activemq::commands::XATransactionId::getBranchQualifier | ( | unsigned char * | buffer, | |
| int | size | |||
| ) | const [virtual] |
Gets the transaction branch qualifier component of the XID.
The value of this Xid's branch qualifier is copied into the buffer provided. If the size of the provided buffer is not large enough to accommodate the branch qualifier then no copy is performed and the method returns -1.
| buffer | The location in memory to copy the qualifier bytes to. | |
| size | The size of the buffer provided. |
| XAException | if the size parameter is less than zero or buffer is NULL. |
Implements cms::Xid.
| virtual unsigned char activemq::commands::XATransactionId::getDataStructureType | ( | ) | const [virtual] |
Get the DataStructure Type as defined in CommandTypes.h.
Reimplemented from activemq::commands::TransactionId.
| virtual int activemq::commands::XATransactionId::getFormatId | ( | ) | const [virtual] |
Gets the format identifier component of the XID.
Implements cms::Xid.
| virtual std::vector<unsigned char>& activemq::commands::XATransactionId::getGlobalTransactionId | ( | ) | [virtual] |
| virtual const std::vector<unsigned char>& activemq::commands::XATransactionId::getGlobalTransactionId | ( | ) | const [virtual] |
| virtual int activemq::commands::XATransactionId::getGlobalTransactionId | ( | unsigned char * | buffer, | |
| int | size | |||
| ) | const [virtual] |
Gets the global transaction id component of the XID.
The value of this Xid's transaction id is copied into the buffer provided. If the size of the provided buffer is not large enough to accommodate the transaction id then no copy is performed and the method returns -1.
| buffer | The location in memory to copy the transaction id bytes to. | |
| size | The size of the buffer provided. |
| XAException | if the size parameter is less than zero or buffer is NULL. |
Implements cms::Xid.
| int activemq::commands::XATransactionId::getHashCode | ( | ) | const |
Reimplemented from activemq::commands::TransactionId.
| virtual bool activemq::commands::XATransactionId::isXATransactionId | ( | ) | const [inline, virtual] |
Reimplemented from activemq::commands::TransactionId.
| virtual bool activemq::commands::XATransactionId::operator< | ( | const XATransactionId & | value | ) | const [virtual] |
Reimplemented from activemq::commands::TransactionId.
| XATransactionId& activemq::commands::XATransactionId::operator= | ( | const XATransactionId & | other | ) |
Reimplemented from activemq::commands::TransactionId.
| virtual bool activemq::commands::XATransactionId::operator== | ( | const XATransactionId & | value | ) | const [virtual] |
Reimplemented from activemq::commands::TransactionId.
| virtual void activemq::commands::XATransactionId::setBranchQualifier | ( | const std::vector< unsigned char > & | branchQualifier | ) | [virtual] |
| virtual void activemq::commands::XATransactionId::setFormatId | ( | int | formatId | ) | [virtual] |
| virtual void activemq::commands::XATransactionId::setGlobalTransactionId | ( | const std::vector< unsigned char > & | globalTransactionId | ) | [virtual] |
| virtual std::string activemq::commands::XATransactionId::toString | ( | ) | const [virtual] |
Returns a string containing the information for this DataStructure such as its type and value of its elements.
Reimplemented from activemq::commands::TransactionId.
std::vector<unsigned char> activemq::commands::XATransactionId::branchQualifier [protected] |
int activemq::commands::XATransactionId::formatId [protected] |
std::vector<unsigned char> activemq::commands::XATransactionId::globalTransactionId [protected] |
const unsigned char activemq::commands::XATransactionId::ID_XATRANSACTIONID = 112 [static] |
1.6.1