|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef COLLECTIONBASE_COLLECTIONSERVICE_H
6 #define COLLECTIONBASE_COLLECTIONSERVICE_H
49 bool overwrite =
false );
62 bool overwrite =
false,
63 std::string logicalName =
"" );
67 const std::string&
type,
68 std::string connection =
"",
69 bool readOnly =
true)
const
71 return handle(
name,
type, connection, readOnly, 0);
87 const std::string&
type,
88 std::string connection =
"",
89 std::string logicalName =
"" );
101 bool overwrite =
false,
102 std::string logicalName =
"" );
118 const std::string&
type,
119 std::string connection =
"",
120 bool readOnly =
true,
145 bool readOnly =
true );
157 bool readOnly =
true );
virtual ICollection * create(const ICollectionDescription &description, bool overwrite=false)
Creates or overwrites a collection or collection fragment, given a description of its properties.
virtual bool registerExisting(ICollection *collection, bool overwrite=false, std::string logicalName="")
Registers an existing collection in a collection catalog managed by the collection service.
virtual bool setWriteCatalog(const std::string &name)
Sets the name of the catalog in which to register new collections.
virtual ICollection * open(const std::string &name, const std::string &type, std::string connection="", bool readOnly=true) const
virtual ICollection * handle(const std::string &name, const std::string &type, std::string connection="", bool readOnly=true, ISession *session=0) const
Retrieves a handle to an existing collection or collection fragment for read or update transactions,...
OpenMode
Enumeration of the possible open modes of the collection.
virtual ICollection * createAndRegister(const ICollectionDescription &description, bool overwrite=false, std::string logicalName="")
Creates or overwrites a collection, given a description of its properties, and registers it in a coll...
virtual bool setDefaultCatalog()
Sets default values for the write and read collection catalogs.
CollectionService()
Constructor:
virtual IFileCatalog * getCatalog()
Returns the collection catalog used by the service.
virtual bool addReadCatalog(const std::string &name)
Adds a catalog to the list of catalogs in which to search for registered collections.
virtual bool registerExisting(const std::string &name, const std::string &type, std::string connection="", std::string logicalName="")
Registers an existing collection in a collection catalog managed by the collection service,...
virtual ICollection * openWithPhysicalName(const std::string &physicalName, pool::ICollection::OpenMode openMode=pool::ICollection::READ)
Retrieves a handle to an existing collection for read or update transactions, given the physical name...
virtual ICollection * openWithLogicalName(const std::string &logicalName, bool readOnly=true)
Retrieves a handle to an existing collection for read or update transactions, given the logical name ...
DbStatus DbObjectHandle< T >::makeLink ATLAS_NOT_THREAD_SAFE(const Token *pToken, Token::OID_t &linkH) const
Add persistent association entry.
virtual ~CollectionService()
Default destructor.
virtual void setCatalog(IFileCatalog *collCat)
Forces the service to use externally provided file catalogs The catalogs are not deleted by the servi...
Define macros for attributes used to control the static checker.
virtual ICollection * openWithGuid(const std::string &guid, bool readOnly=true)
Retrieves a handle to an existing collection for read or update transactions, given the globally uniq...
std::string description
glabal timer - how long have I taken so far?