ATLAS Offline Software
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
pool::DbSelect Class Reference

#include <StorageSvc/DbSelect.h>

Collaboration diagram for pool::DbSelect:

Classes

struct  Pointer
 
struct  Ptr
 

Public Member Functions

 DbSelect (const std::string &crit)
 Constructor taking selection criteria. More...
 
virtual ~DbSelect ()
 Standard destructor. More...
 
const std::string & criteria () const
 Access to selection criteria. More...
 
Token::OID_tlink () const
 Access to link handle. More...
 
void setStatement (Pointer *p)
 Set selection statement. More...
 
Pointerstatement () const
 Access to existing selection statement. More...
 
DbDatabasedatabase () const
 Access referring database context. More...
 
void setDatabase (const DbDatabase &dbcH)
 Set database context. More...
 
DbContainercontainer () const
 Access referring container context. More...
 
void setContainer (DbContainer &cntH)
 Set container context. More...
 
const GuidshapeID () const
 Access shape ID. More...
 
void setShapeID (const Guid &id)
 Set shape ID. More...
 
DbStatus start (DbDatabase &dbH, const std::string &cntName)
 Start selective iterator over a container in a database. More...
 
DbStatus next (Token *&refpToken)
 Access the next token of a sequence. More...
 

Private Member Functions

 DbSelect ()
 No default constructor. More...
 
 DbSelect (const DbSelect &)=delete
 No copy constructor. More...
 
DbSelectoperator= (const DbSelect &)=delete
 

Private Attributes

DbSelectContext * m_context
 Pointer with database context. More...
 
std::string m_criteria
 String containing the selection criteria. More...
 

Detailed Description

Definition of the DbSelect class.

Class encapsulating select statement.

Author
Markus Frank
Version
1

Definition at line 44 of file DbSelect.h.

Constructor & Destructor Documentation

◆ DbSelect() [1/3]

pool::DbSelect::DbSelect ( )
inlineprivate

No default constructor.

Definition at line 63 of file DbSelect.h.

63 : m_context(0) {}

◆ DbSelect() [2/3]

pool::DbSelect::DbSelect ( const DbSelect )
privatedelete

No copy constructor.

◆ DbSelect() [3/3]

pool::DbSelect::DbSelect ( const std::string &  crit)

Constructor taking selection criteria.

◆ ~DbSelect()

virtual pool::DbSelect::~DbSelect ( )
virtual

Standard destructor.

Member Function Documentation

◆ container()

DbContainer& pool::DbSelect::container ( ) const

Access referring container context.

◆ criteria()

const std::string& pool::DbSelect::criteria ( ) const
inline

Access to selection criteria.

Definition at line 73 of file DbSelect.h.

73 { return m_criteria; }

◆ database()

DbDatabase& pool::DbSelect::database ( ) const

Access referring database context.

◆ link()

Token::OID_t& pool::DbSelect::link ( ) const

Access to link handle.

◆ next()

DbStatus pool::DbSelect::next ( Token *&  refpToken)

Access the next token of a sequence.

◆ operator=()

DbSelect& pool::DbSelect::operator= ( const DbSelect )
privatedelete

◆ setContainer()

void pool::DbSelect::setContainer ( DbContainer cntH)

Set container context.

◆ setDatabase()

void pool::DbSelect::setDatabase ( const DbDatabase dbcH)

Set database context.

◆ setShapeID()

void pool::DbSelect::setShapeID ( const Guid id)

Set shape ID.

◆ setStatement()

void pool::DbSelect::setStatement ( Pointer p)

Set selection statement.

◆ shapeID()

const Guid& pool::DbSelect::shapeID ( ) const

Access shape ID.

◆ start()

DbStatus pool::DbSelect::start ( DbDatabase dbH,
const std::string &  cntName 
)

Start selective iterator over a container in a database.

◆ statement()

Pointer* pool::DbSelect::statement ( ) const

Access to existing selection statement.

Member Data Documentation

◆ m_context

DbSelectContext* pool::DbSelect::m_context
private

Pointer with database context.

Definition at line 59 of file DbSelect.h.

◆ m_criteria

std::string pool::DbSelect::m_criteria
private

String containing the selection criteria.

Definition at line 61 of file DbSelect.h.


The documentation for this class was generated from the following file:
pool::DbSelect::m_criteria
std::string m_criteria
String containing the selection criteria.
Definition: DbSelect.h:61
pool::DbSelect::m_context
DbSelectContext * m_context
Pointer with database context.
Definition: DbSelect.h:59