io::zorba::api::xqj::ZorbaXQCollectionManagerThis class defines a set of functions for managing persistent collections.Private Attributes
Protected Functions
Public Functions
Private Functions
Private Attributesclosedboolean closed
collectionManagerCollectionManager collectionManager
sequencesCollection< XQSequence > sequences
Protected FunctionsZorbaXQCollectionManager ZorbaXQCollectionManager(CollectionManager 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. ReturnsThe list of names of the available collections.Parameters
closevoid close() Closes the collection manager. Once the collection manager is closed, no method other than close or the isClosed method may be called on the collection manager object. Calling close on an ZorbaXQCollectionManager object that is already closed has no effect. Parameters
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
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() Checks if the collection manager is closed.
Returnstrue if the collection manager is in a closed state, false otherwisePrivate FunctionsisClosedXQExceptionvoid isClosedXQException()
|