ATLAS Offline Software
Loading...
Searching...
No Matches
ICollection.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 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
10namespace pool {
11
15
23 {
24 public:
27
29 virtual ICollection::OpenMode openMode() const = 0;
30
32 virtual void open() = 0;
33
35 virtual bool isOpen() const = 0;
36
38 virtual void initNewRow( pool::CollectionRowBuffer& row ) const;
39
41 virtual void insertRow( const pool::CollectionRowBuffer& inputRowBuffer ) = 0;
42
44 virtual void commit( bool restartTransaction = true ) = 0;
45
47 virtual void close() = 0;
48
50 virtual const ICollectionDescription& description() const = 0;
51
53 virtual ICollectionCursor& cursor() = 0;
54
56 virtual ~ICollection() = default;
57
58 };
59
60}
61
62#endif
A class that acts as a buffer to be filled with the event reference and associated metadata values of...
An interface used to navigate the result of a query on a collection.
An interface used to define the properties of a collection to be constructed and to retrieve these pr...
An interface to a storage technology specific collection of event references and attributes.
Definition ICollection.h:23
virtual bool isOpen() const =0
Checks if the collection is open.
virtual ICollection::OpenMode openMode() const =0
Returns the open mode of the collection for the present transaction.
virtual const ICollectionDescription & 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.
virtual ICollectionCursor & cursor()=0
Returns an cursor for the collection.
OpenMode
Enumeration of the possible open modes of the collection.
Definition ICollection.h:26
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.
pool namespace
Definition libname.h:15