ATLAS Offline Software
DbSelect.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //====================================================================
6 // $Id: DbSelect.h 726071 2016-02-25 09:23:05Z krasznaa $
7 //
8 // Package : pool/StorageSvc (The pool framework)
9 //
10 // @author M.Frank
11 //
12 //====================================================================
13 // $Header: /cvs/PF/pool/StorageSvc/StorageSvc/DbSelect.h,v 1.9 2007/11/20 16:43:06 frankb Exp $
14 #ifndef POOL_DBSELECT_H
15 #define POOL_DBSELECT_H
16 
17 // Framework include files
19 #include "StorageSvc/DbStatus.h"
20 
21 // C++ include files
22 #include <string>
23 
24 /*
25  * POOL namespace declaration
26  */
27 namespace pool {
28 
29  // Forward declaration
30  class DbSelectContext;
31  class DbDatabase;
32  class DbContainer;
33 
43  class DbSelect {
44  private:
46  DbSelectContext* m_context;
48  DbSelect(const DbSelect&) = delete;
49  DbSelect& operator= (const DbSelect&) = delete;
50  public:
54  virtual ~DbSelect();
56  Token::OID_t& link() const;
58  DbDatabase& database() const;
60  void setDatabase(const DbDatabase& dbcH);
66  const Guid& shapeID() const;
68  void setShapeID(const Guid& id);
70  DbStatus start(DbDatabase& dbH, const std::string& cntName);
72  DbStatus next(Token*& refpToken);
73  };
74 } // End namespace pool
75 #endif // POOL_DBSELECT_H
pool::DbSelect::start
DbStatus start(DbDatabase &dbH, const std::string &cntName)
Start selective iterator over a container in a database.
pool::DbSelect::DbSelect
DbSelect()
Constructor.
pool::DbStatus
Definition: DbStatus.h:67
pool::DbSelect::database
DbDatabase & database() const
Access referring database context.
pool::DbSelect::next
DbStatus next(Token *&refpToken)
Access the next token of a sequence.
pool::DbSelect::DbSelect
DbSelect(const DbSelect &)=delete
No copy constructor.
pool::DbSelect::setDatabase
void setDatabase(const DbDatabase &dbcH)
Set database context.
pool::DbSelect::operator=
DbSelect & operator=(const DbSelect &)=delete
pool
pool namespace
Definition: libname.h:15
pool::DbSelect::setShapeID
void setShapeID(const Guid &id)
Set shape ID.
Token
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition: Token.h:21
Token::OID_t
Definition: Token.h:24
pool::DbSelect
Definition: DbSelect.h:43
pool::DbSelect::container
DbContainer & container() const
Access referring container context.
pool::DbContainer
Definition: DbContainer.h:51
Guid
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
Definition: Guid.h:20
pool::DbSelect::m_context
DbSelectContext * m_context
Pointer with database context.
Definition: DbSelect.h:46
pool::DbSelect::~DbSelect
virtual ~DbSelect()
Standard destructor.
pool::DbSelect::link
Token::OID_t & link() const
Access to link handle.
pool::DbDatabase
Definition: DbDatabase.h:53
Token.h
This file contains the class definition for the Token class (migrated from POOL).
pool::DbSelect::setContainer
void setContainer(DbContainer &cntH)
Set container context.
DbStatus.h
pool::DbSelect::shapeID
const Guid & shapeID() const
Access shape ID.