CollectionManager#include </home/jenkins/.jenkins/ubuntu-remote-queue/jenkins-BuildZorbaUbuntu-462/source/zorba/swig/CollectionManager.h> This class defines a set of functions for managing persistent collections.Private Attributes
Public Functions
Private AttributestheManagerzorba::CollectionManager * theManager
Public FunctionsavailableCollectionsItemSequence availableCollections() This function returns a sequence of names of the collections that are available. If this is an instance of the StaticCollectionManager class (i.e. returned by any of the getStaticCollectionManager methods), the collections returned by this function are also statically declared. ReturnsThe list of names of the available collections.CollectionManager CollectionManager(const CollectionManager &aMgr)
CollectionManager CollectionManager(zorba::CollectionManager *aMgr)
createCollectionvoid createCollection(const Item &aName) This function creates the collection with the given name.
Parameters
Parameters
createCollectionvoid createCollection(const Item &aName, const ItemSequence &aContents) This function creates the collection with the given name. Moreover, it adds copies of the sequence aContents to the new collection. Parameters
Parameters
deleteCollectionvoid deleteCollection(const Item &aName) This function removes the collection with the given name.
Parameters
Parameters
getCollectionCollection getCollection(const Item &aName) Returns a instance of the Collection class which can be used to modify and retrieve the contents of the collection identified by the given name.
Parameters
Parameters
isAvailableCollectionbool isAvailableCollection(const Item &aName) This function returns true if a collection with the given name is available. If this is an instance of the StaticCollectionManager class (i.e. returned by any of the getStaticCollectionManager() methods), the collection also needs to be statically declared. Parameters
Returnstrue if the collection is available and false otherwise.registerDiagnosticHandlervoid registerDiagnosticHandler(DiagnosticHandler *aDiagnosticHandler) Register a DiagnosticHandler to which errors occuring during the management of collections are reported. If no DiagnosticHandler has been set using this function or the corresponding function of the XmlDataManager then subclasses of the ZorbaException class are thrown to report errors. Parameters
|