activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1035427 - in /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands: LocalTransactionId.h TransactionId.h XATransactionId.h
Date Mon, 15 Nov 2010 20:12:34 GMT
Author: tabish
Date: Mon Nov 15 20:12:34 2010
New Revision: 1035427

URL: http://svn.apache.org/viewvc?rev=1035427&view=rev
Log:
Newly generated Commands with isLocalTransactionId and isXATransactionId shortcuts.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LocalTransactionId.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/TransactionId.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/XATransactionId.h

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LocalTransactionId.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LocalTransactionId.h?rev=1035427&r1=1035426&r2=1035427&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LocalTransactionId.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/LocalTransactionId.h
Mon Nov 15 20:12:34 2010
@@ -75,6 +75,10 @@ namespace commands{
 
         virtual bool equals( const DataStructure* value ) const;
 
+        virtual bool isLocalTransactionId() const {
+            return true;
+        }
+
         virtual long long getValue() const;
         virtual void setValue( long long value );
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/TransactionId.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/TransactionId.h?rev=1035427&r1=1035426&r2=1035427&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/TransactionId.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/TransactionId.h Mon
Nov 15 20:12:34 2010
@@ -72,6 +72,14 @@ namespace commands{
 
         virtual bool equals( const DataStructure* value ) const;
 
+        virtual bool isLocalTransactionId() const {
+            return false;
+        }
+
+        virtual bool isXATransactionId() const {
+            return false;
+        }
+
         virtual int compareTo( const TransactionId& value ) const;
 
         virtual bool equals( const TransactionId& value ) const;

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/XATransactionId.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/XATransactionId.h?rev=1035427&r1=1035426&r2=1035427&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/XATransactionId.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/XATransactionId.h
Mon Nov 15 20:12:34 2010
@@ -75,6 +75,10 @@ namespace commands{
 
         virtual bool equals( const DataStructure* value ) const;
 
+        virtual bool isXATransactionId() const {
+            return true;
+        }
+
         virtual int getFormatId() const;
         virtual void setFormatId( int formatId );
 



Mime
View raw message