#include <CollectionBase/ICollectionQuery.h>
An interface used to query a collection.
Definition at line 26 of file ICollectionQuery.h.
◆ ~ICollectionQuery()
virtual pool::ICollectionQuery::~ICollectionQuery |
( |
| ) |
|
|
inlinevirtual |
◆ addToOutputList() [1/2]
virtual void pool::ICollectionQuery::addToOutputList |
( |
const std::string & |
columnName | ) |
|
|
pure virtual |
◆ addToOutputList() [2/2]
virtual void pool::ICollectionQuery::addToOutputList |
( |
const std::vector< std::string > & |
columnNames | ) |
|
|
pure virtual |
◆ execute()
◆ selectAll()
virtual void pool::ICollectionQuery::selectAll |
( |
| ) |
|
|
pure virtual |
◆ selectAllAttributes()
virtual void pool::ICollectionQuery::selectAllAttributes |
( |
| ) |
|
|
pure virtual |
◆ selectAllTokens()
virtual void pool::ICollectionQuery::selectAllTokens |
( |
| ) |
|
|
pure virtual |
◆ setCondition()
virtual void pool::ICollectionQuery::setCondition |
( |
const std::string & |
whereClause, |
|
|
coral::AttributeList * |
attributeBindData = 0 , |
|
|
TokenList * |
tokenBindData = 0 |
|
) |
| |
|
pure virtual |
Sets the predicates of the query.
The predicates may involve conditions on Attributes, Tokens or individual columns of a Token in a data or links table. In the case of Token column conditions the name of the column should be provided by the user in form "<Token name>.<column name>" where "<column name>" is the actual name of the column in the associated data or links table. If bind variables are used they should be preceded by the symbol ":" in the where clause and the bind data should be provided as Attribute or Token lists that use the bind variables as their names. For Token column conditions the input Attribute list should be used for this purpose, using "<column name>" as the Attribute name. If desired, the where clause can be constructed in fragments by repeated calls to ‘setCondition’. All necessary table names, primary key matching conditions and links table ID to data table ID matching conditions are added to the final query string internally before the query is executed.
- Parameters
-
whereClause | The predicates of the query. |
attributeBindData | Attribute and Token column condition data to bind if bind variables are used in query. |
tokenBindData | Token condition data to bind if bind variables are used in query. |
Implemented in pool::RootCollection::RootCollectionQuery, pool::RootCollection::RNTCollectionQuery, and pool::ImplicitCollectionIterator.
◆ setRowCacheSize()
virtual void pool::ICollectionQuery::setRowCacheSize |
( |
int |
rowCacheSize | ) |
|
|
pure virtual |
◆ skipEventReference()
virtual void pool::ICollectionQuery::skipEventReference |
( |
bool |
= true | ) |
|
|
inlinevirtual |
◆ whereClause()
virtual const std::string& pool::ICollectionQuery::whereClause |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: