TSeqNoAllocator Class Reference

This is the class can be used to supply local or global SEQNOs. More...

#include <TSeqNoAllocator.hxx>

List of all members.

Public Member Functions

 TSeqNoAllocator ()
virtual ~TSeqNoAllocator ()
Int_t GetSeqNo (const std::string &tableName, Int_t requireGlobal=0, Int_t dbNo=0) const

Detailed Description

This is the class can be used to supply local or global SEQNOs.

Definition at line 12 of file TSeqNoAllocator.hxx.


Constructor & Destructor Documentation

TSeqNoAllocator::TSeqNoAllocator (  )  [inline]

Definition at line 15 of file TSeqNoAllocator.hxx.

00015 {}

virtual TSeqNoAllocator::~TSeqNoAllocator (  )  [inline, virtual]

Definition at line 16 of file TSeqNoAllocator.hxx.

00016 {};


Member Function Documentation

Int_t TSeqNoAllocator::GetSeqNo ( const std::string &  tableName,
Int_t  requireGlobal = 0,
Int_t  dbNo = 0 
) const

Definition at line 7 of file TSeqNoAllocator.cxx.

References TDbiCascader::AllocateSeqNo(), TDbiDatabaseManager::GetCascader(), and TDbiDatabaseManager::Instance().

Referenced by main().

00011                                                      :-
00012 //                           > 0  Must be global
00013 //                           = 0  Must be global if supplied dbNo is authorising
00014 //                                and table isn't temporary otherwise local
00015 //                           < 0  Must be local
00016 //   dbNo            in     The entry in the cascade for which the SEQNO is required
00017 
00018 {
00019    return TDbiDatabaseManager::Instance().GetCascader().AllocateSeqNo(tableName,requireGlobal,dbNo);
00020 
00021 }

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files:

Generated on 11 Aug 2013 for SKDatabase by  doxygen 1.6.1