ATLAS Offline Software
ICollectionDataEditor.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 #ifndef COLLECTIONBASE_ICOLLECTIONDATAEDITOR_H
6 #define COLLECTIONBASE_ICOLLECTIONDATAEDITOR_H
7 
8 #include <string>
9 
10 
11 namespace coral {
12  class AttributeList;
13 }
14 
15 namespace pool {
16 
17  class CollectionRowBuffer;
18  class TokenList;
19 
26  {
27  public:
34  virtual void setRowCacheSize( int rowCacheSize = 0 ) = 0;
35 
41 
48 
53  virtual void clearRowBuffers() = 0;
54 
62  virtual void insertRow( const pool::CollectionRowBuffer& inputRowBuffer, bool updateRecordsCounter = true ) = 0;
63 
74  virtual int updateRows( coral::AttributeList* attributeSetList = 0,
75  TokenList* tokenSetList = 0,
76  const std::string& whereClause = "",
77  coral::AttributeList* attributeBindData = 0,
78  pool::TokenList* tokenBindData = 0 ) = 0;
79 
91  virtual int deleteRows( const std::string& whereClause,
92  coral::AttributeList* attributeBindData = 0,
93  pool::TokenList* tokenBindData = 0,
94  bool updateRecordsCounter = true ) = 0;
95 
96  // TODO protected:
99  };
100 
101 }
102 
103 #endif
104 
pool::ICollectionDataEditor::clearRowBuffers
virtual void clearRowBuffers()=0
Clears all row buffers.
pool
pool namespace
Definition: libname.h:15
pool::ICollectionDataEditor::emptyRowBuffer
virtual CollectionRowBuffer & emptyRowBuffer()=0
Returns a reference to an empty collection row buffer for adding rows of data to the collection.
pool::ICollectionDataEditor::rowBuffer
virtual CollectionRowBuffer & rowBuffer()=0
Returns a reference to a collection row buffer for adding rows of data to the collection.
pool::ICollectionDataEditor::setRowCacheSize
virtual void setRowCacheSize(int rowCacheSize=0)=0
Sets the number of rows to cache before insertion into the collection.
python.PyKernel.AttributeList
AttributeList
Definition: PyKernel.py:36
coral
Definition: ISecondaryEventSelector.h:19
pool::TokenList
Definition: TokenList.h:24
pool::ICollectionDataEditor::insertRow
virtual void insertRow(const pool::CollectionRowBuffer &inputRowBuffer, bool updateRecordsCounter=true)=0
Adds a new row of data to the collection.
pool::CollectionRowBuffer
Definition: CollectionRowBuffer.h:31
pool::ICollectionDataEditor::~ICollectionDataEditor
virtual ~ICollectionDataEditor()
Empty destructor.
Definition: ICollectionDataEditor.h:98
pool::ICollectionDataEditor::deleteRows
virtual int deleteRows(const std::string &whereClause, coral::AttributeList *attributeBindData=0, pool::TokenList *tokenBindData=0, bool updateRecordsCounter=true)=0
Deletes the rows of the collection that satisfy a query.
pool::ICollectionDataEditor::updateRows
virtual int updateRows(coral::AttributeList *attributeSetList=0, TokenList *tokenSetList=0, const std::string &whereClause="", coral::AttributeList *attributeBindData=0, pool::TokenList *tokenBindData=0)=0
Updates the rows of the collection that satisfy a query.
pool::ICollectionDataEditor
Definition: ICollectionDataEditor.h:26