Bdb packages | Design docs | Source docs | Guidelines | Recent releases

Search | Site Map .

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

/BdbCondAdmin/BdbCondTransVoid.cc

Go to the documentation of this file.
00001 //-----------------------------------------------------------------------------
00002 //
00003 // File and Version Information:
00004 //      $Id: BdbCondTransVoid.cc,v 1.1 1999/07/17 03:38:47 gapon Exp $
00005 //
00006 // Description:
00007 //      Class BdbCondTransRead. This class implements a void
00008 //      transactions management.
00009 //
00010 // Environment:
00011 //      Software developed for the BaBar Detector at the SLAC B-Factory.
00012 //
00013 // Author List:
00014 //      Igor A. Gaponenko           Original Author
00015 //
00016 // Copyright Information:
00017 //      Copyright (C) 1999          Lawrence Berkeley Laboratory
00018 //
00019 //-----------------------------------------------------------------------------
00020 
00021 //-----------------------
00022 // This Class's Header --
00023 //-----------------------
00024 
00025 #include "BdbCondAdmin/BdbCondTransVoid.hh"
00026 
00027 //-------------------------------
00028 // Collaborating Class Headers --
00029 //-------------------------------
00030 
00031 #include "ErrLogger/ErrLog.hh"
00032 
00033 //-----------------------------------------------------------------------
00034 // Local Macros, Typedefs, Structures, Unions and Forward Declarations --
00035 //-----------------------------------------------------------------------
00036 
00037 static const char rscid[] = "$Id: BdbCondTransVoid.cc,v 1.1 1999/07/17 03:38:47 gapon Exp $";
00038 
00039 //----------------
00040 // Constructors --
00041 //----------------
00042 
00043 BdbCondTransVoid::BdbCondTransVoid( ) :
00044     BdbCondTrans( )
00045 {
00046 }
00047 
00048 //--------------
00049 // Destructor --
00050 //--------------
00051 
00052 BdbCondTransVoid::~BdbCondTransVoid( )
00053 {
00054 }
00055 
00056 //--------------
00057 // Operations --
00058 //--------------
00059 
00060 BdbStatus
00061 BdbCondTransVoid::start( )
00062 {
00063     if( isActive( )) {
00064         ErrMsg(error) << "BdbCondTransVoid::start() -- ERROR." << endl
00065                       << "    Transaction is already active." << endl
00066                       << "    Check the logic of the application." << endmsg;
00067         return BdbcError;
00068     }
00069     setActive( true );
00070 
00071     return BdbcSuccess;
00072 }
00073 
00074 BdbStatus
00075 BdbCondTransVoid::commit( )
00076 {
00077     if( ! isActive( )) {
00078         ErrMsg(error) << "BdbCondTransVoid::commit() -- ERROR." << endl
00079                       << "    Transaction is not active." << endl
00080                       << "    Check the logic of the application." << endmsg;
00081         return BdbcError;
00082     }
00083     setActive( false );
00084 
00085     return BdbcSuccess;
00086 }
00087 
00088 BdbStatus
00089 BdbCondTransVoid::abort( )
00090 {
00091     if( ! isActive( )) {
00092         ErrMsg(error) << "BdbCondTransVoid::abort() -- ERROR." << endl
00093                       << "    Transaction is not active." << endl
00094                       << "    Check the logic of the application." << endmsg;
00095         return BdbcError;
00096     }
00097     setActive( false );
00098 
00099     return BdbcSuccess;
00100 }
00101 
00102 /////////////////
00103 // End Of File //
00104 /////////////////

 


BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us

Page Owner: Jacek Becla
Last Update: October 04, 2002