This is the class can be used to supply local or global SEQNOs. More...
#include <TSeqNoAllocator.hxx>
Public Member Functions | |
TSeqNoAllocator () | |
virtual | ~TSeqNoAllocator () |
Int_t | GetSeqNo (const std::string &tableName, Int_t requireGlobal=0, Int_t dbNo=0) const |
This is the class can be used to supply local or global SEQNOs.
Definition at line 12 of file TSeqNoAllocator.hxx.
TSeqNoAllocator::TSeqNoAllocator | ( | ) | [inline] |
Definition at line 15 of file TSeqNoAllocator.hxx.
virtual TSeqNoAllocator::~TSeqNoAllocator | ( | ) | [inline, virtual] |
Definition at line 16 of file TSeqNoAllocator.hxx.
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 }