io::zorba::api::xqj::ZorbaXQStaticCollectionManagerUsing the ZorbaXQStaticCollectionManager one can retrieve information about statically declared collections and indexes as well as manage them. The ZorbaXQStaticCollectionManager can be retrieved from (1) a compiled XQuery or (2) a XQStaticContext object. In both cases, this class provides access to information for the collections and indexes that are declared in (1) all the modules (transitively) imported by the main query or (2) the module that resulted in the compilation of the StaticContext, respectively. Moreover, this class allows to create or delete such collections and indexes.Private Attributes
Protected Functions
Public Functions
Private Functions
Private Attributesclosedboolean closed
collectionManagerStaticCollectionManager collectionManager
sequencesCollection< XQSequence > sequences
Protected FunctionsZorbaXQStaticCollectionManager ZorbaXQStaticCollectionManager(StaticCollectionManager cm)
Public FunctionsavailableCollectionsXQSequence 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. ReturnsZorbaXQSequence - The list of names of the available collections.closevoid close()
createCollectionvoid createCollection(XQItem aName) This function creates the collection with the given name.
Parameters
Parameters
deleteCollectionvoid deleteCollection(XQItem aName) This function removes the collection with the given name.
Parameters
Parameters
getCollectionZorbaXQCollection getCollection(XQItem 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
ReturnsZorbaXQCollection - The collection if available.Parameters
isAvailableCollectionboolean isAvailableCollection(XQItem 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.Parameters
isClosedboolean isClosed()
Private FunctionsisClosedXQExceptionvoid isClosedXQException()
|