00001 #include "TDbiDatabaseManager.hxx" 00002 #include "TDbiCascader.hxx" 00003 #include "TSeqNoAllocator.hxx" 00004 00005 // Issue local and global SEQNOs. 00006 00007 Int_t TSeqNoAllocator::GetSeqNo(const std::string& tableName, 00008 Int_t requireGlobal /* = 0 */, 00009 Int_t dbNo /* = 0 */) const 00010 // tableName in The table for which the SEQNO is required. 00011 // requireGlobal in The type of SEQNO required:- 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 } 00022 00023