ATLAS Offline Software
ICollectionQuery.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef COLLECTIONBASE_ICOLLECTIONQUERY_H
6 #define COLLECTIONBASE_ICOLLECTIONQUERY_H
7 
8 #include <string>
9 #include <vector>
10 
11 
12 namespace coral {
13  class AttributeList;
14 }
15 
16 namespace pool {
17 
18  class ICollectionCursor;
19  class TokenList;
20 
27  {
28  public:
30  virtual ~ICollectionQuery() {}
31 
37  virtual void addToOutputList( const std::string& columnName ) = 0;
38 
44  virtual void addToOutputList( const std::vector<std::string>& columnNames ) = 0;
45 
47  virtual void selectAllAttributes() = 0;
48 
50  virtual void selectAllTokens() = 0;
51 
53  virtual void selectAll() = 0;
54 
73  virtual void setCondition( const std::string& whereClause,
74  coral::AttributeList* attributeBindData = 0,
75  TokenList* tokenBindData = 0 ) = 0;
76 
78  virtual const std::string& whereClause() const = 0;
79 
85  virtual void setRowCacheSize( int rowCacheSize ) = 0;
86 
89 
98  virtual void skipEventReference( bool = true ) {}
99  };
100 
101 }
102 
103 #endif
104 
105 
pool::ICollectionQuery
Definition: ICollectionQuery.h:27
pool
pool namespace
Definition: libname.h:15
pool::ICollectionQuery::execute
virtual pool::ICollectionCursor & execute()=0
Processes the query and returns a cursor over the query result.
pool::ICollectionQuery::selectAllTokens
virtual void selectAllTokens()=0
Adds all Token columns to the query select list.
python.PyKernel.AttributeList
AttributeList
Definition: PyKernel.py:36
pool::ICollectionQuery::selectAll
virtual void selectAll()=0
Adds all Token and Attribute columns to the query select list.
coral
Definition: ISecondaryEventSelector.h:19
pool::TokenList
Definition: TokenList.h:24
pool::ICollectionQuery::selectAllAttributes
virtual void selectAllAttributes()=0
Adds all Attribute columns to the query select list.
pool::ICollectionQuery::addToOutputList
virtual void addToOutputList(const std::vector< std::string > &columnNames)=0
Adds one or more columns to the query select list.
pool::ICollectionQuery::whereClause
virtual const std::string & whereClause() const =0
Returns the where clause of the query.
pool::ICollectionCursor
Definition: ICollectionCursor.h:21
pool::ICollectionQuery::~ICollectionQuery
virtual ~ICollectionQuery()
Default destructor.
Definition: ICollectionQuery.h:30
pool::ICollectionQuery::skipEventReference
virtual void skipEventReference(bool=true)
Tell the query to not include the primary event reference in the result by default (it can still bese...
Definition: ICollectionQuery.h:98
pool::ICollectionQuery::addToOutputList
virtual void addToOutputList(const std::string &columnName)=0
Adds a column to the query select list.
pool::ICollectionQuery::setCondition
virtual void setCondition(const std::string &whereClause, coral::AttributeList *attributeBindData=0, TokenList *tokenBindData=0)=0
Sets the predicates of the query.
pool::ICollectionQuery::setRowCacheSize
virtual void setRowCacheSize(int rowCacheSize)=0
Sets the cache size used to store the query result.