|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef COLLECTIONBASE_ICOLLECTIONSERVICE_H
6 #define COLLECTIONBASE_ICOLLECTIONSERVICE_H
17 class ICollectionDescription;
19 class ICollectionCursor;
43 bool overwrite =
false ) = 0;
56 bool overwrite =
false,
57 std::string logicalName =
"" ) = 0;
71 const std::string&
type,
72 std::string connection =
"",
73 std::string logicalName =
"" ) = 0;
85 bool overwrite =
false,
86 std::string logicalName =
"" ) = 0;
103 const std::string&
type,
104 std::string connection =
"",
105 bool readOnly =
true,
130 bool readOnly =
true ) = 0;
142 bool readOnly =
true ) = 0;
virtual ICollection * openWithPhysicalName(const std::string &physicalName, pool::ICollection::OpenMode openMode=pool::ICollection::READ)=0
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)=0
Retrieves a handle to an existing collection for read or update transactions, given the logical name ...
virtual bool registerExisting(ICollection *collection, bool overwrite=false, std::string logicalName="")=0
Registers an existing collection in a collection catalog managed by the collection service.
virtual bool setWriteCatalog(const std::string &name)=0
Sets the name of the catalog in which to register new collections.
virtual bool registerExisting(const std::string &name, const std::string &type, std::string connection="", std::string logicalName="")=0
Registers an existing collection in a collection catalog managed by the collection service,...
virtual bool setDefaultCatalog()=0
Sets default values for the write and read collection catalogs.
virtual void setCatalog(IFileCatalog *collCat)=0
Forces the service to use externally provided file catalogs The catalogs are not deleted by the servi...
OpenMode
Enumeration of the possible open modes of the collection.
virtual ~ICollectionService()
Empty destructor.
virtual ICollection * createAndRegister(const ICollectionDescription &description, bool overwrite=false, std::string logicalName="")=0
Creates or overwrites a collection, given a description of its properties, and registers it in a coll...
virtual IFileCatalog * getCatalog()=0
Returns the collection catalog used by the service.
virtual ICollection * create(const ICollectionDescription &description, bool overwrite=false)=0
Creates or overwrites a collection or collection fragment, given a description of its properties.
virtual ICollection * handle(const std::string &name, const std::string &type, std::string connection="", bool readOnly=true, ISession *session=0) const =0
Retrieves a handle to an existing collection or collection fragment for read or update transactions,...
DbStatus DbObjectHandle< T >::makeLink ATLAS_NOT_THREAD_SAFE(const Token *pToken, Token::OID_t &linkH) const
Add persistent association entry.
virtual ICollection * openWithGuid(const std::string &guid, bool readOnly=true)=0
Retrieves a handle to an existing collection for read or update transactions, given the globally uniq...
Define macros for attributes used to control the static checker.
virtual bool addReadCatalog(const std::string &name)=0
Adds a catalog to the list of catalogs in which to search for registered collections.
std::string description
glabal timer - how long have I taken so far?