 |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef COLLECTIONBASE_ICOLLECTIONSERVICE_H
6 #define COLLECTIONBASE_ICOLLECTIONSERVICE_H
16 class ICollectionDescription;
18 class ICollectionCursor;
42 bool overwrite =
false ) = 0;
55 bool overwrite =
false,
56 const std::string & logicalName =
"" ) = 0;
70 const std::string &
type,
71 const std::string & connection =
"",
72 const std::string & logicalName =
"" ) = 0;
84 bool overwrite =
false,
85 const std::string & logicalName =
"" ) = 0;
102 const std::string&
type,
103 const std::string & connection =
"",
104 bool readOnly =
true,
129 bool readOnly =
true ) = 0;
141 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 * createAndRegister(const ICollectionDescription &description, bool overwrite=false, const std::string &logicalName="")=0
Creates or overwrites a collection, given a description of its properties, and registers it in a coll...
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 ICollection * handle(const std::string &name, const std::string &type, const 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,...
virtual bool setWriteCatalog(const std::string &name)=0
Sets the name of the catalog in which to register new collections.
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 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 bool registerExisting(const std::string &name, const std::string &type, const std::string &connection="", const std::string &logicalName="")=0
Registers an existing collection in a collection catalog managed by the collection service,...
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 registerExisting(ICollection *collection, bool overwrite=false, const std::string &logicalName="")=0
Registers an existing collection in a collection catalog managed by the collection service.
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?