ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
APR
CollectionSvc
CollectionSvc
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
11
namespace
pool
{
12
13
class
ICollectionCursor
;
14
class
CollectionDescription
;
15
class
CollectionRowBuffer
;
16
23
class
ICollection
24
{
25
public
:
27
typedef
enum
{
CREATE_AND_OVERWRITE
,
READ
}
OpenMode
;
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
pool::CollectionDescription
An implementation used to define the properties of a collection to be constructed and to retrieve the...
Definition
CollectionDescription.h:26
pool::CollectionRowBuffer
A class representing a row of a collection.
Definition
CollectionRowBuffer.h:25
pool::ICollectionCursor
An interface used to navigate the result of a query on a collection.
Definition
ICollectionCursor.h:22
pool::ICollection
An interface to a storage technology specific collection of event references and attributes.
Definition
ICollection.h:24
pool::ICollection::cursor
virtual std::unique_ptr< ICollectionCursor > cursor()=0
Returns an cursor for the collection.
pool::ICollection::description
virtual const CollectionDescription & description() const =0
Returns an object used to describe the collection properties.
pool::ICollection::commit
virtual void commit(bool restartTransaction=true)=0
Commits the latest changes made to the collection.
pool::ICollection::insertRow
virtual void insertRow(const pool::CollectionRowBuffer &inputRowBuffer)=0
Adds a new row of data to the collection.
pool::ICollection::open
virtual void open()=0
Opens the collection and initializes it if necessary.
pool::ICollection::OpenMode
OpenMode
Enumeration of the possible open modes of the collection.
Definition
ICollection.h:27
pool::ICollection::READ
@ READ
Definition
ICollection.h:27
pool::ICollection::CREATE_AND_OVERWRITE
@ CREATE_AND_OVERWRITE
Definition
ICollection.h:27
pool::ICollection::close
virtual void close()=0
Closes the collection and terminates any database connections.
pool::ICollection::~ICollection
virtual ~ICollection()=default
Empty destructor.
pool::ICollection::initNewRow
virtual void initNewRow(pool::CollectionRowBuffer &row) const
Initialize a new RowBuffer by adding all Attributes adn Tokens of this collection to it.
pool
Framework include files.
Definition
libname.h:15
Generated on
for ATLAS Offline Software by
1.17.0