credit-gw.h

Go to the documentation of this file.
00001 // OSB library ********************************************* -*- C++ -*-
00009 /*
00010   AUTHOR(S): Lilian Qin Lan (lan)
00011 
00012   RCS information
00013    $Name: OSB_060808 $
00014    $Revision: 1.22 $
00015 
00016   License
00017    OSB rating and billing library for communication networks
00018    Copyright (C) 2004, 2005, 2006  OSB systems
00019 
00020    This file may be distributed and/or modify under the terms of the
00021    GNU General Public License (GPL) as published by the Free Software
00022    Foundation which is provided in the file LICENSE.GPL included in the
00023    packaging of this file.
00024 
00025    The file is distributed in the hope that it will be useful, but WITHOUT
00026    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00027    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00028    for more details.
00029 
00030    Holders of a OSB Commercial License may use this file under the terms
00031    and conditions of this commercial license.
00032  */
00033 #ifndef _CREDITGW_H_
00034 #define _CREDITGW_H_
00035 
00036 // *********************************************************************
00037 // included header files
00038 
00039 // + standard includes
00040 
00041 // + local headers
00042 #include "osbid.h"
00043 #include "credit.h"
00044 #include "money.h"
00045 
00046 // *********************************************************************
00047 // class declarations
00048 namespace OSB_DB {
00049     class Session;
00050 }
00051 
00052 // ************************************************************************
00053 // namespace extensions
00054 namespace OSB_DB {
00055 
00056 // *********************************************************************
00057 // class definitions
00058 
00062     class CreditItemGw {
00064         CreditItemGw(const CreditItemGw& rhs);
00065 
00067         CreditItemGw& operator=(const CreditItemGw& rhs);
00068 
00069     public:
00071         CreditItemGw() {}
00072 
00083         bool fetchCreditItem(
00084             const Session&             session,
00085                   OSB_LIB::CreditItem& creditItem
00086         );
00087 
00095         bool insCreditItem(
00096             const Session&             session,
00097             const OSB_LIB::CreditItem& creditItem
00098         );
00099 
00109         bool updCreditItem(
00110             const Session&             session,
00111             const OSB_LIB::CreditItem& creditItem
00112         );
00120         bool delCreditItem(
00121             const Session&                  session,
00122             const OSB_LIB::CreditItem::Oid& oid
00123         );
00124     };
00125 
00126 
00130     class PersCreditGw {
00132         PersCreditGw(const PersCreditGw& rhs);
00133 
00135         PersCreditGw& operator=(const PersCreditGw& rhs);
00136 
00137     public:
00139         PersCreditGw() {}
00140 
00151         bool fetchPersCredit(
00152             const Session&             session,
00153                   OSB_LIB::PersCredit& persCredit
00154         );
00162         bool insPersCredit(
00163             const Session&             session,
00164             const OSB_LIB::PersCredit& persCredit
00165         );
00175         bool updPersCredit(
00176             const Session&             session,
00177             const OSB_LIB::PersCredit& persCredit
00178         );
00179 
00187         bool delPersCredit(
00188             const Session&                  session,
00189             const OSB_LIB::PersCredit::Oid& oid
00190         );
00191 
00209         bool lock(
00210             const Session&                  session,
00211             const OSB_LIB::PersCredit::Oid& oid
00212         );
00213 
00242         bool unlock(
00243             const Session&                  session,
00244             const OSB_LIB::PersCredit::Oid& oid,
00245                   bool                      nowait
00246         );
00247     };
00248 
00249 // *********************************************************************
00250 // inline definitions
00251 }
00252 #endif                                  // #ifndef _CREDITGW_H_

Generated on Sat Sep 2 14:06:32 2006 for OSB Library by  doxygen 1.4.7