ATLAS Offline Software
Loading...
Searching...
No Matches
pool::CollectionService Class Reference

A service for creating, accessing and managing an ensemble of collections of event references. More...

#include <CollectionSvc/CollectionService.h>

Collaboration diagram for pool::CollectionService:

Public Member Functions

 CollectionService ()=default
 Constructor:
 ~CollectionService ()=default
 Default destructor.

Static Public Member Functions

static ICollection *create ATLAS_NOT_THREAD_SAFE (const CollectionDescription &description)
 Creates or overwrites a collection or collection fragment, given a description of its properties.
static ICollection *open ATLAS_NOT_THREAD_SAFE (const std::string &name, const DbType &type, const std::string &connection="", ISession *session=0)
 Retrieves a handle to an existing collection or collection fragment for read or update transactions, given the collection or collection fragment's name, storage technology type and database connection string.
static void setMessageSvcQuiet (bool quiet=true)
 suppress (or enable) warning about a missing MessageSvc (logging)
static ICollection *plugin ATLAS_NOT_THREAD_SAFE (const CollectionDescription &description, ICollection::OpenMode openMode, ISession *session=0)

Detailed Description

A service for creating, accessing and managing an ensemble of collections of event references.

In many cases, the individual unit managed by the service may simply consist of a collection fragment containing only a subset of the metadata of an existing collection.

Definition at line 28 of file CollectionService.h.

Constructor & Destructor Documentation

◆ CollectionService()

pool::CollectionService::CollectionService ( )
default

Constructor:

Parameters
contextLocal context provided by the service.

◆ ~CollectionService()

pool::CollectionService::~CollectionService ( )
default

Default destructor.

Member Function Documentation

◆ ATLAS_NOT_THREAD_SAFE() [1/3]

ICollection *create pool::CollectionService::ATLAS_NOT_THREAD_SAFE ( const CollectionDescription & description)
static

Creates or overwrites a collection or collection fragment, given a description of its properties.

Parameters
descriptionSpecification of collection or collection fragment properties.

◆ ATLAS_NOT_THREAD_SAFE() [2/3]

ICollection *plugin pool::CollectionService::ATLAS_NOT_THREAD_SAFE ( const CollectionDescription & description,
ICollection::OpenMode openMode,
ISession * session = 0 )
static

◆ ATLAS_NOT_THREAD_SAFE() [3/3]

ICollection *open pool::CollectionService::ATLAS_NOT_THREAD_SAFE ( const std::string & name,
const DbType & type,
const std::string & connection = "",
ISession * session = 0 )
static

Retrieves a handle to an existing collection or collection fragment for read or update transactions, given the collection or collection fragment's name, storage technology type and database connection string.

A reference to a POOL database session object must be provided as input for the case where the collection being accessed is of type "ImplicitCollection".

Parameters
nameName of collection or collection fragment.
typeStorage technology type of collection or collection fragment.
connectionConnection to database containing collection or collection fragment.
sessionReference to database session (need only be set for implicit collections).

◆ setMessageSvcQuiet()

void pool::CollectionService::setMessageSvcQuiet ( bool quiet = true)
static

suppress (or enable) warning about a missing MessageSvc (logging)


The documentation for this class was generated from the following file: