activemq-cpp-3.4.0

src/main/activemq/commands/TransactionInfo.h

Go to the documentation of this file.
00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one or more
00003  * contributor license agreements.  See the NOTICE file distributed with
00004  * this work for additional information regarding copyright ownership.
00005  * The ASF licenses this file to You under the Apache License, Version 2.0
00006  * (the "License"); you may not use this file except in compliance with
00007  * the License.  You may obtain a copy of the License at
00008  *
00009  * http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 
00018 #ifndef _ACTIVEMQ_COMMANDS_TRANSACTIONINFO_H_
00019 #define _ACTIVEMQ_COMMANDS_TRANSACTIONINFO_H_
00020 
00021 // Turn off warning message for ignored exception specification
00022 #ifdef _MSC_VER
00023 #pragma warning( disable : 4290 )
00024 #endif
00025 
00026 #include <activemq/commands/BaseCommand.h>
00027 #include <activemq/commands/ConnectionId.h>
00028 #include <activemq/commands/TransactionId.h>
00029 #include <activemq/util/Config.h>
00030 #include <decaf/lang/Pointer.h>
00031 #include <string>
00032 #include <vector>
00033 
00034 namespace activemq{
00035 namespace commands{
00036 
00037     using decaf::lang::Pointer;
00038 
00039     /*
00040      *
00041      *  Command code for OpenWire format for TransactionInfo
00042      *
00043      *  NOTE!: This file is auto generated - do not modify!
00044      *         if you need to make a change, please see the Java Classes
00045      *         in the activemq-cpp-openwire-generator module
00046      *
00047      */
00048     class AMQCPP_API TransactionInfo : public BaseCommand {
00049     protected:
00050 
00051         Pointer<ConnectionId> connectionId;
00052         Pointer<TransactionId> transactionId;
00053         unsigned char type;
00054 
00055     public:
00056 
00057         const static unsigned char ID_TRANSACTIONINFO = 7;
00058 
00059     private:
00060 
00061         TransactionInfo( const TransactionInfo& );
00062         TransactionInfo& operator= ( const TransactionInfo& );
00063 
00064     public:
00065 
00066         TransactionInfo();
00067 
00068         virtual ~TransactionInfo();
00069 
00070         virtual unsigned char getDataStructureType() const;
00071 
00072         virtual TransactionInfo* cloneDataStructure() const;
00073 
00074         virtual void copyDataStructure( const DataStructure* src );
00075 
00076         virtual std::string toString() const;
00077 
00078         virtual bool equals( const DataStructure* value ) const;
00079 
00080         virtual const Pointer<ConnectionId>& getConnectionId() const;
00081         virtual Pointer<ConnectionId>& getConnectionId();
00082         virtual void setConnectionId( const Pointer<ConnectionId>& connectionId );
00083 
00084         virtual const Pointer<TransactionId>& getTransactionId() const;
00085         virtual Pointer<TransactionId>& getTransactionId();
00086         virtual void setTransactionId( const Pointer<TransactionId>& transactionId );
00087 
00088         virtual unsigned char getType() const;
00089         virtual void setType( unsigned char type );
00090 
00094         virtual bool isTransactionInfo() const {
00095             return true;
00096         }
00097 
00098         virtual Pointer<Command> visit( activemq::state::CommandVisitor* visitor );
00099 
00100     };
00101 
00102 }}
00103 
00104 #endif /*_ACTIVEMQ_COMMANDS_TRANSACTIONINFO_H_*/