Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

CdbCommandTransVoid.hh

Go to the documentation of this file.
00001 #ifndef CDBTOOLS_COMMAND_TRANS_VOID_HH
00002 #define CDBTOOLS_COMMAND_TRANS_VOID_HH
00003 
00004 // File and Version Information:
00005 //      $Id: CdbCommandTransVoid.hh,v 1.1 2002/11/27 23:47:23 gapon Exp $
00006 
00007 #include "CdbTools/CdbCommandTrans.hh"
00008 
00009 /// This is a "void" implementation of the transaction manager
00010 /**
00011   * Operations implemented by this class does not do anything at all.
00012   *
00013   * This manager can be used either when the corresponding operation
00014   * does not need any transaction at all, or if the proper transaction
00015   * context is already established.
00016   */
00017 class CdbCommandTransVoid : public CdbCommandTrans {
00018 
00019 public:
00020 
00021   /// Constructor
00022 
00023     CdbCommandTransVoid( );
00024 
00025   /// Destructor
00026 
00027     virtual ~CdbCommandTransVoid( );
00028 
00029   /// Start a new transaction
00030   /**
00031     * Implement a pure virtual method defined by the base class.
00032     *
00033     * @see CdbCommandTrans::start()
00034     */
00035     virtual CdbStatus start( );
00036 
00037   /// Commit an active transaction
00038   /**
00039     * Implement a pure virtual method defined by the base class.
00040     *
00041     * @see CdbCommandTrans::commit()
00042     */
00043     virtual CdbStatus commit( );
00044 
00045   /// Commit and hold an active transaction
00046   /**
00047     * Implement a pure virtual method defined by the base class.
00048     *
00049     * @see CdbCommandTrans::commitAndHold()
00050     */
00051     virtual CdbStatus commitAndHold( );
00052 
00053   /// Abort an active transaction
00054   /**
00055     * Implement a pure virtual method defined by the base class.
00056     *
00057     * @see CdbCommandTrans::abort()
00058     */
00059     virtual CdbStatus abort( );
00060 
00061 protected:
00062 
00063 };
00064 
00065 #endif /* CDBTOOLS_COMMAND_TRANS_VOID_HH */

Generated on Mon Dec 5 18:22:04 2005 for CDB by doxygen1.3-rc3