16 #ifndef API_STATIC_COLLECTION_MANAGER_H
17 #define API_STATIC_COLLECTION_MANAGER_H
33 zorba::StaticCollectionManager* theStaticManager;
void registerDiagnosticHandler(DiagnosticHandler *aDiagnosticHandler)
Register a DiagnosticHandler to which errors occuring during the management of collections are report...
void createCollection(const Item &aName)
This function creates the collection with the given name.
ItemSequence availableIndexes()
This function returns a sequence of names of the indexes that are available.
ItemSequence declaredCollections()
List all the collections that are declared in the XQuery or the StaticContext that was used to retrie...
This interface represents an instance of the XQuery 1.0 and XPath 2.0 Data Model (XDM).
Using the StaticCollectionManager one can retrieve information about statically declared collections ...
ItemSequence availableCollections()
This function returns a sequence of names of the collections that are available.
ItemSequence declaredIndexes()
List all the indexes that are declared in the XQuery or the StaticContext that was used to retrieve t...
A Collection is a persistent sequence of node items.
StaticCollectionManager(const StaticCollectionManager &aMgr)
When registered with an XQuery object, a DiagnosticHandler handles all exceptions that otherwise woul...
void deleteIndex(const Item &aQName)
Create the index with the given name.
bool isAvailableIndex(const Item &aQName)
This function returns true if a index with the given name is available.
The Zorba Item interface.
void createIndex(const Item &aQName)
Create the index with the given name.
bool isAvailableCollection(const Item &aName)
This function returns true if a collection with the given name is available.
void deleteCollection(const Item &aName)
This function removes the collection with the given name.
Collection getCollection(const Item &aName)
Returns a instance of the Collection class which can be used to modify and retrieve the contents of t...
StaticCollectionManager(zorba::StaticCollectionManager *aMgr)
bool isDeclaredCollection(const Item &aQName)
Checks if a collection with a given QName is declared in the XQuery or the StaticContext that was use...
bool isDeclaredIndex(const Item &aQName)
Checks if a index with a given QName is declared in the XQuery or the StaticContext that was used to ...