ATLAS Offline Software
Loading...
Searching...
No Matches
ImplicitCollection.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_IMPLICITCOLLECTION_H
6#define COLLECTIONSVC_IMPLICITCOLLECTION_H
7
11#include "StorageSvc/DbPrint.h"
12
14#include "Gaudi/PluginService.h"
15
16namespace pool {
17
18 // forward declarations
19 class ISession;
20 class IContainer;
21 class ICollectionQuery;
22 class ICollectionIterator;
24
27 // ^ due to not thread-safe ImplicitCollectionIterator
28 {
29 public:
34 ISession* session );
35
38
41
43 virtual void insertRow( const pool::CollectionRowBuffer& inputRowBuffer ) override final;
44
46 virtual void commit(bool /*reopen*/=false) override final { };
47 virtual void close() override final { };
48 virtual void open() override final { };
49
51 virtual const CollectionDescription& description() const override final;
52
54 virtual std::unique_ptr<ICollectionCursor> cursor() override final;
55
57 void open( ICollection::OpenMode mode, ISession* session );
58
59 private:
62
64 };
65}
66
67#endif
#define protected
Define macros for attributes used to control the static checker.
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
APRMessaging(const std::string &name)
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
OpenMode
Enumeration of the possible open modes of the collection.
Definition ICollection.h:27
IContainer is the base class for container objects.
Definition IContainer.h:23
ISession is the interface class for user (macroscopic) sessions Every transaction and connection to a...
Definition ISession.h:37
Iterator over an implicit collection.
ImplicitCollection(const CollectionDescription *description, ICollection::OpenMode mode, ISession *session)
Constructor compying to the new Collections API parameters as above, but name and connection passed i...
ImplicitCollection(const ImplicitCollection &)=delete
virtual void close() override final
Closes the collection and terminates any database connections.
virtual void insertRow(const pool::CollectionRowBuffer &inputRowBuffer) override final
Adds a new row of data to the collection. Will always throw exception.
virtual void open() override final
Opens the collection and initializes it if necessary.
virtual void commit(bool=false) override final
Base interface methods that do nothing. Open/Close happens in xtor and dtor, and commit is a no-op.
virtual const CollectionDescription & description() const override final
Returns an object used to describe the collection properties.
virtual std::unique_ptr< ICollectionCursor > cursor() override final
Returns a cursor for the collection.
IContainer * m_container
The underlying container handle.
~ImplicitCollection()
Destructor.
CollectionDescription m_description
STL class.
Framework include files.
Definition libname.h:15
STL namespace.
#define private