ATLAS Offline Software
Loading...
Searching...
No Matches
ICollection.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef COLLECTIONSVC_ICOLLECTION_H
6#define COLLECTIONSVC_ICOLLECTION_H
7
8#include <string>
9#include <memory>
10
11namespace pool {
12
16
24 {
25 public:
28
30 virtual void open() = 0;
31
33 virtual void initNewRow( pool::CollectionRowBuffer& row ) const;
34
36 virtual void insertRow( const pool::CollectionRowBuffer& inputRowBuffer ) = 0;
37
39 virtual void commit( bool restartTransaction = true ) = 0;
40
42 virtual void close() = 0;
43
45 virtual const CollectionDescription& description() const = 0;
46
48 virtual std::unique_ptr<ICollectionCursor> cursor() = 0;
49
51 virtual ~ICollection() = default;
52
53 };
54
55}
56
57#endif
An implementation used to define the properties of a collection to be constructed and to retrieve the...
A class representing a row of a collection.
An interface used to navigate the result of a query on a collection.
An interface to a storage technology specific collection of event references and attributes.
Definition ICollection.h:24
virtual std::unique_ptr< ICollectionCursor > cursor()=0
Returns an cursor for the collection.
virtual const CollectionDescription & description() const =0
Returns an object used to describe the collection properties.
virtual void commit(bool restartTransaction=true)=0
Commits the latest changes made to the collection.
virtual void insertRow(const pool::CollectionRowBuffer &inputRowBuffer)=0
Adds a new row of data to the collection.
virtual void open()=0
Opens the collection and initializes it if necessary.
OpenMode
Enumeration of the possible open modes of the collection.
Definition ICollection.h:27
virtual void close()=0
Closes the collection and terminates any database connections.
virtual ~ICollection()=default
Empty destructor.
virtual void initNewRow(pool::CollectionRowBuffer &row) const
Initialize a new RowBuffer by adding all Attributes adn Tokens of this collection to it.
Framework include files.
Definition libname.h:15