activemq-cpp-3.4.0

activemq::commands::JournalTransaction Class Reference

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

Inheritance diagram for activemq::commands::JournalTransaction:

Public Member Functions

 JournalTransaction ()
virtual ~JournalTransaction ()
virtual unsigned char getDataStructureType () const
 Get the DataStructure Type as defined in CommandTypes.h.
virtual JournalTransactioncloneDataStructure () 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)
 Copy the contents of the passed object into this objects members, overwriting any existing data.
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
 Compares the DataStructure passed in to this one, and returns if they are equivalent.
virtual const Pointer
< TransactionId > & 
getTransactionId () const
virtual Pointer< TransactionId > & getTransactionId ()
virtual void setTransactionId (const Pointer< TransactionId > &transactionId)
virtual unsigned char getType () const
virtual void setType (unsigned char type)
virtual bool getWasPrepared () const
virtual void setWasPrepared (bool wasPrepared)

Static Public Attributes

static const unsigned char ID_JOURNALTRANSACTION = 54

Protected Attributes

Pointer< TransactionIdtransactionId
unsigned char type
bool wasPrepared

Constructor & Destructor Documentation

activemq::commands::JournalTransaction::JournalTransaction ( )
virtual activemq::commands::JournalTransaction::~JournalTransaction ( ) [virtual]

Member Function Documentation

virtual JournalTransaction* activemq::commands::JournalTransaction::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.

Returns:
new copy of this object.

Implements activemq::commands::DataStructure.

virtual void activemq::commands::JournalTransaction::copyDataStructure ( const DataStructure src) [virtual]

Copy the contents of the passed object into this objects members, overwriting any existing data.

Returns:
src - Source Object

Implements activemq::commands::DataStructure.

virtual bool activemq::commands::JournalTransaction::equals ( const DataStructure value) const [virtual]

Compares the DataStructure passed in to this one, and returns if they are equivalent.

Equivalent here means that they are of the same type, and that each element of the objects are the same.

Returns:
true if DataStructure's are Equal.

Implements activemq::commands::DataStructure.

virtual unsigned char activemq::commands::JournalTransaction::getDataStructureType ( ) const [virtual]

Get the DataStructure Type as defined in CommandTypes.h.

Returns:
The type of the data structure

Implements activemq::commands::DataStructure.

virtual const Pointer<TransactionId>& activemq::commands::JournalTransaction::getTransactionId ( ) const [virtual]
virtual Pointer<TransactionId>& activemq::commands::JournalTransaction::getTransactionId ( ) [virtual]
virtual unsigned char activemq::commands::JournalTransaction::getType ( ) const [virtual]
virtual bool activemq::commands::JournalTransaction::getWasPrepared ( ) const [virtual]
virtual void activemq::commands::JournalTransaction::setTransactionId ( const Pointer< TransactionId > &  transactionId) [virtual]
virtual void activemq::commands::JournalTransaction::setType ( unsigned char  type) [virtual]
virtual void activemq::commands::JournalTransaction::setWasPrepared ( bool  wasPrepared) [virtual]
virtual std::string activemq::commands::JournalTransaction::toString ( ) const [virtual]

Returns a string containing the information for this DataStructure such as its type and value of its elements.

Returns:
formatted string useful for debugging.

Reimplemented from activemq::commands::BaseDataStructure.


Field Documentation


The documentation for this class was generated from the following file: