zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #26115
[Merge] lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
Paul J. Lucas has proposed merging lp:~zorba-coders/zorba/bug-1189862 into lp:zorba.
Commit message:
Renamed this module, plus:
* Majorly cleaned-up.
* @deprecated functions removed.
* Renamed integrity_constraints to integrity-constraints.
Requested reviews:
Paul J. Lucas (paul-lucas)
Related bugs:
Bug #1180221 in Zorba: "Rename integrity_constraints and xqdoc_project modules"
https://bugs.launchpad.net/zorba/+bug/1180221
Bug #1189862 in Zorba: "Update core "store" modules"
https://bugs.launchpad.net/zorba/+bug/1189862
For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug-1189862/+merge/190266
Renamed this module, plus:
* Majorly cleaned-up.
* @deprecated functions removed.
* Renamed integrity_constraints to integrity-constraints.
--
The attached diff has been truncated due to its size.
https://code.launchpad.net/~zorba-coders/zorba/bug-1189862/+merge/190266
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'modules/com/zorba-xquery/www/modules/CMakeLists.txt'
--- modules/com/zorba-xquery/www/modules/CMakeLists.txt 2013-10-09 02:52:32 +0000
+++ modules/com/zorba-xquery/www/modules/CMakeLists.txt 2013-10-09 23:30:21 +0000
@@ -26,28 +26,6 @@
# Subdirectories
-DECLARE_ZORBA_MODULE(FILE store/documents/dynamic.xq VERSION 2.0
- URI "http://www.zorba-xquery.com/modules/store/dynamic/documents";)
-DECLARE_ZORBA_MODULE(FILE store/dynamic/collections/ddl.xq VERSION 2.0
- URI "http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl";)
-DECLARE_ZORBA_MODULE(FILE store/dynamic/collections/dml.xq VERSION 2.0
- URI "http://www.zorba-xquery.com/modules/store/dynamic/collections/dml";)
-DECLARE_ZORBA_MODULE(FILE store/dynamic/collections/w3c/ddl.xq VERSION 2.0
- URI "http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl";)
-DECLARE_ZORBA_MODULE(FILE store/dynamic/collections/w3c/dml.xq VERSION 2.0
- URI "http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/dml";)
-DECLARE_ZORBA_MODULE(FILE store/static/collections/ddl.xq VERSION 2.0
- URI "http://www.zorba-xquery.com/modules/store/static/collections/ddl";)
-DECLARE_ZORBA_MODULE(FILE store/static/collections/dml.xq VERSION 2.0
- URI "http://www.zorba-xquery.com/modules/store/static/collections/dml";)
-DECLARE_ZORBA_MODULE(FILE store/static/indexes/ddl.xq VERSION 2.0
- URI "http://www.zorba-xquery.com/modules/store/static/indexes/ddl";)
-DECLARE_ZORBA_MODULE(FILE store/static/indexes/dml.xq VERSION 2.0
- URI "http://www.zorba-xquery.com/modules/store/static/indexes/dml";)
-DECLARE_ZORBA_MODULE(FILE store/static/integrity_constraints/ddl.xq VERSION 2.0
- URI "http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl";)
-DECLARE_ZORBA_MODULE(FILE store/static/integrity_constraints/dml.xq VERSION 2.0
- URI "http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml";)
DECLARE_ZORBA_MODULE(FILE xqdoc/batch.xq VERSION 2.0
URI "http://www.zorba-xquery.com/modules/xqdoc/batch";)
DECLARE_ZORBA_MODULE(FILE xqdoc/html.xq VERSION 2.0
=== removed directory 'modules/com/zorba-xquery/www/modules/store'
=== removed directory 'modules/com/zorba-xquery/www/modules/store/data-structures'
=== removed directory 'modules/com/zorba-xquery/www/modules/store/documents'
=== modified file 'modules/store/CMakeLists.txt'
--- modules/store/CMakeLists.txt 2013-08-24 23:44:26 +0000
+++ modules/store/CMakeLists.txt 2013-10-09 23:30:21 +0000
@@ -14,3 +14,29 @@
DECLARE_ZORBA_MODULE(FILE unordered-maps.xq VERSION 1.0
URI "http://zorba.io/modules/unordered-maps";)
+
+DECLARE_ZORBA_MODULE(FILE documents.xq VERSION 2.0
+ URI "http://zorba.io/modules/store/documents";)
+
+DECLARE_ZORBA_MODULE(FILE dynamic/collections/ddl.xq VERSION 2.0
+ URI "http://zorba.io/modules/store/dynamic/collections/ddl";)
+DECLARE_ZORBA_MODULE(FILE dynamic/collections/dml.xq VERSION 2.0
+ URI "http://zorba.io/modules/store/dynamic/collections/dml";)
+DECLARE_ZORBA_MODULE(FILE dynamic/collections/w3c/ddl.xq VERSION 2.0
+ URI "http://zorba.io/modules/store/dynamic/collections/w3c/ddl";)
+DECLARE_ZORBA_MODULE(FILE dynamic/collections/w3c/dml.xq VERSION 2.0
+ URI "http://zorba.io/modules/store/dynamic/collections/w3c/dml";)
+DECLARE_ZORBA_MODULE(FILE static/collections/ddl.xq VERSION 2.0
+ URI "http://zorba.io/modules/store/static/collections/ddl";)
+DECLARE_ZORBA_MODULE(FILE static/collections/dml.xq VERSION 2.0
+ URI "http://zorba.io/modules/store/static/collections/dml";)
+DECLARE_ZORBA_MODULE(FILE static/indexes/ddl.xq VERSION 2.0
+ URI "http://zorba.io/modules/store/static/indexes/ddl";)
+DECLARE_ZORBA_MODULE(FILE static/indexes/dml.xq VERSION 2.0
+ URI "http://zorba.io/modules/store/static/indexes/dml";)
+DECLARE_ZORBA_MODULE(FILE static/integrity-constraints/ddl.xq VERSION 2.0
+ URI "http://zorba.io/modules/store/static/integrity-constraints/ddl";)
+DECLARE_ZORBA_MODULE(FILE static/integrity-constraints/dml.xq VERSION 2.0
+ URI "http://zorba.io/modules/store/static/integrity-constraints/dml";)
+
+# vim:set et sw=2 ts=2:
=== renamed file 'modules/com/zorba-xquery/www/modules/store/documents/dynamic.xq' => 'modules/store/documents.xq'
--- modules/com/zorba-xquery/www/modules/store/documents/dynamic.xq 2013-09-26 23:15:11 +0000
+++ modules/store/documents.xq 2013-10-09 23:30:21 +0000
@@ -1,7 +1,7 @@
xquery version "3.0";
(:
- : Copyright 2006-2009 The FLWOR Foundation.
+ : Copyright 2006-2013 The FLWOR Foundation.
:
: Licensed under the Apache License, Version 2.0 (the "License");
: you may not use this file except in compliance with the License.
@@ -20,100 +20,114 @@
: This module defines a set of functions which manage documents that
: are persisted in the store. Specifically, it contains functions
: to put, remove, list, or retrieve documents.
- :
- : <p>Please refer to <a href="../zorba/data_lifecycle.html">our documentation</a> for
- : more information about the lifecycle management and manipulation of documents.</p>
+ : <p>
+ : Please refer to <a href="../zorba/data_lifecycle.html">our documentation</a>
+ : for more information about the lifecycle management and manipulation of
+ : documents.
:
: @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>
: @see http://zorba.io/errors
- :
: @author Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis
- :
: @project Zorba/Data Store/Documents
:)
-module namespace doc = "http://www.zorba-xquery.com/modules/store/dynamic/documents";;
+module namespace doc = "http://zorba.io/modules/store/documents";;
declare namespace zerr = "http://zorba.io/errors";;
declare namespace err = "http://www.w3.org/2005/xqt-errors";;
declare namespace ver = "http://zorba.io/options/versioning";;
declare option ver:module-version "2.0";
-(:~
- : Adds a document to the store. The document is bound to the URI
- : given as first parameter. This URI is the name of the document and
- : can be used by the doc:document() function to retrieve
- : the document from the store.
- :
- : The semantics of the function is similar to the fn:put function. The difference
- : is that this function accepts only document nodes as parameters.
- : Please note that this function does not try to fetch the document from the
- : external resource identified by $uri. Instead, the file or http-client
- : modules can be used to retrieve the resource as string and fn:parse-xml can be used
- : to parse the string returning a document.
- :
- : @param $uri The URI of the document. If a relative URI is given, the URI
- : is made absolute using the static base URI of the module.
- : @param $doc The document node to be added to the store.
- :
- : @return an empty XDM instance and a pending update list which, when
- : applied, adds the given document to the store.
- :
- : @error zerr:ZAPI0020 if the store already contains a document for the given $uri.
- : @error err:FODC0004 if the given URI is not valid or couldn't be absolutized.
- :
- :)
-declare updating function doc:put(
- $uri as xs:string,
- $doc as document-node()) external;
-
-(:~
- : Removes the document with the given URI from the store.
- :
- : @param $uri The URI of the document to remove. If a relative URI is given,
- : the URI is made absolute using the static base URI of the module.
-
- : @return Returns an empty XDM instance and a pending update list which, when
- : applied, removes the document bound to the given URI.
- :
- : @error zerr:ZXQD0002 if no document with the given URI exists in the store.
- : @error err:FODC0004 if the given URI is not valid or couldn't be absolutized.
- :)
-declare updating function doc:remove($uri as xs:string) external;
-
-(:~
- : Returns the document with the given URI from the store.
+(:===========================================================================:)
+
+(:~
+ : Retrieves a sequence of URIs of documents bound in the store.
+ :
+ : @return The list of URIs of the available documents in the store or the
+ : empty sequence if none.
+ :)
+declare function doc:available-documents()
+ as xs:string* external;
+
+(:~
+ : Gets the document with the given URI from the store.
:
: The difference to fn:doc is that this function does not attempt to retrieve
: the resource from the file system or the web before returning it.
: Its only responsibility is to return the document from the store that was
: bound using fn:put or doc:put.
:
- : @param $uri The URI of the document to retrieve. If a relative URI is given,
- : the URI is made absolute using the static base URI of the module.
- :
+ : @param $uri The URI of the document to retrieve.
+ : If a relative URI is given, the URI is made absolute using the static base
+ : URI of the module.
: @return Returns the document bound to the given URI.
- :
: @error zerr:ZXQD0002 if no document with the given URI exists in the store.
- : @error err:FODC0004 if the given URI is not valid or couldn't be absolutized.
- :)
-declare function doc:document($uri as xs:string) as document-node() external;
-
-(:~
- : Retrieves a sequence of URIs of documents bound in the store.
- :
- : @return The list of URIs of the available documents in the store. The empty
- : sequence is returned if not document exists in the store.
- :)
-declare function doc:available-documents() as xs:string* external;
+ : @error err:FODC0004 if the given URI is not valid or couldn't be made
+ : absolute.
+ :)
+declare function doc:document( $uri as xs:string )
+ as document-node() external;
(:~
: Returns true if a document with the given URI exists in the store.
:
- : @param $uri The URI of the document to check for. If a relative URI is given,
+ : @param $uri The URI of the document to check for.
+ : If a relative URI is given, the URI is made absolute using the static base
+ : URI of the module.
+ :
+ : @return Returns true if a document with the given URI exists in the store or
+ : false otherwise.
+ : @error err:FODC0004 if the given URI is not valid or couldn't be made
+ : absolute.
+ :)
+declare function doc:is-available-document( $uri as xs:string )
+ as xs:boolean external;
+
+(:~
+ : Adds a document to the store.
+ : The document is bound to the URI given as first parameter.
+ : This URI is the name of the document and can be used by the
+ : <code>doc:document()</code> function to retrieve the document from the
+ : store.
+ : <p>
+ : The semantics of the function is similar to the <coe>fn:put()</code>
+ : function.
+ : The difference is that this function accepts only document nodes as
+ : parameters.
+ : Please note that this function does not try to fetch the document from the
+ : external resource identified by the URI.
+ : Instead, the file or http-client modules can be used to retrieve the
+ : resource as string and <code>fn:parse-xml()</code> can be used to parse the
+ : string returning a document.
+ :
+ : @param $uri The URI of the document.
+ : If a relative URI is given, the URI is made absolute using the static base
+ : URI of the module.
+ : @param $doc The document node to be added to the store.
+ : @return An empty XDM instance and a pending update list that, when applied,
+ : adds the given document to the store.
+ : @error zerr:ZAPI0020 if the store already contains a document for the given
+ : URI.
+ : @error err:FODC0004 if the given URI is not valid or couldn't be made
+ : absolute.
+ :)
+declare updating function doc:put( $uri as xs:string,
+ $doc as document-node() )
+ external;
+
+(:~
+ : Removes the document with the given URI from the store.
+ :
+ : @param $uri The URI of the document to remove. If a relative URI is given,
: the URI is made absolute using the static base URI of the module.
- :
- : @return Returns true if a document with the given URI exists in the store or false otherwise.
- :
- : @error err:FODC0004 if the given URI is not valid or couldn't be absolutized.
+ : @return Returns an empty XDM instance and a pending update list that, when
+ : applied, removes the document bound to the given URI.
+ : @error zerr:ZXQD0002 if no document with the given URI exists in the store.
+ : @error err:FODC0004 if the given URI is not valid or couldn't be made
+ : absolute.
:)
-declare function doc:is-available-document($uri as xs:string) as xs:boolean external;
+declare updating function doc:remove( $uri as xs:string )
+ external;
+
+(:===========================================================================:)
+
+(: vim:set et sw=2 ts=2: :)
=== renamed directory 'modules/com/zorba-xquery/www/modules/store/dynamic' => 'modules/store/dynamic'
=== modified file 'modules/store/dynamic/collections/ddl.xq'
--- modules/com/zorba-xquery/www/modules/store/dynamic/collections/ddl.xq 2013-09-26 23:15:11 +0000
+++ modules/store/dynamic/collections/ddl.xq 2013-10-09 23:30:21 +0000
@@ -1,7 +1,7 @@
xquery version "3.0";
(:
- : Copyright 2006-2009 The FLWOR Foundation.
+ : Copyright 2006-2013 The FLWOR Foundation.
:
: Licensed under the Apache License, Version 2.0 (the "License");
: you may not use this file except in compliance with the License.
@@ -17,103 +17,89 @@
:)
(:~
- : This modules defines a set of functions for managing persistent, ordered, and
- : updatable collections.
- :
- : <p>Please refer to our documentation for <a href="../zorba/data_lifecycle.html">
- : more information</a> about the lifecycle management and the manipulation of such
- : collections.</p>
+ : This modules defines a set of functions for managing persistent, ordered,
+ : and updatable collections.
+ : <p>
+ : Please refer to our documentation for
+ : <a href="../zorba/data_lifecycle.html">more information</a>
+ : about the lifecycle management and the manipulation of such collections.
:
: @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>
- : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/dml
+ : @see http://zorba.io/modules/store/dynamic/collections/dml
: @see http://zorba.io/errors
:
: @author Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis
- :
: @project Zorba/Data Store/Collections/Dynamic Data Definition
- :
:)
-module namespace ddl = "http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl";;
+module namespace ddl = "http://zorba.io/modules/store/dynamic/collections/ddl";;
declare namespace zerr = "http://zorba.io/errors";;
declare namespace ver = "http://zorba.io/options/versioning";;
declare option ver:module-version "2.0";
-
-(:~
- : The create function is an updating function which creates
- : the collection with the given expanded QName.
- :
- : @param $name The QName of the collection to create.
- :
- : @return The result of the function is an empty XDM instance and a
- : pending update list which, once applied, creates a collection
- : with the given name.
- :
- : @error zerr:ZDDY0002 if a collection with the given expanded QName already
- : exists.
- :
- :)
-declare updating function ddl:create($name as xs:QName) external;
-
-
-(:~
- : The create function is an updating function which creates
- : the collection with the given expanded QName. Moreover, it adds copies
- : of the sequence $content to the new collection.
- :
- : @param $name The QName of the collection to create.
- : @param $content The sequences of items (nodes and/or json items) that should
- : be added to the new collection.
- :
- : @return The result of the function is an empty XDM instance and a
- : pending update list which, once applied, creates a collection
- : with the given name and inserts the given items into it.
- :
- : @error zerr:ZDDY0002 if a collection with the given expanded QName already
- : exists.
- :
+(:===========================================================================:)
+
+(:~
+ : Gets the QNames of the collections that are available, if any.
+ :
+ : @return A sequence comprising one QName for each available collection
+ : or an emtpy sequence if no collections are available.
+ :)
+declare function ddl:available-collections()
+ as xs:QName* external;
+
+(:~
+ : Creates a collection.
+ :
+ : @param $name The name of the collection to create.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : creates a collection with the given name.
+ : @error zerr:ZDDY0002 if a collection with <code>$name</code> already exists.
+ :)
+declare updating function ddl:create( $name as xs:QName )
+ external;
+
+(:~
+ : Creates a collection and adds the given sequence as content to the new
+ : collection.
+ :
+ : @param $name The name of the collection to create.
+ : @param $content The sequence of items (nodes or JSON items)
+ : to be added to the new collection.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : creates a collection with the given name and inserts the given items into
+ : it.
+ : @error zerr:ZDDY0002 if a collection with the given name already exists.
: @see ddl:create
: @see ddl:insert-nodes-last
- :
- :)
-declare updating function ddl:create($name as xs:QName, $content as item()*) external;
-
-
-(:~
- : The delete function is an updating function that removes
- : the collection with the given expanded QName.
- :
- : @param $name The QName of the collection to delete.
- :
- : @return The result of the function is an empty XDM instance and a pending
- : update list which, once applied, deletes the collection with the given
- : name.
- :
- : @error zerr:ZDDY0003 if the collection with the given name does not exist.
- : @error zerr:ZDDY0015 if any of the in-scope variables references an item that
- : belongs to the collection with QName $name.
- :
- :)
-declare updating function ddl:delete($coll as xs:QName) external;
-
-
-(:~
- : The function returns true if a collection with the given QName is available.
+ :)
+declare updating function ddl:create( $name as xs:QName,
+ $content as item()* )
+ external;
+
+(:~
+ : Deletes the collection having the given name.
+ :
+ : @param $name The name of the collection to delete.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : deletes the collection with the given name.
+ : @error zerr:ZDDY0003 if the collection identified by <code>$name</code> is
+ : not available.
+ : @error zerr:ZDDY0015 if any of the in-scope variables references an item
+ : that belongs to the collection with QName <code>$name</code>.
+ :)
+declare updating function ddl:delete( $name as xs:QName )
+ external;
+
+(:~
+ : Gets whether a collection with the given name is available.
:
: @param $name The QName of the collection that is being checked.
- :
: @return true if the collection is available and false otherwise.
- :
- :)
-declare function ddl:is-available-collection($name as xs:QName) as xs:boolean external;
-
-
-(:~
- : The function returns a sequence of QNames of the collections that are
- : available. The sequence will be empty if there are no collections.
- :
- : @return A sequence of QNames, one for each available collection, or an emtpy sequence.
- :
- :)
-declare function ddl:available-collections() as xs:QName* external;
+ :)
+declare function ddl:is-available-collection( $name as xs:QName )
+ as xs:boolean external;
+
+(:===========================================================================:)
+
+(: vim:set et sw=2 ts=2: :)
=== modified file 'modules/store/dynamic/collections/dml.xq'
--- modules/com/zorba-xquery/www/modules/store/dynamic/collections/dml.xq 2013-09-26 23:15:11 +0000
+++ modules/store/dynamic/collections/dml.xq 2013-10-09 23:30:21 +0000
@@ -1,7 +1,7 @@
xquery version "3.0";
(:
- : Copyright 2006-2009 The FLWOR Foundation.
+ : Copyright 2006-2013 The FLWOR Foundation.
:
: Licensed under the Apache License, Version 2.0 (the "License");
: you may not use this file except in compliance with the License.
@@ -17,22 +17,21 @@
:)
(:~
- : This modules provides a set of functions to modify a collection and retrieve the items
- : contained in a particular collection.
- :
- : <p>Please refer to our documentation for <a href="../zorba/data_lifecycle.html">
- : more information</a> about the lifecycle management and the manipulation of such
- : collections.</p>
+ : This modules provides a set of functions to modify a collection
+ : and retrieve the items contained in a particular collection.
+ : <p>
+ : Please refer to our documentation for
+ : <a href="../zorba/data_lifecycle.html">more information</a>
+ : about the lifecycle management and the manipulation of such collections.
:
: @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>
- : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl
+ : @see http://zorba.io/modules/store/dynamic/collections/ddl
: @see http://zorba.io/errors
:
: @author Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis
- :
: @project Zorba/Data Store/Collections/Dynamic Data Manipulation
:)
-module namespace dml = "http://www.zorba-xquery.com/modules/store/dynamic/collections/dml";;
+module namespace dml = "http://zorba.io/modules/store/dynamic/collections/dml";;
declare namespace zerr = "http://zorba.io/errors";;
declare namespace an = "http://zorba.io/annotations";;
@@ -40,675 +39,306 @@
declare namespace ver = "http://zorba.io/options/versioning";;
declare option ver:module-version "2.0";
-
-(:~
- : The insert-nodes-first function is an updating function that inserts copies of the
- : given nodes at the beginning of the collection.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, inserts the nodes into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- :
- : @deprecated please use the cdml:insert-first#2 function
- :
- :)
-declare updating function
-dml:insert-nodes-first($name as xs:QName, $content as node()*) external;
-
-
-(:~
- : The insert-first function is an updating function that inserts copies of the
- : given items (nodes or json items) at the beginning of the collection.
- :
- : @param $name The name of the collection to which the items should be added.
- : @param $content The sequences of items whose copies should be added to the collection.
- :
- : @return The result of the function is an empty XDM instance and a pending update
- : list which, once applied, inserts the items into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- :
- :)
-declare updating function
-dml:insert-first($name as xs:QName, $content as item()*) external;
-
-
-(:~
- : The insert-nodes-last function is an updating function that inserts copies of the
- : given nodes at the end of the collection.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, inserts the nodes into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- :
- : @deprecated please use the cdml:insert-last#2 function
- :
- :)
-declare updating function
-dml:insert-nodes-last($name as xs:QName, $content as node()*) external;
-
-
-(:~
- : The insert-last function is an updating function that inserts copies of the
- : given items (nodes or json items) at the end of the collection.
- :
- : @param $name The name of the collection to which the items should be added.
- : @param $content The sequences of items whose copies should be added to the collection.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, inserts the items into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- :
- :)
-declare updating function
-dml:insert-last($name as xs:QName, $content as item()*) external;
-
-
-(:~
- : The insert-nodes-before function is an updating function that inserts
- : copies of the given nodes into a collection at the position directly preceding the
- : given target node.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $target The node in the collection before which the $content
- : sequence should be inserted.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, inserts the nodes into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0011 if the target node is not contained in the collection.
- :
- : @deprecated please use the cdml:insert-before#3 function
- :
- :)
-declare updating function
-dml:insert-nodes-before(
- $name as xs:QName,
- $target as node(),
- $content as node()*) external;
-
-(:~
- : The insert-before function is an updating function that inserts copies of
- : the given items (nodes or json items) into a collection at the position
- : directly preceding the given target item.
- :
- : @param $name The name of the collection to which the items should be added.
- : @param $target The item in the collection before which the $content
- : sequence should be inserted.
- : @param $content The sequences of items whose copies should be added to the collection.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, inserts the items into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0011 if the target item is not contained in the collection.
- :
- :)
-declare updating function
-dml:insert-before($name as xs:QName, $target as item(), $content as item()*) external;
-
-
-(:~
- : The insert-nodes-after function is an updating function that inserts
- : copies of the given nodes into a collection at the position directly following the
- : given target node.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $target The node in the collection after which the $content
- : sequence should be inserted.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, inserts the nodes into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0011 if the target node is not contained in the collection.
- :
- : @deprecated please use the cdml:insert-after#3 function
- :
- :)
-declare updating function
-dml:insert-nodes-after(
- $name as xs:QName,
- $pos as node(),
- $content as node()*) external;
-
-
-(:~
- : The insert-after function is an updating function that inserts copies of
- : the given items (nodes and/or json items) into a collection at the position
- : directly following the given target item.
- :
- : @param $name The name of the collection to which the items should be added.
- : @param $target The item in the collection after which the $content
- : sequence should be inserted.
- : @param $content The sequences of items whose copies should be added to the collection.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, inserts the items into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0011 if the target node is not contained in the collection.
- :
- :)
-declare updating function
-dml:insert-after($name as xs:QName, $pos as item(), $content as item()*) external;
-
-
-(:~
- : This function does the same as the insert-nodes-first function except
- : it immediately applies the resulting pending updates and returns the
- : nodes that have been inserted.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is the sequence of nodes that have been
- : inserted into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- :
- : @see dml:insert-nodes-first
- :
- : @deprecated please use the cdml:apply-insert-first#2 function
- :
- :)
-declare %an:sequential function
-dml:apply-insert-nodes-first(
- $name as xs:QName,
- $content as node()*) as node()* external;
-
-
-(:~
- : This function does the same as the insert-first function except it immediately
- : applies the resulting pending updates and returns the items that have been inserted.
- :
- : @param $name The name of the collection to which the items should be added.
- : @param $content The sequences of items whose copies should be added to the collection.
- :
- : @return The result of the function is the sequence of items that have been
- : inserted into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- :
+(:===========================================================================:)
+
+(:~
+ : Inserts copies of the given items (nodes or JSON items)
+ : into a collection at the position directly preceding the given target item.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $target The item in the collection before which <code>$content</code>
+ : will be inserted.
+ : @param $content The sequence of items whose copies to insert.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : inserts the items into the collection.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0011 if <code>$target</code> is not in the collection.
+ :)
+declare updating function dml:insert-before( $name as xs:QName,
+ $target as item(),
+ $content as item()* )
+ external;
+
+(:~
+ : Inserts copies of the given items (nodes or JSON items)
+ : at the beginning of the collection.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $content The sequence of items whose copies to insert.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : inserts the items into the collection.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ :)
+declare updating function dml:insert-first( $name as xs:QName,
+ $content as item()* )
+ external;
+
+(:~
+ : Inserts copies of the given items (nodes or JSON items)
+ : at the end of the collection.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $content The sequence of items whose copies to insert.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : inserts the items into the collection.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ :)
+declare updating function dml:insert-last( $name as xs:QName,
+ $content as item()* )
+ external;
+
+(:~
+ : Inserts copies of the given items (nodes or JSON items)
+ : into a collection at the position directly following the given target item.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $target The item in the collection after which <code>$content</code>
+ : will be inserted.
+ : @param $content The sequence of items whose copies to insert.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : inserts the items into the collection.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0011 if <code>$target</code> is not in the collection.
+ :)
+declare updating function dml:insert-after( $name as xs:QName,
+ $pos as item(),
+ $content as item()* )
+ external;
+
+(:~
+ : This function does the same thing as <code>insert-first()</code> except it
+ : immediately applies the resulting pending updates and returns the items that
+ : have been inserted.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $content The sequence of items whose copies to insert.
+ : @return The sequence of items that have been inserted.
+ : @error zerr:ZDDY0003 if the collection is not available.
: @see dml:insert-first
- :
- :)
-declare %an:sequential function
-dml:apply-insert-first($name as xs:QName, $content as item()*) as item()* external;
-
-
-(:~
- : This function does the same as the insert-nodes-last function except
- : it immediately applies the resulting pending updates and returns the
- : nodes that have been inserted.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is the sequence of nodes that have been
- : inserted into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- :
- : @see dml:insert-nodes-last
- :
- : @deprecated please use the cdml:apply-insert-last#2 function
- :
- :)
-declare %an:sequential function dml:apply-insert-nodes-last(
- $name as xs:QName,
- $content as node()*) as node()* external;
-
-
-(:~
- : This function does the same as the insert-last function except it immediately
- : applies the resulting pending updates and returns the items that have been
- : inserted.
- :
- : @param $name The name of the collection to which the items should be added.
- : @param $content The sequences of items whose copies should be added to the collection.
- :
- : @return The result of the function is the sequence of items that have been
- : inserted into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- :
+ :)
+declare %an:sequential function dml:apply-insert-first( $name as xs:QName,
+ $content as item()* )
+ as item()* external;
+
+(:~
+ : This function does the same thing as <code>insert-last()</code> except it
+ : immediately applies the resulting pending updates and returns the items that
+ : have been inserted.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $content The sequence of items whose copies to insert.
+ : @return The sequence of items that have been inserted.
+ : @error zerr:ZDDY0003 if the collection is not available.
: @see dml:insert-last
- :
- :)
-declare %an:sequential function dml:apply-insert-last(
- $name as xs:QName,
- $content as item()*) as item()* external;
-
-
-(:~
- : This function does the same as the insert-nodes-before function except
- : it immediately applies the resulting pending updates and returns the
- : nodes that have been inserted.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $target The node in the collection before which the $content
- : sequence should be inserted.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is the sequence of nodes that have been
- : inserted into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- :
- : @see dml:insert-nodes-before
- :
- : @deprecated please use the cdml:apply-insert-before#3 function
- :
- :)
-declare %an:sequential function
-dml:apply-insert-nodes-before(
- $name as xs:QName,
- $target as node(),
- $content as node()*) as node()* external;
-
-
-(:~
- : This function does the same as the insert-before function except it immediately
- : applies the resulting pending updates and returns the items that have been
- : inserted.
- :
- : @param $name The name of the collection to which the items should be added.
- : @param $target The item in the collection before which the $content
- : sequence should be inserted.
- : @param $content The sequences of items whose copies should be added to the collection.
- :
- : @return The result of the function is the sequence of items that have been
- : inserted into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- :
+ :)
+declare %an:sequential function dml:apply-insert-last( $name as xs:QName,
+ $content as item()* )
+ as item()* external;
+
+(:~
+ : This function does the same thing as <code>insert-before()</code> except it
+ : immediately applies the resulting pending updates and returns the items that
+ : have been inserted.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $target The item in the collection before which <code>$content</code>
+ : will be inserted.
+ : @param $content The sequence of items whose copies to insert.
+ : @return The sequence of items that have been inserted.
+ : @error zerr:ZDDY0003 if the collection is not available.
: @see dml:insert-before
- :
- :)
-declare %an:sequential function
-dml:apply-insert-before(
- $name as xs:QName,
- $target as item(),
- $content as item()*) as item()* external;
-
-
-(:~
- : This function does the same as the insert-nodes-after function except
- : it immediately applies the resulting pending updates and returns the
- : nodes that have been inserted.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $target The node in the collection after which the $content
- : sequence should be inserted.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is the sequence of nodes that have been
- : inserted into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- :
- : @see dml:insert-nodes-after
- :
- : @deprecated please use the cdml:apply-insert-after#3 function
- :
- :)
-declare %an:sequential function
-dml:apply-insert-nodes-after(
- $name as xs:QName,
- $pos as node(),
- $content as node()*) as node()* external;
-
-
-(:~
- : This function does the same as the insert-after function except it immediately
- : applies the resulting pending updates and returns the items that have been
- : inserted.
- :
- : @param $name The name of the collection to which the items should be added.
- : @param $target The item in the collection after which the $content
- : sequence should be inserted.
- : @param $content The sequences of items whose copies should be added to the collection.
- :
- : @return The result of the function is the sequence of items that have been
- : inserted into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- :
+ :)
+declare %an:sequential function dml:apply-insert-before( $name as xs:QName,
+ $target as item(),
+ $content as item()* )
+ as item()* external;
+
+(:~
+ : This function does the same thing as <code>insert-after()</code> except it
+ : immediately applies the resulting pending updates and returns the items that
+ : have been inserted.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $target The item in the collection after which <code>$content</code>
+ : will be inserted.
+ : @param $content The sequence of items whose copies to insert.
+ : @return The sequence of items that have been inserted.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0011 if <code>$target</code> is not in the collection.
: @see dml:insert-after
- :
- :)
-declare %an:sequential function
-dml:apply-insert-after(
- $name as xs:QName,
- $pos as item(),
- $content as item()*) as item()* external;
-
-
-(:~
- : The delete-nodes function is an updating function that deletes zero of more
- : nodes from a collection.
- :
- : @param $target the nodes in the collection that should be deleted.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the nodes from their collections.
- :
- : @error zerr:ZDDY0011 if any nodes in the $target sequence is not a member of
- : a collection or not all nodes of the $target sequence belong to the same
- : collection.
- :
- : @deprecated please use the cdml:delete#1 function
- :
- :)
-declare updating function
-dml:delete-nodes($target as node()*) external;
-
-
-(:~
- : The delete function is an updating function that deletes zero of more items
- : (nodes and/or json items) from a collection.
- :
- : @param $target the items in the collection that should be deleted.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the items from their collections.
- :
- : @error zerr:ZDDY0011 if any item in the $target sequence is not a member of
- : a collection or not all items of the $target sequence belong to the
- : same collection.
- :
- :)
-declare updating function
-dml:delete($target as item()*) external;
-
-
-(:~
- : The delete-node-first function is an updating function that deletes the
- : first node from a collection.
- :
- : @param $name The name of the collection from which the first node should be deleted.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the first node from the collection.
- :
- : @error zerr:ZDDY0011 if the collection doesn't contain any node.
- :
- : @deprecated please use the cdml:delete-first#1 function
- :
- :)
-declare updating function
-dml:delete-node-first($name as xs:QName) external;
-
-
-(:~
- : The delete-first function is an updating function that deletes the first item
- : from a collection.
- :
- : @param $name The name of the collection from which the first item should be deleted.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the first item from the collection.
- :
- : @error zerr:ZDDY0011 if the collection doesn't contain any item.
- :
- :)
-declare updating function
-dml:delete-first($name as xs:QName) external;
-
-
-(:~
- : The delete-nodes-first function is an updating function that deletes the
- : first n nodes from a collection.
- :
- : @param $name The name of the collection from which the first node should be deleted.
- : @param $number The number of nodes that should be removed from the beginning of
- : the collection.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the nodes from the collection.
- :
- : @error zerr:ZDDY0011 if the collection doesn't contain the given number of nodes.
- :
- : @deprecated please use the cdml:delete-first#2 function
- :
- :)
-declare updating function
-dml:delete-nodes-first($name as xs:QName, $number as xs:integer) external;
-
-
-(:~
- : The delete-first function is an updating function that deletes the first N
- : items from a collection.
- :
- : @param $name The name of the collection from which the first N items should be deleted.
- : @param $number The number N of items that should be removed from the beginning of
- : the collection.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the items from the collection.
- :
- : @error zerr:ZDDY0011 if the collection doesn't contain the given number of items.
- :
- :)
-declare updating function
-dml:delete-first($name as xs:QName, $number as xs:integer) external;
-
-
-(:~
- : The delete-node-last function is an updating function that deletes the
- : last node from a collection.
- :
- : @param $name The name of the collection from which the last node should be deleted.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the last node from the collection.
- :
- : @error zerr:ZDDY0003 If available collections does not provide a mapping
- : for the expanded QName $name.
- : @error zerr:ZDDY0011 if the collection doesn't contain any node.
- :
- : @deprecated please use the cdml:delete-last#1 function
- :
- :)
-declare updating function
-dml:delete-node-last($name as xs:QName) external;
-
-
-(:~
- : The delete-last function is an updating function that deletes the last item
- : from a collection.
- :
- : @param $name The name of the collection from which the last item should be deleted.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the last item from the collection.
- :
- : @error zerr:ZDDY0003 If available collections does not provide a mapping
- : for the expanded QName $name.
- : @error zerr:ZDDY0011 if the collection doesn't contain any item.
- :
- :)
-declare updating function
-dml:delete-last($name as xs:QName) external;
-
-
-(:~
- : The delete-nodes-last function is an updating function that deletes the
- : last n nodes from an ordered collection.
- :
- : @param $name The name of the collection from which the first node should be deleted.
- : @param $number The number of nodes to delete.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the last n nodes.
- :
- : @error zerr:ZDDY0003 If available collections does not provide a mapping
- : for the expanded QName $name.
- : @error zerr:ZDDY0011 if the collection doesn't contain the given number of nodes.
- :
- : @deprecated please use the cdml:delete-last#2 function
- :
- :)
-declare updating function
-dml:delete-nodes-last($name as xs:QName, $number as xs:integer) external;
-
-
-(:~
- : The delete-last function is an updating function that deletes the last N
- : items from an ordered collection.
- :
- : @param $name The name of the collection from which the lsat N items should be deleted.
- : @param $number The number N of items to delete.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the last N items.
- :
- : @error zerr:ZDDY0003 If available collections does not provide a mapping
- : for the expanded QName $name.
- : @error zerr:ZDDY0011 if the collection doesn't contain the given number of items.
- :
- :)
-declare updating function
-dml:delete-last($name as xs:QName, $number as xs:integer) external;
-
-
-(:~
- : The edit function is an updating function that edits the first supplied
- : item so as to make it look exactly like a copy of the second supplied item,
- : while retaining its original identity.
- :
- : @param $target The target item ,that must be edited.
- : @param $content The content item, that serves as an edit goal.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, performs the replacement.
- :
- : @error zerr:ZDDY0003 if the collection to which $target belongs is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection to which $target
- : belongs is append-only, const, or queue.
- : @error zerr:ZDDY0017 if the $target item is not a member of a collection.
+ :)
+declare %an:sequential function dml:apply-insert-after( $name as xs:QName,
+ $target as item(),
+ $content as item()* )
+ as item()* external;
+
+(:~
+ : Gets the sequence of nodes or JSON items from a collection.
+ :
+ : @param $name The name of the collection.
+ : @return The sequence contained in the given collection.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ :)
+declare function dml:collection( $name as xs:QName )
+ as item()* external;
+
+(:~
+ : Gets the sequence of items (nodes or JSON items) from a collection.
+ :
+ : @param $name The name of the collection.
+ : @param $skip The number of collection items to skip.
+ : @return The sub-sequence contained in the given collection.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ :)
+declare function dml:collection( $name as xs:QName,
+ $skip as xs:integer )
+ as item()* external;
+
+(:~
+ : Gets the sequence of items (nodes or JSON items) from a collection.
+ : The parameters <code>$start</code> and <code>$skip</code> can be used to
+ : skip over items at the beginning of the collection.
+ : If both are given, both are applied: first, <code>$start</code> to skip to
+ : that item and then <code>$skip</code> to skip that additional number of
+ : items.
+ :
+ : @param $name The name of the collection.
+ : @param $start A reference to the first item to return.
+ : @param $skip The additional number of items to skip.
+ : @return The sub-sequence from the given collection.
+ : @error zerr:ZAPI0028 If the given URI is not a valid node position computed
+ : by the <code>np:node-position</code> function.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZSTR0066 If <code>$start</code> does not reference a node from
+ : the collection <code>$name</code>.
+ :)
+declare function dml:collection( $name as xs:QName,
+ $start as xs:anyURI,
+ $skip as xs:integer )
+ as item()* external;
+
+(:~
+ : Gets the name of the collection the given item (node or JSON item) belongs
+ : to.
+ :
+ : @param $item The item for which to get the name of the collection.
+ : @return The name of the collection to which <code>$item</code> belongs.
+ : @error zerr:ZDDY0011 if <code>$item</code> does not belong to a collection.
+ :)
+declare function dml:collection-name( $item as item() )
+ as xs:QName external;
+
+(:~
+ : Deletes items (nodes or JSON items) from a collection.
+ :
+ : @param $items The items in the collection to delete.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : deletes the items from their collections.
+ : @error zerr:ZDDY0011 if any item in <code>$items</code> is not a member of a
+ : collection or not all items belong to the same collection.
+ :)
+declare updating function dml:delete( $items as item()* )
+ external;
+
+(:~
+ : Deletes the first item from a collection.
+ :
+ : @param $name The name of the collection to delete from.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : deletes the first item from the collection.
+ : @error zerr:ZDDY0011 if the collection is empty.
+ :)
+declare updating function dml:delete-first( $name as xs:QName )
+ external;
+
+(:~
+ : Deletes the first <i>N</i> items from a collection.
+ :
+ : @param $name The name of the collection to delete from.
+ : @param $number The number of items to delete.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : deletes the items from the collection.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0011 if the collection contains less than
+ : <code>$number</code> items.
+ :)
+declare updating function dml:delete-first( $name as xs:QName,
+ $number as xs:integer )
+ external;
+
+(:~
+ : Deletes the last item from a collection.
+ :
+ : @param $name The name of the collection to delete from.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : deletes the last item from the collection.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0011 if the collection is empty.
+ :)
+declare updating function dml:delete-last( $name as xs:QName )
+ external;
+
+(:~
+ : Deletes the last <i>N</i> items from a collection.
+ :
+ : @param $name The name of the collection to delete from.
+ : @param $number The number of items to delete.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : deletes the last N items.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0011 if the collection contains less than
+ : <code>$number</code> items.
+ :)
+declare updating function dml:delete-last( $name as xs:QName,
+ $number as xs:integer )
+ external;
+
+(:~
+ : Edits the first supplied item so as to make it look exactly like a copy of
+ : the second supplied item while retaining its original identity.
+ :
+ : @param $target The target item to be edited.
+ : @param $content The item that serves as an edit goal.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : performs the edit.
+ : @error zerr:ZDDY0003 if the collection to which <code>$target</code> belongs
+ : is not available.
+ : @error zerr:ZDDY0006 if the collection to which <code>$target</code> belongs
+ : is append-only, const, or queue.
+ : @error zerr:ZDDY0017 if <code>$target</code> is not a member of a collection.
: @error zerr:ZDDY0037 if the collection is append-only.
: @error zerr:ZDDY0038 if the collection is a queue.
- : @error zerr:ZDDY0039 if the $target item is not a root.
- : @error zerr:ZDDY0040 if the target cannot be updated to match the content (for
- : example because the target is a node and the content is an object).
- :
- :)
-declare updating function
-dml:edit($target as item(), $content as item()) external;
-
-
-(:~
- : The truncate function is an updating function that deletes the
- : entire contents of collection.
- :
- : @param $name The name of the collection whose content to delete
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the nodes.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- :)
-declare updating function dml:truncate($name as xs:QName) external;
-
-
-(:~
- : The collection function returns the sequence of nodes and/or json items
- : that belong to the collection identified by the given name.
- :
- : @param $name The name of the collection.
- :
- : @return The sequence contained in the given collection.
- :
- : @error zerr:ZDDY0003 If available collections does not provide a mapping
- : for the expanded QName $name.
- :
- :)
-declare function dml:collection($name as xs:QName) as item()* external;
-
-
-(:~
- : The collection function returns the sequence of nodes and/or json items
- : that belong to the collection identified by the given name.
- :
- : @param $name The name of the collection.
- : @param $skip The number of collection items to skip.
- :
- : @return The sequence contained in the given collection.
- :
- : @error zerr:ZDDY0003 If available collections does not provide a mapping
- : for the expanded QName $name.
- :
- :)
-declare function
-dml:collection($name as xs:QName, $skip as xs:integer) as item()* external;
-
-
-(:~
- : The collection function returns the sequence of nodes and/or json items
- : that belong to the collection identified by the given name.
- : The parameters $start and $skip can be used to skip over some items at
- : the beginning of the collection. If both are given, both are applied:
- : first $start to skip to the referenced item and then $skip to skip an
- : additional number of items.
- :
- : @param $name The name of the collection.
- : @param $start A reference to the first item to return. All items before
- are skipped.
- : @param $skip The number of collection items to skip.
- :
- : @return The sequence contained in the given collection.
- :
- : @error zerr:ZAPI0028 If the given URI is not a valid node
- : position computed by the <tt>np:node-position</tt> function.
- : @error zerr:ZDDY0003 If available collections does not provide a mapping
- : for the expanded QName $name.
- : @error zerr:ZSTR0066 If the passed reference $start does not reference
- : a node from the collection identified by $name.
- :
- :)
-declare function
-dml:collection($name as xs:QName,
- $start as xs:anyURI,
- $skip as xs:integer) as item()* external;
-
-
-(:~
- : The collection-name function returns the name of the collection the given
- : item (node or json item) belongs to.
- :
- : @param $item The item for which to get the name of the collection
- : @return The result of this function is a QName which identifies the collection
- : to which the given item belongs to.
- :
- : @error zerr:ZDDY0011 if the given item does not belong to a collection.
- :
- :)
-declare function dml:collection-name($item as item()) as xs:QName external;
-
-
-(:~
- : The index-of function returns the position of the given item (node or
- : json item) within its containing the collection.
- :
- : @param $item The item to retrieve the index from.
- :
- : @return Returns the position as xs:integer of the given item in the collection.
- :
- : @error zerr:ZDDY0011 if the item is not contained in any collection.
- :
- :)
-declare function dml:index-of($item as item()) as xs:integer external;
+ : @error zerr:ZDDY0039 if <code>$target</code> is not a root.
+ : @error zerr:ZDDY0040 if <code>$target</code> cannot be updated to match the
+ : content (for example, because the target is a node and the content is an
+ : object).
+ :)
+declare updating function dml:edit( $target as item(),
+ $content as item() )
+ external;
+
+(:~
+ : Gets the position of the given item (node or JSON item) within its
+ : collection.
+ :
+ : @param $item The item to get the index of.
+ : @return The position of <code>$item</code> in its collection.
+ : @error zerr:ZDDY0011 if <code>$item</code> does not belong to a collection.
+ :)
+declare function dml:index-of( $item as item() )
+ as xs:integer external;
+
+(:~
+ : Deletes the entire contents of a collection.
+ :
+ : @param $name The name of the collection whose contents to delete.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : deletes the contents.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ :)
+declare updating function dml:truncate( $name as xs:QName )
+ external;
+
+(:===========================================================================:)
+
+(: vim:set et sw=2 ts=2: :)
=== modified file 'modules/store/dynamic/collections/w3c/ddl.xq'
--- modules/com/zorba-xquery/www/modules/store/dynamic/collections/w3c/ddl.xq 2013-09-26 23:15:11 +0000
+++ modules/store/dynamic/collections/w3c/ddl.xq 2013-10-09 23:30:21 +0000
@@ -1,7 +1,7 @@
xquery version "3.0";
(:
- : Copyright 2006-2009 The FLWOR Foundation.
+ : Copyright 2006-2013 The FLWOR Foundation.
:
: Licensed under the Apache License, Version 2.0 (the "License");
: you may not use this file except in compliance with the License.
@@ -17,146 +17,140 @@
:)
(:~
- : This modules defines a set of functions for managing persistent, ordered, and
- : updatable collections.
- :
- : <p>Such collections are identified by a URI as defined in the XQuery specification.
- : However, please note that we do not advice users to use collections identified by URIs.
- : Instead, we refer to the <a href="../zorba/data_lifecycle.html">data lifecycle
- : documentation</a>. It gives an overview over serveral ways to work with collections,
- : documents, and other data-structures.</p>
+ : This modules defines a set of functions for managing persistent, ordered,
+ : and updatable collections.
+ : <p>
+ : Such collections are identified by a URI as defined in the XQuery
+ : specification.
+ : However, please note that we do not advise users to use collections
+ : identified by URIs.
+ : Instead, we refer to the
+ : <a href="../zorba/data_lifecycle.html">data lifecycle documentation</a>.
+ : It gives an overview of several ways to work with collections, documents,
+ : and other data-structures.
:
: @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>
- : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/dml
- : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl
- : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/dml
+ : @see http://zorba.io/modules/store/dynamic/collections/w3c/dml
+ : @see http://zorba.io/modules/store/dynamic/collections/ddl
+ : @see http://zorba.io/modules/store/dynamic/collections/dml
: @see http://zorba.io/errors
:
: @author Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis
- :
: @project Zorba/Data Store/Collections/W3C Data Definition
:)
-module namespace ddl = "http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl";;
+module namespace ddl = "http://zorba.io/modules/store/dynamic/collections/w3c/ddl";;
-import module namespace qddl = "http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl";;
+import module namespace qddl = "http://zorba.io/modules/store/dynamic/collections/ddl";;
declare namespace zerr = "http://zorba.io/errors";;
declare namespace ver = "http://zorba.io/options/versioning";;
declare option ver:module-version "2.0";
+(:===========================================================================:)
+
(:~
- : Function used for internal purposes only. It converts a URI
- : given as string into a reserved QName. This QName is used
- : in the module to be able to store collections identified by
- : URIs using dynamic collections which are identified by QNames.
- :
- : @param $name URI to convert to a reserved QName.
- :
+ : THIS FUNCTION IS FOR INTERNAL USE ONLY.
+ : Converts a URI given as a string into a reserved QName.
+ : This QName is used in the module to be able to store collections identified
+ : by URIs using dynamic collections that are identified by QNames.
+ :
+ : @param $uri URI to convert to a reserved QName.
: @return The reserved QName for the given URI.
- :
- :)
-declare function ddl:to-qname($name as xs:string) as xs:QName
-{
- fn:QName($name, "zorba-internal-name-for-w3c-collections")
-};
-
-(:~
- : Function used for internal purposes only. It returns the namespace
- : component of the given QName.
- :
- : @param $name QName whose namespace component should be returned
- :
- : @return the namespace componentn of the given QName
- :)
-declare function ddl:from-qname($name as xs:QName) as xs:string
-{
- fn:namespace-uri-from-QName($name)
-};
-
-(:~
- : The function returns true if a collection with the given URI is available
- : (i.e. has been created).
- :
- : @param $name The URI of the collection that is being checked.
- :
+ :)
+declare function ddl:to-qname( $uri as xs:string )
+ as xs:QName
+{
+ fn:QName( $uri, "zorba-internal-name-for-w3c-collections" )
+};
+
+(:~
+ : THIS FUNCTION IS FOR INTERNAL USE ONLY.
+ : Gets the namespace component of the given QName.
+ :
+ : @param $name The QName whose namespace component should be returned.
+ : @return The namespace component of <code>$name</code>
+ :)
+declare function ddl:from-qname( $name as xs:QName )
+ as xs:string
+{
+ fn:namespace-uri-from-QName( $name )
+};
+
+(:~
+ : Checks whether a collection with the given URI exists.
+ :
+ : @param $uri The URI of the collection to check.
: @return true if the collection is available and false otherwise.
- :
:)
-declare function ddl:is-available-collection($coll-name as xs:string) as xs:boolean
+declare function ddl:is-available-collection( $uri as xs:string )
+ as xs:boolean
{
- qddl:is-available-collection(ddl:to-qname($coll-name))
+ qddl:is-available-collection( ddl:to-qname( $uri ) )
};
(:~
: The function returns a sequence of URIs of the collections that are
: available. The sequence will be empty if there are no collections.
:
- : @return A sequence of URIs, one for each available collection, or an emtpy sequence.
- :
+ : @return A sequence of URIs, one for each available collection, or an emtpy
+ : sequence.
:)
-declare function ddl:available-collections() as xs:string*
+declare function ddl:available-collections()
+ as xs:string*
{
for $c in qddl:available-collections()
- where fn:local-name-from-QName($c) eq "zorba-internal-name-for-w3c-collections"
- return ddl:from-qname($c)
-};
-
-(:~
- : The create function is an updating function which creates
- : the collection with the given URI and the empty-sequence as contents.
- :
- : @param $name The URI of the collection to create.
- :
- : @return The result of the function is an empty XDM instance and a
- : pending update list which, once applied, creates a collection
- : with the given name.
- :
- : @error zerr:ZDDY0002 if a collection with the given URI already exists.
- :
- :)
-declare updating function ddl:create($coll-name as xs:string)
-{
- qddl:create(ddl:to-qname($coll-name))
-};
-
-(:~
- : The create function is an updating function which creates
- : the collection with the given URI. Moreover, it adds copies
- : of the sequence $content to the new collection.
- :
- : @param $name The URI of the collection to create.
- : @param $content The sequences of nodes that should be added to the new collection.
- :
- : @return The result of the function is an empty XDM instance and a
- : pending update list which, once applied, creates a collection
- : with the given name and inserts the given nodes into it.
- :
- : @error zerr:ZDDY0002 if a collection with the given URI already exists.
- :
- :)
-declare updating function ddl:create(
- $coll-name as xs:string,
- $content as node()*)
-{
- qddl:create(ddl:to-qname($coll-name), $content)
-};
-
-(:~
- : The delete function is an updating function that removes
- : the collection with the given URI.
- :
- : @param $name The URI of the collection to delete.
- :
- : @return The result of the function is an empty XDM instance and a pending
- : update list which, once applied, deletes the collection with the given
- : name.
- :
- : @error zerr:ZDDY0003 if the URI $name is not equal to any of the available collections.
- : @error zerr:ZDDY0015 if any of the in-scope variables references a node that
- : belongs to the collection with the given URI.
- :
- :)
-declare updating function ddl:delete($coll-name as xs:string)
-{
- qddl:delete(ddl:to-qname($coll-name))
-};
+ where fn:local-name-from-QName( $c )
+ eq "zorba-internal-name-for-w3c-collections"
+ return ddl:from-qname( $c )
+};
+
+(:~
+ : Creates the collection with the given URI.
+ :
+ : @param $uri The URI of the collection to create.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : creates a collection with the given URI.
+ : @error zerr:ZDDY0002 if a collection identified by <code>$uri</code> already
+ : exists.
+ :)
+declare updating function ddl:create( $uri as xs:string )
+{
+ qddl:create( ddl:to-qname( $uri ) )
+};
+
+(:~
+ : Creates the collection with the given URI and adds copies of the given
+ : sequence to the new collection.
+ :
+ : @param $uri The URI of the collection to create.
+ : @param $content The sequence of nodes to add to the new collection.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : creates a collection identified by <code>$uri</code> and inserts
+ : <code>$content</code> into it.
+ : @error zerr:ZDDY0002 if a collection identified by <code>$uri</code> already
+ : exists.
+ :)
+declare updating function ddl:create( $uri as xs:string,
+ $content as node()* )
+{
+ qddl:create( ddl:to-qname( $uri ), $content )
+};
+
+(:~
+ : Deletes the collection with the given URI.
+ :
+ : @param $uri The URI of the collection to delete.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : deletes the collection identified by <code>$uri</code>.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0015 if any of the in-scope variables reference a node that
+ : belongs to the collection identified by <code>$uri</code>.
+ :)
+declare updating function ddl:delete( $uri as xs:string )
+{
+ qddl:delete( ddl:to-qname( $uri ) )
+};
+
+(:===========================================================================:)
+
+(: vim:set et sw=2 ts=2: :)
=== modified file 'modules/store/dynamic/collections/w3c/dml.xq'
--- modules/com/zorba-xquery/www/modules/store/dynamic/collections/w3c/dml.xq 2013-09-26 23:15:11 +0000
+++ modules/store/dynamic/collections/w3c/dml.xq 2013-10-09 23:30:21 +0000
@@ -1,7 +1,7 @@
xquery version "3.0";
(:
- : Copyright 2006-2009 The FLWOR Foundation.
+ : Copyright 2006-2013 The FLWOR Foundation.
:
: Licensed under the Apache License, Version 2.0 (the "License");
: you may not use this file except in compliance with the License.
@@ -17,30 +17,32 @@
:)
(:~
- : This modules provides a set of functions to modify a collection and retrieve the nodes
- : contained in a particular collection.
- :
- : <p>Such collections are identified by a URI as defined in the XQuery specification.
- : However, please note that we do not advice users to use collections identified by URIs.
- : Instead, we refer to the <a href="../zorba/data_lifecycle.html">data lifecycle
- : documentation</a>. It gives an overview over serveral ways to work with collections,
- : documents, and other data-structures.</p>
+ : This modules provides a set of functions to modify a collection and retrieve
+ : the nodes contained in a particular collection.
+ : <p>
+ : Such collections are identified by a URI as defined in the XQuery
+ : specification.
+ : However, please note that we do not advice users to use collections
+ : identified by URIs.
+ : Instead, we refer to the
+ : <a href="../zorba/data_lifecycle.html">data lifecycle documentation</a>.
+ : It gives an overview of several ways to work with collections, documents,
+ : and other data-structures.
:
: @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>
- : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl
- : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl
- : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/dml
+ : @see http://zorba.io/modules/store/dynamic/collections/w3c/ddl
+ : @see http://zorba.io/modules/store/dynamic/collections/ddl
+ : @see http://zorba.io/modules/store/dynamic/collections/dml
: @see http://zorba.io/errors
:
: @author Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis
- :
: @project Zorba/Data Store/Collections/W3C Data Manipulation
:)
-module namespace dml = "http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/dml";;
-
-import module namespace ddl = "http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl";;
-
-import module namespace qdml = "http://www.zorba-xquery.com/modules/store/dynamic/collections/dml";;
+module namespace dml = "http://zorba.io/modules/store/dynamic/collections/w3c/dml";;
+
+import module namespace ddl = "http://zorba.io/modules/store/dynamic/collections/w3c/ddl";;
+
+import module namespace qdml = "http://zorba.io/modules/store/dynamic/collections/dml";;
declare namespace zerr = "http://zorba.io/errors";;
declare namespace an = "http://zorba.io/annotations";;
@@ -48,332 +50,274 @@
declare namespace ver = "http://zorba.io/options/versioning";;
declare option ver:module-version "2.0";
-(:~
- : The insert-nodes-first function is an updating function that inserts copies of the
- : given nodes at the beginning of the collection.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, inserts the nodes into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- :
- :)
-declare updating function dml:insert-nodes-first(
- $name as xs:string,
- $content as node()*)
-{
- qdml:insert-nodes-first(ddl:to-qname($name), $content)
-};
-
-(:~
- : The insert-nodes-last function is an updating function that inserts copies of the
- : given nodes at the end of the collection.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, inserts the nodes into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- :
- :)
-declare updating function dml:insert-nodes-last(
- $name as xs:string,
- $content as node()*)
-{
- qdml:insert-nodes-last(ddl:to-qname($name), $content)
-};
-
-(:~
- : The insert-nodes-before function is an updating function that inserts
- : copies of the given nodes into a collection at the position directly preceding the
- : given target node.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $target The node in the collection before which the $content
- : sequence should be inserted.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, inserts the nodes into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0011 if the target node is not contained in the collection.
- :
- :)
-declare updating function dml:insert-nodes-before($name as xs:string,
- $target as node(),
- $content as node()*)
-{
- qdml:insert-nodes-before(ddl:to-qname($name), $target, $content)
-};
-
-(:~
- : The insert-nodes-after function is an updating function that inserts
- : copies of the given nodes into a collection at the position directlry following the
- : given target node.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $target The node in the collection after which the $content
- : sequence should be inserted.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, inserts the nodes into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0011 if the target node is not contained in the collection.
- :
- :)
-declare updating function dml:insert-nodes-after($name as xs:string,
+(:===========================================================================:)
+
+(:~
+ : Inserts copies of the given nodes at the beginning of the collection.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $content The sequence of nodes whose copies will be inserted.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : inserts <code>$content</code> into the collection.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ :)
+declare updating function dml:insert-nodes-first( $name as xs:string,
+ $content as node()* )
+{
+ qdml:insert-first( ddl:to-qname( $name ), $content )
+};
+
+(:~
+ : Inserts copies of the given nodes at the end of the collection.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $content The sequence of nodes whose copies will be inserted.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : inserts the nodes into the collection.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ :)
+declare updating function dml:insert-nodes-last( $name as xs:string,
+ $content as node()* )
+{
+ qdml:insert-last( ddl:to-qname( $name ), $content )
+};
+
+(:~
+ : Inserts copies of the given nodes into a collection at the position directly
+ : preceding the given target node.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $target The node in the collection before which <code>$content</code>
+ : will be inserted.
+ : @param $content The sequences of nodes whose copies will be inserted.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : inserts the nodes into the collection.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0011 if <code>$target</code> node is not contained in the
+ : collection.
+ :)
+declare updating function dml:insert-nodes-before( $name as xs:string,
+ $target as node(),
+ $content as node()* )
+{
+ qdml:insert-before( ddl:to-qname( $name ), $target, $content )
+};
+
+(:~
+ : Inserts copies of the given nodes into a collection at the position
+ : directly following the given target node.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $target The node in the collection after which <code>$content</code>
+ : will be inserted.
+ : @param $content The sequence of nodes whose copies will be inserted.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : inserts the nodes into the collection.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0011 if <code>$target</code> node is not contained in the
+ : collection.
+ :)
+declare updating function dml:insert-nodes-after( $name as xs:string,
$pos as node(),
- $content as node()*)
+ $content as node()* )
{
- qdml:insert-nodes-after(ddl:to-qname($name), $pos, $content)
+ qdml:insert-after( ddl:to-qname( $name ), $pos, $content )
};
-
(:~
- : This function does the same as the insert-nodes function except
- : it immediately applies the resulting pending updates and returns the
+ : This function does the same as the <code>insert-nodes()</code> function
+ : except it immediately applies the resulting pending updates and returns the
: nodes that have been inserted.
:
- : @param $name The name of the collection to which the nodes should be added.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is the sequence of nodes that have been
- : inserted into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- :
+ : @param $name The name of the collection to insert into.
+ : @param $content The sequence of nodes whose copies will be inserted.
+ : @return The sequence of nodes that have been inserted.
+ : @error zerr:ZDDY0003 if the collection is not available.
: @see dml:insert-nodes-first
- :
:)
-declare %an:sequential function dml:apply-insert-nodes-first(
- $name as xs:string,
- $content as node()*) as node()*
+declare %an:sequential function
+dml:apply-insert-nodes-first( $name as xs:string, $content as node()* )
+ as node()*
{
- qdml:apply-insert-nodes-first(ddl:to-qname($name), $content)
+ qdml:apply-insert-first( ddl:to-qname( $name ), $content )
};
(:~
- : This function does the same as the insert-nodes-last function except
- : it immediately applies the resulting pending updates and returns the
+ : This function does the same as the <code>insert-nodes-last()</code> function
+ : except it immediately applies the resulting pending updates and returns the
: nodes that have been inserted.
:
- : @param $name The name of the collection to which the nodes should be added.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is the sequence of nodes that have been
- : inserted into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- :
+ : @param $name The name of the collection to insert into.
+ : @param $content The sequence of nodes whose copies will be inserted.
+ : @return The sequence of nodes that have been inserted.
+ : @error zerr:ZDDY0003 if the collection is not available.
: @see dml:insert-nodes-last
- :
:)
-declare %an:sequential function dml:apply-insert-nodes-last(
- $name as xs:string,
- $content as node()*) as node()*
+declare %an:sequential function
+dml:apply-insert-nodes-last( $name as xs:string, $content as node()* )
+ as node()*
{
- qdml:apply-insert-nodes-last(ddl:to-qname($name), $content)
+ qdml:apply-insert-last( ddl:to-qname( $name ), $content )
};
(:~
- : This function does the same as the insert-nodes-before function except
- : it immediately applies the resulting pending updates and returns the
- : nodes that have been inserted.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $target The node in the collection before which the $content
- : sequence should be inserted.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is the sequence of nodes that have been
- : inserted into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- :
+ : This function does the same as the <code>insert-nodes-before()</code>
+ : function except it immediately applies the resulting pending updates and
+ : returns the nodes that have been inserted.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $target The node in the collection before which <code>$content</code>
+ : will be inserted.
+ : @param $content The sequence of nodes whose copies will be inserted.
+ : @return The sequence of nodes that have been inserted.
+ : @error zerr:ZDDY0003 if the collection is not available.
: @see dml:insert-nodes-before
- :
:)
-declare %an:sequential function dml:apply-insert-nodes-before(
- $name as xs:string,
- $target as node(),
- $content as node()*) as node()*
+declare %an:sequential function
+dml:apply-insert-nodes-before( $name as xs:string,
+ $target as node(),
+ $content as node()* )
+ as node()*
{
- qdml:apply-insert-nodes-before(ddl:to-qname($name), $target, $content)
+ qdml:apply-insert-before( ddl:to-qname( $name ), $target, $content )
};
(:~
- : This function does the same as the insert-nodes-after function except
- : it immediately applies the resulting pending updates and returns the
- : nodes that have been inserted.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $target The node in the collection after which the $content
- : sequence should be inserted.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is the sequence of nodes that have been
- : inserted into the collection.
- :
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- :
+ : This function does the same as the <code>insert-nodes-after()</code>
+ : function except it immediately applies the resulting pending updates and
+ : returns the nodes that have been inserted.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $target The node in the collection after which <code>$content</code>
+ : will be inserted.
+ : @param $content The sequence of nodes whose copies will be inserted.
+ : @return The sequence of nodes that have been inserted.
+ : @error zerr:ZDDY0003 if the collection is not available.
: @see dml:insert-nodes-after
- :
- :)
-declare %an:sequential function dml:apply-insert-nodes-after(
- $name as xs:string,
- $pos as node(),
- $content as node()*) as node()*
-{
- qdml:apply-insert-nodes-after(ddl:to-qname($name), $pos, $content)
-};
-
-(:~
- : The delete-nodes function is an updating function that deletes zero of more
- : nodes from a collection.
- :
- : @param $target the nodes in the collection that should be deleted.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the nodes from their collections.
- :
- : @error zerr:ZDDY0011 if any nodes in the $target sequence is not a member of a collection
- : or not all nodes of the $target sequence belong to the same collection.
- : the collection identified by the $name parameter.
- :
- :)
-declare updating function dml:delete-nodes($target as node()*)
-{
- qdml:delete-nodes($target)
-};
-
-(:~
- : The delete-node-first function is an updating function that deletes the
- : first node from a collection.
- :
- : @param $name The name of the collection from which the first node should be deleted.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the first node from the collection.
- :
- : @error zerr:ZDDY0011 if the collection doesn't contain any node.
- :
- :)
-declare updating function dml:delete-node-first($name as xs:string)
-{
- qdml:delete-node-first(ddl:to-qname($name))
-};
-
-(:~
- : The delete-nodes-first function is an updating function that deletes the
- : first n nodes from a collection.
- :
- : @param $name The name of the collection from which the first node should be deleted.
- : @param $number The number of nodes that should be removed from the beginning of
- : the collection.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the nodes from the collection.
- :
- : @error zerr:ZDDY0011 if the collection doesn't contain the given number of nodes.
- :)
-declare updating function dml:delete-nodes-first(
- $name as xs:string,
- $number as xs:integer)
-{
- qdml:delete-nodes-first(ddl:to-qname($name), $number)
-};
-
-(:~
- : The delete-node-last function is an updating function that deletes the
- : last node from a collection.
- :
- : @param $name The name of the collection from which the first node should be deleted.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the last node from the collection.
- :
- : @error zerr:ZDDY0009 If available collections does not provide a mapping
- : for the URI $name.
- : @error zerr:ZDDY0011 if the collection doesn't contain any node.
- :)
-declare updating function dml:delete-node-last($name as xs:string)
-{
- qdml:delete-node-last(ddl:to-qname($name))
-};
-
-(:~
- : The delete-nodes-last function is an updating function that deletes the
- : last n nodes from an ordered collection.
- :
- : @param $name The name of the collection from which the first node should be deleted.
- : @param $number The number of nodes to delete.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the last n nodes.
- :
- : @error zerr:ZDDY0009 If available collections does not provide a mapping
- : for the URI $name.
- : @error zerr:ZDDY0011 if the collection doesn't contain the given number of nodes.
- :)
-declare updating function dml:delete-nodes-last(
- $name as xs:string,
- $number as xs:integer)
-{
- qdml:delete-nodes-last(ddl:to-qname($name), $number)
-};
-
-(:~
- : The index-of function return the index of the given node in the collection.
- :
- : @param node The node to retrieve the index from.
- :
- : @return Returns the position as xs:integer of the given node in the collection.
- :
- : @error zerr:ZDDY0011 if node is not contained in any collection.
- :
- :)
-declare function dml:index-of($node as node()) as xs:integer
-{
- qdml:index-of($node)
-};
-
-(:~
- : The collection function returns the sequence of nodes of the collection
- : identified by the given name.
+ :)
+declare %an:sequential function
+dml:apply-insert-nodes-after( $name as xs:string,
+ $pos as node(),
+ $content as node()* )
+ as node()*
+{
+ qdml:apply-insert-after( ddl:to-qname( $name ), $pos, $content )
+};
+
+(:~
+ : Gets the sequence of nodes of the collection identified by the given name.
:
: @param $name The name of the collection.
- :
: @return The sequence contained in the given collection.
- :
- : @error zerr:ZDDY0009 If available collections does not provide a mapping
- : for the URI $name.
- :
- :)
-declare function dml:collection($name as xs:string) as node()*
-{
- qdml:collection(ddl:to-qname($name))
-};
-
-(:~
- : This function returns the name of the collection the given node belongs
- : to.
- :
- : @param $node The node for which to get the name of the collection
- : @return The result of this function is a URI which identifies the collection
- : to which the given node belongs to.
- :
- : @error zerr:ZDDY0011 if the given node does not belong to a collection.
- :
- :)
-declare function dml:collection-name($node as node()) as xs:string
-{
- ddl:from-qname(qdml:collection-name($node))
-};
+ : @error zerr:ZDDY0003 if the collection is not available.
+ :)
+declare function dml:collection( $name as xs:string )
+ as node()*
+{
+ qdml:collection( ddl:to-qname( $name ) )
+};
+
+(:~
+ : Gets the name of the collection the given node belongs to.
+ :
+ : @param $node The node for which to get the name of the collection.
+ : @return The URI of the collection to which <code>$node</code> belongs.
+ : @error zerr:ZDDY0011 if <code>$node</code> does not belong to a collection.
+ :)
+declare function dml:collection-name( $node as node() )
+ as xs:string
+{
+ ddl:from-qname( qdml:collection-name( $node ) )
+};
+
+(:~
+ : Deletes nodes from a collection.
+ :
+ : @param $nodes the nodes in the collection that should be deleted.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : deletes the nodes from their collections.
+ : @error zerr:ZDDY0011 if any nodes are not a member of a collection or not
+ : all nodes of belong to the same collection.
+ :)
+declare updating function dml:delete-nodes( $nodes as node()* )
+{
+ qdml:delete( $nodes )
+};
+
+(:~
+ : Deletes the first node from a collection.
+ :
+ : @param $name The name of the collection to delete from.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : deletes the first node from the collection.
+ : @error zerr:ZDDY0011 if the collection is empty.
+ :)
+declare updating function dml:delete-node-first( $name as xs:string )
+{
+ qdml:delete-first( ddl:to-qname( $name ) )
+};
+
+(:~
+ : Deletes the first <i>N</i> nodes from a collection.
+ :
+ : @param $name The name of the collection to delete from.
+ : @param $number The number of nodes to delete.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : deletes the nodes from the collection.
+ : @error zerr:ZDDY0011 if the collection contains less than
+ : <code>$number</code> items.
+ :)
+declare updating function dml:delete-nodes-first( $name as xs:string,
+ $number as xs:integer )
+{
+ qdml:delete-first( ddl:to-qname( $name ), $number )
+};
+
+(:~
+ : Deletes the last node from a collection.
+ :
+ : @param $name The name of the collection to delete from.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : deletes the last node from the collection.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0011 if the collection is empty.
+ :)
+declare updating function dml:delete-node-last( $name as xs:string )
+{
+ qdml:delete-last( ddl:to-qname( $name ) )
+};
+
+(:~
+ : Deletes the last <i>N</i> nodes from a collection.
+ :
+ : @param $name The name of the collection to delete from.
+ : @param $number The number of nodes to delete.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : deletes the last n nodes.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0011 if the collection contains less than
+ : <code>$number</code> items.
+ :)
+declare updating function dml:delete-nodes-last( $name as xs:string,
+ $number as xs:integer )
+{
+ qdml:delete-last( ddl:to-qname( $name ), $number )
+};
+
+(:~
+ : Gets the index of the given node in the collection.
+ :
+ : @param $node The node to get the index of.
+ : @return Returns the position of <code>$node</code> in the collection.
+ : @error zerr:ZDDY0011 if <code>$node</code> is not contained in any
+ : collection.
+ :)
+declare function dml:index-of( $node as node() )
+ as xs:integer
+{
+ qdml:index-of( $node )
+};
+
+(:===========================================================================:)
+
+(: vim:set et sw=2 ts=2: :)
=== renamed directory 'modules/com/zorba-xquery/www/modules/store/static' => 'modules/store/static'
=== modified file 'modules/store/static/collections/ddl.xq'
--- modules/com/zorba-xquery/www/modules/store/static/collections/ddl.xq 2013-09-26 23:15:11 +0000
+++ modules/store/static/collections/ddl.xq 2013-10-09 23:30:21 +0000
@@ -1,7 +1,7 @@
xquery version "3.0";
(:
- : Copyright 2006-2009 The FLWOR Foundation.
+ : Copyright 2006-2013 The FLWOR Foundation.
:
: Licensed under the Apache License, Version 2.0 (the "License");
: you may not use this file except in compliance with the License.
@@ -17,11 +17,12 @@
:)
(:~
- : This modules defines a set of functions for managing collections which are
+ : This modules defines a set of functions for managing collections that are
: declared in the prolog of a module.
- : For example, it provides functions to create, delete, or introspect collections.
- :
- : <p>This module is part of <a href="../zorba/xqddf.html">Zorba's XQuery Data
+ : For example, it provides functions to create, delete, or introspect
+ : collections.
+ : <p>
+ : This module is part of <a href="../zorba/xqddf.html">Zorba's XQuery Data
: Definition Facility</a>. All the collections managed by this module
: have to be pre-declared in the prolog of a module. Please refer to the
: <a href="../zorba/data_lifecycle.html">general documentation</a>
@@ -29,134 +30,115 @@
:
: @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>
: @see <a href="../zorba/xqddf.html">XQuery Data Definition Facility</a>
- : @see http://www.zorba-xquery.com/modules/store/static/collections/dml
- : @see http://www.zorba-xquery.com/modules/store/static/indexes/ddl
- : @see http://www.zorba-xquery.com/modules/store/static/indexes/dml
- : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl
- : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml
+ : @see http://zorba.io/modules/store/static/collections/dml
+ : @see http://zorba.io/modules/store/static/indexes/ddl
+ : @see http://zorba.io/modules/store/static/indexes/dml
+ : @see http://zorba.io/modules/store/static/integrity_constraints/ddl
+ : @see http://zorba.io/modules/store/static/integrity_constraints/dml
: @see http://zorba.io/errors
:
: @author Nicolae Brinza, Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis
- :
: @project Zorba/Data Store/Collections/Static Data Definition
- :
:)
-module namespace cddl = "http://www.zorba-xquery.com/modules/store/static/collections/ddl";;
+module namespace cddl = "http://zorba.io/modules/store/static/collections/ddl";;
declare namespace zerr = "http://zorba.io/errors";;
declare namespace ver = "http://zorba.io/options/versioning";;
declare option ver:module-version "2.0";
-
-(:~
- : The create function is an updating function which creates
- : the collection with the given expanded QName.
- :
- : @param $name The QName of the collection to create.
- :
- : @return The result of the function is an empty XDM instance and a
- : pending update list which, once applied, creates a collection
- : with the given name.
- :
- : @error zerr:ZDDY0001 if the expanded QName $name is not equal
- : to any of the declared collections in the static context.
- : @error zerr:ZDDY0002 if a collection with the given expanded QName already
- : exists.
- :
- :)
-declare updating function cddl:create($name as xs:QName) external;
-
-
-(:~
- : The create function is an updating function which creates
- : the collection with the given expanded QName. Moreover, it adds copies
- : of the sequence $content to the new collection.
- :
- : @param $name The QName of the collection to create.
- : @param $content The sequences of items (nodes and/or json items) that should
- : be added to the new collection.
- :
- : @return The result of the function is an empty XDM instance and a
- : pending update list which, once applied, creates a collection
- : with the given name and inserts the given items into it.
- :
- : @error zerr:ZDDY0001 if the expanded QName $name is not equal
- : to any of the declared collections in the static context.
- : @error zerr:ZDDY0002 if a collection with the given expanded QName already
- : exists.
- : @error zerr:ZDTY0001 if $content does not match the expected type
- : (i.e. declared by the collection) according to the rules
- : for SequenceType Matching.
- :
- :)
-declare updating function cddl:create($name as xs:QName, $content as item()*) external;
-
-
-(:~
- : The delete function is an updating function that deletes
- : the collection with the given expanded QName.
- :
- : @param $name The QName of the collection to delete.
- :
- : @return The result of the function is an empty XDM instance and a pending
- : update list which, once applied, deletes the collection with the given
- : name.
- :
- : @error zerr:ZDDY0001 if the expanded QName $name is not equal
- : to any of the declared collections in the static context.
- : @error zerr:ZDDY0003 if the expanded QName $name is not equal
- : to any of the available collections.
- : @error zerr:ZDDY0015 if any of the in-scope variables references an item that
- : belongs to the collection with QName $name.
+(:===========================================================================:)
+
+(:~
+ : Gets the QNames of the collections that have been statically declared and
+ : are available, if any.
+:
+ : @return A sequence comprising one QName for each statically declared and
+ : available collection or an emtpy sequence if no such collections are
+ : available.
+ :)
+declare function cddl:available-collections()
+ as xs:QName* external;
+
+(:~
+ : Creates a collection.
+ :
+ : @param $name The of the collection to create.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : creates a collection with the given name.
+ : @error zerr:ZDDY0001 if <code>$name</code> is not equal to any of the
+ : declared collections in the static context.
+ : @error zerr:ZDDY0002 if a collection with <code>$name</code> already exists.
+ :)
+declare updating function cddl:create( $name as xs:QName ) external;
+
+(:~
+ : Creates a collection and adds the given sequence as content to the new
+ : collection.
+ :
+ : @param $name The name of the collection to create.
+ : @param $content The sequences of items (nodes or JSON items) to be added to
+ : the new collection.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : creates a collection with the given name and inserts the given items into
+ : it.
+ : @error zerr:ZDDY0001 if <code>$name</code> is not equal to any of the
+ : declared collections in the static context.
+ : @error zerr:ZDDY0002 if a collection with <code>$name</code> already exists.
+ : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
+ : type declared by the collection according to the rules for SequenceType
+ : Matching.
+ :)
+declare updating function cddl:create( $name as xs:QName,
+ $content as item()* )
+ external;
+
+(:~
+ : Gets the collections that have been declared in the prolog of the static
+ : context.
+ :
+ : @return A sequence of QNames, one for each collection created in the static
+ : context, or an emtpy sequence.
+ :)
+declare function cddl:declared-collections()
+ as xs:QName* external;
+
+(:~
+ : Deletes a collection.
+ :
+ : @param $name The collection to delete.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : deletes the collection with the given name.
+ : @error zerr:ZDDY0001 if <code>$name</code> is not equal to any of the
+ : declared collections in the static context.
+ : @error zerr:ZDDY0003 if the collection identified by <code>$name</code> is
+ : not available.
: @error zerr:ZDDY0013 if the domain or key expression of any of the available
- : indexes access the collection with name $name.
- :
- :)
-declare updating function cddl:delete($name as xs:QName) external;
-
-
-(:~
- : The function returns true if a collection with the given QName is
- : statically declared and available (i.e. has been created).
- :
- : @param $name The QName of the collection that is being checked.
- :
- : @return true if the collection is statically declared and available,
- : false otherwise.
- :
- :)
-declare function cddl:is-available-collection($name as xs:QName) as xs:boolean external;
-
-
-(:~
- : The function returns a sequence of QNames of the collections that are
- : statically declared and available. The sequence will be empty if there
- : are no such collections.
- :
- : @return A sequence of QNames, one for each statically declared and available
- : collection, or an emtpy sequence.
- :
- :)
-declare function cddl:available-collections() as xs:QName* external;
-
-
-(:~
- : The function returns true if a collection with the given
- : QName is declared in the prolog of the static context.
- :
- : @param $name The QName of the collection that is being checked.
- :
- : @return true if the collection is declared or false otherwise.
- :
- :)
-declare function cddl:is-declared-collection($name as xs:QName) as xs:boolean external;
-
-
-(:~
- : The function returns a sequence of QNames representing the collections that have
- : been declared in the prolog of the static context.
- :
- : @return A sequence of QNames, one for each created collection, or an emtpy sequence.
- :
- :)
-declare function cddl:declared-collections() as xs:QName* external;
+ : indexes access the collection having <code>$name</code>.
+ : @error zerr:ZDDY0015 if any of the in-scope variables references an item
+ : that belongs to the collection having <code>$name</code>
+ :)
+declare updating function cddl:delete( $name as xs:QName )
+ external;
+
+(:~
+ : Gets whether a collection is statically declared and available.
+ :
+ : @param $name The name of the collection to check.
+ : @return true if the collection was statically declared and is available;
+ : false otherwise.
+ :)
+declare function cddl:is-available-collection( $name as xs:QName )
+ as xs:boolean external;
+
+(:~
+ : Gers whether a collection was declared in the prolog of the static context.
+ :
+ : @param $name The name of the collection to check.
+ : @return true if the collection was declared; false otherwise.
+ :)
+declare function cddl:is-declared-collection( $name as xs:QName )
+ as xs:boolean external;
+
+(:===========================================================================:)
+
+(: vim:set et sw=2 ts=2: :)
=== modified file 'modules/store/static/collections/dml.xq'
--- modules/com/zorba-xquery/www/modules/store/static/collections/dml.xq 2013-09-26 23:15:11 +0000
+++ modules/store/static/collections/dml.xq 2013-10-09 23:30:21 +0000
@@ -1,7 +1,7 @@
xquery version "3.0";
(:
- : Copyright 2006-2009 The FLWOR Foundation.
+ : Copyright 2006-2013 The FLWOR Foundation.
:
: Licensed under the Apache License, Version 2.0 (the "License");
: you may not use this file except in compliance with the License.
@@ -17,30 +17,30 @@
:)
(:~
- : This modules provides a set of functions to modify a collection and retrieve the items
- : contained in a particular collection.
- :
- : <p>This module is part of <a href="../zorba/xqddf.html">Zorba's XQuery Data
- : Definition Facility</a>. All the collections managed by this module
- : have to be pre-declared in the prolog of a module. Please refer to the
+ : This modules provides a set of functions to modify a collection
+ : and retrieve the items contained in a particular collection.
+ : <p>
+ : This module is part of
+ : <a href="../zorba/xqddf.html">Zorba's XQuery Data Definition Facility</a>.
+ : All the collections managed by this module have to be pre-declared in the
+ : prolog of a module.
+ : Please refer to the
: <a href="../zorba/data_lifecycle.html">general documentation</a>
- : for more information and examples.</p>
+ : for more information and examples.
:
: @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>
: @see <a href="../zorba/xqddf.html">XQuery Data Definition Facility</a>
- : @see http://www.zorba-xquery.com/modules/store/static/collections/ddl
- : @see http://www.zorba-xquery.com/modules/store/static/indexes/ddl
- : @see http://www.zorba-xquery.com/modules/store/static/indexes/dml
- : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl
- : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml
+ : @see http://zorba.io/modules/store/static/collections/ddl
+ : @see http://zorba.io/modules/store/static/indexes/ddl
+ : @see http://zorba.io/modules/store/static/indexes/dml
+ : @see http://zorba.io/modules/store/static/integrity_constraints/ddl
+ : @see http://zorba.io/modules/store/static/integrity_constraints/dml
: @see http://zorba.io/errors
:
: @author Nicolae Brinza, Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis
- :
: @project Zorba/Data Store/Collections/Static Data Manipulation
- :
:)
-module namespace cdml = "http://www.zorba-xquery.com/modules/store/static/collections/dml";;
+module namespace cdml = "http://zorba.io/modules/store/static/collections/dml";;
declare namespace an = "http://zorba.io/annotations";;
declare namespace zerr = "http://zorba.io/errors";;
@@ -48,923 +48,430 @@
declare namespace ver = "http://zorba.io/options/versioning";;
declare option ver:module-version "2.0";
-
-(:~
- : The insert-nodes function is an updating function that inserts copies of the
- : given nodes into a collection.
- : Please note that the insertion position of the nodes in the collection is
- : not defined.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, inserts the nodes into the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only,
- : const, or queue.
- : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
- : in the collection declaration) according to the rules for SequenceType Matching.
- :
- : @deprecated please use the cdml:insert#2 function
- :
- :)
-declare updating function
-cdml:insert-nodes($name as xs:QName, $content as node()*) external;
-
-
-(:~
- : The insert function is an updating function that inserts copies of the given
- : items (nodes and/or json items) into a collection. Please note that the
- : insertion position of the items in the collection is not defined.
- :
- : @param $name The name of the collection to which the items should be added.
- : @param $content The sequences of items whose copies should be added to the collection.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, inserts the items into the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only,
- : const, or queue.
- : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
- : in the collection declaration) according to the rules for SequenceType
- : Matching.
- :
- :)
-declare updating function
-cdml:insert($name as xs:QName, $content as item()*) external;
-
-
-(:~
- : The insert-nodes-first function is an updating function that inserts copies
- : of the given nodes at the beginning of a collection.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, inserts the nodes into the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only,
- : const, or queue.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
- : in the collection declaration) according to the rules for SequenceType Matching.
- :
- : @deprecated please use the cdml:insert-first#2 function
- :
- :)
-declare updating function
-cdml:insert-nodes-first($name as xs:QName, $content as node()*) external;
-
-
-(:~
- : The insert-first function is an updating function that inserts copies of the
- : given items (nodes and/or json items) at the beginning of a collection.
- :
- : @param $name The name of the collection to which the items should be added.
- : @param $content The sequences of items whose copies should be added to the collection.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, inserts the items into the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only,
- : const, or queue.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
- : in the collection declaration) according to the rules for SequenceType Matching.
- :
- :)
-declare updating function
-cdml:insert-first($name as xs:QName, $content as item()*) external;
-
-
-(:~
- : The insert-nodes-last function is an updating function that inserts
- : copies of the given nodes at the end of a collection.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, inserts the nodes into the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is const.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
- : in the collection declaration) according to the rules for SequenceType Matching.
- :
- : @deprecated please use the cdml:insert-last#2 function
- :
- :)
-declare updating function
-cdml:insert-nodes-last($name as xs:QName, $content as node()*) external;
-
-
-(:~
- : The insert-last function is an updating function that inserts copies of the
- : given items (nodes and/or json items) at the end of a collection.
- :
- : @param $name The name of the collection to which the items should be added.
- : @param $content The sequences of itemss whose copies should be added to the collection.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, inserts the items into the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is const.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
- : in the collection declaration) according to the rules for SequenceType Matching.
- :
- :)
-declare updating function
-cdml:insert-last($name as xs:QName, $content as item()*) external;
-
-
-(:~
- : The insert-nodes-before function is an updating function that inserts
- : copies of the given nodes into a collection at the position directly preceding the
- : given target node.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $target The node in the collection before which the $content
- : sequence should be inserted.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, inserts the nodes into the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is const,
- : append-only, or queue.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
- : in the collection declaration) according to the rules for SequenceType Matching.
- : @error zerr:ZDDY0011 if the $target node is not a node that is contained in
- : the collection $name.
- :
- : @deprecated please use the cdml:insert-before#3 function
- :
- :)
-declare updating function
-cdml:insert-nodes-before(
- $name as xs:QName,
- $target as node(),
- $content as node()*) external;
-
-
-(:~
- : The insert-before function is an updating function that inserts copies of the
- : given items (nodes and/or json items) into a collection at the position
- : directly preceding the given target item.
- :
- : @param $name The name of the collection to which the items should be added.
- : @param $target The item in the collection before which the $content
- : sequence should be inserted.
- : @param $content The sequences of items whose copies should be added to the collection.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, inserts the items into the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is const,
- : append-only, or queue.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
- : in the collection declaration) according to the rules for SequenceType Matching.
- : @error zerr:ZDDY0011 if the $target item is not an item that is contained in
- : the collection $name.
- :
- :)
-declare updating function
-cdml:insert-before($name as xs:QName, $target as item(), $content as item()*) external;
-
-
-(:~
- : The insert-nodes-after function is an updating function that inserts
- : copies of the given nodes into a collection at the position directlry following the
- : given target node.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $target The node in the collection after which the $content
- : sequence should be inserted.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, inserts the nodes into the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is const,
- : append-only, or queue.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
- : in the collection declaration) according to the rules for SequenceType Matching.
- : @error zerr:ZDDY0011 if the $target node is not a node that is contained in
- : the collection $name.
- :
- : @deprecated please use the cdml:insert-after#3 function
- :
- :)
-declare updating function
-cdml:insert-nodes-after(
- $name as xs:QName,
- $target as node(),
- $content as node()*) external;
-
+(:===========================================================================:)
+
+(:~
+ : Gets the sequence of nodes or JSON items from a collection.
+ :
+ : @param $name The name of the collection.
+ : @return The seqnence of items from the collection.
+ : @error zerr:ZDDY0001 if the collection is not declared.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ :)
+declare function cdml:collection( $name as xs:QName )
+ as item()* external;
+
+(:~
+ : Gets the sequence of nodes or JSON items from a collection.
+ :
+ : @param $name The name of the collection.
+ : @param $skip The initial number of items to skip.
+ : @return The (sub)sequence of items from the collection.
+ :
+ : @error zerr:ZDDY0001 if the collection is not declared.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ :)
+declare function cdml:collection( $name as xs:QName, $skip as xs:integer )
+ as item()* external;
+
+(:~
+ : Gets the sequence of items (nodes or JSON items) from a collection.
+ : The parameters <code>$start</code> and <code>$skip</code> can be used to
+ : skip over some items at the beginning of the collection.
+ : If both are given, both are applied:
+ : first <code>$start</code> to skip to the referenced item
+ : and then <code>$skip</code> to skip that additional number of items.
+ :
+ : @param $name The name of the collection.
+ : @param $start The reference to the first item to return.
+ : @param $skip The number of additional items to skip.
+ : @return The sub-sequence from the collection.
+ : @error zerr:ZAPI0028 If the given URI is not a valid node position computed
+ : by the <code>np:node-position</code> function.
+ : @error zerr:ZDDY0001 if the collection is not declared.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZSTR0066 if <code>$start</code> does not reference a node from
+ : the collection.
+ :)
+declare function cdml:collection( $name as xs:QName,
+ $start as xs:anyURI,
+ $skip as xs:integer )
+ as item()* external;
+
+(:~
+ : Inserts copies of the given items (nodes or JSON items) into a collection.
+ : Note that the insertion position of the items in the collection is not
+ : defined.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $content The sequence of items whose copies to insert.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : inserts the items into the collection.
+ :
+ : @error zerr:ZDDY0001 if the collection is not declared.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0006 if the collection is append-only, const, or queue.
+ : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
+ : type as specified in the collection declaration according to the rules for
+ : SequenceType Matching.
+ :)
+declare updating function cdml:insert( $name as xs:QName,
+ $content as item()* )
+ external;
(:~
: The insert-after function is an updating function that inserts copies of the
- : given items (nodes and/or json items) into a collection at the position
- : directlry following the given target item.
- :
- : @param $name The name of the collection to which the items should be added.
- : @param $target The item in the collection after which the $content
- : sequence should be inserted.
- : @param $content The sequences of items whose copies should be added to the collection.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, inserts the items into the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is const,
- : append-only, or queue.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
- : in the collection declaration) according to the rules for SequenceType Matching.
- : @error zerr:ZDDY0011 if the $target node is not a node that is contained in
- : the collection $name.
- :
- :)
-declare updating function
-cdml:insert-after($name as xs:QName, $target as item(), $content as item()*) external;
-
-
-(:~
- : This function does the same as the insert-nodes function except
- : it immediately applies the resulting pending updates and returns the
- : nodes that have been inserted.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is the sequence of nodes that have been
- : inserted into the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only,
- : const, or queue.
- : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
- : in the collection declaration) according to the rules for SequenceType Matching.
- :
- : @see cdml:insert-nodes
- :
- : @deprecated please use the cdml:apply-insert#2 function
- :
- :)
-declare %an:sequential function
-cdml:apply-insert-nodes($name as xs:QName, $content as node()*) as node()* external;
-
-
-(:~
- : This function does the same as the insert function except it immediately applies
- : the resulting pending updates and returns the items that have been inserted.
- :
- : @param $name The name of the collection to which the items should be added.
- : @param $content The sequences of items whose copies should be added to the collection.
- :
- : @return The result of the function is the sequence of items that have been
- : inserted into the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only,
- : const, or queue.
- : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
- : in the collection declaration) according to the rules for SequenceType Matching.
- :
+ : given items (nodes or JSON items) into a collection at the position
+ : directly following the given target item.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $target The item in the collection after which <code>$content</code>
+ : will be inserted.
+ : @param $content The sequence of items whose copies to insert.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : inserts the items into the collection.
+ : @error zerr:ZDDY0001 if the collection is not declared.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0006 if the collection is const, append-only, or queue.
+ : @error zerr:ZDDY0012 if the collection is unordered.
+ : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
+ : type as specified in the collection declaration according to the rules for
+ : SequenceType Matching.
+ : @error zerr:ZDDY0011 if <code>$target</code> is not a node that is contained
+ : in the collection.
+ :)
+declare updating function cdml:insert-after( $name as xs:QName,
+ $target as item(),
+ $content as item()* )
+ external;
+
+(:~
+ : Inserts copies of the given items (nodes or JSON items) into a collection at
+ : the position directly preceding the given target item.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $target The item in the collection before which <code>$content</code>
+ : will be inserted.
+ : @param $content The sequence of items whose copies to insert.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : inserts the items into the collection.
+ : @error zerr:ZDDY0001 if the collection is not declared.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0006 if the collection is const, append-only, or queue.
+ : @error zerr:ZDDY0012 if the collection is unordered.
+ : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
+ : type as specified in the collection declaration according to the rules for
+ : SequenceType Matching.
+ : @error zerr:ZDDY0011 if <code>$target</code> is not an item that is
+ : contained in the collection.
+ :)
+declare updating function cdml:insert-before( $name as xs:QName,
+ $target as item(),
+ $content as item()* )
+ external;
+
+(:~
+ : Inserts copies of the given items (nodes or JSON items) at the beginning of
+ : a collection.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $content The sequence of items whose copies to insert.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : inserts the items into the collection.
+ : @error zerr:ZDDY0001 if the collection is not declared.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0006 if the collection is append-only, const, or queue.
+ : @error zerr:ZDDY0012 if the collection is unordered.
+ : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
+ : type as specified in the collection declaration according to the rules for
+ : SequenceType Matching.
+ :)
+declare updating function cdml:insert-first( $name as xs:QName,
+ $content as item()* )
+ external;
+
+(:~
+ : Inserts copies of the given items (nodes or JSON items) at the end of a
+ : collection.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $content The sequence of itemss whose copies to insert.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : inserts the items into the collection.
+ : @error zerr:ZDDY0001 if the collection is not declared.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0006 if the collection is const.
+ : @error zerr:ZDDY0012 if the collection is unordered.
+ : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
+ : type as specified in the collection declaration according to the rules for
+ : SequenceType Matching.
+ :)
+declare updating function cdml:insert-last( $name as xs:QName,
+ $content as item()* )
+ external;
+
+(:~
+ : This function does the same thing as <code>insert()</code> except it
+ : immediately applies the resulting pending updates and returns the items that
+ : have been inserted.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $content The sequence of items whose copies to insert.
+ : @return The sequence of items that have been inserted.
+ : @error zerr:ZDDY0001 if the collection is not declared.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0006 if the collection is append-only, const, or queue.
+ : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
+ : type as specified in the collection declaration according to the rules for
+ : SequenceType Matching.
: @see cdml:insert
- :
- :)
-declare %an:sequential function
-cdml:apply-insert($name as xs:QName, $content as item()*) as item()* external;
-
-(:~
- : This function does the same as the insert-nodes-first function except
- : it immediately applies the resulting pending updates and returns the
- : nodes that have been inserted.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is the sequence of nodes that have been
- : inserted into the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only,
- : const, or queue.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDTY0001 if $content does not match the expected type according to the
- : rules for SequenceType Matching.
- :
- : @see cdml:insert-nodes-first
- :
- : @deprecated please use the cdml:apply-insert-first#2 function
- :
- :)
-declare %an:sequential function
-cdml:apply-insert-nodes-first(
- $name as xs:QName,
- $content as node()*) as node()* external;
-
-
-(:~
- : This function does the same as the insert-first function except it immediately
- : applies the resulting pending updates and returns the items that have been
- : inserted.
- :
- : @param $name The name of the collection to which the items should be added.
- : @param $content The sequences of items whose copies should be added to the collection.
- :
- : @return The result of the function is the sequence of items that have been
- : inserted into the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only,
- : const, or queue.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
- : in the collection declaration) according to the rules for SequenceType Matching.
- :
+ :)
+declare %an:sequential function cdml:apply-insert( $name as xs:QName,
+ $content as item()* )
+ as item()* external;
+
+(:~
+ : This function does the same thing as <code>insert-first()</code> except it
+ : immediately applies the resulting pending updates and returns the items that
+ : have been inserted.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $content The sequence of items whose copies to insert.
+ : @return The Sequence of items that have been inserted.
+ : @error zerr:ZDDY0001 if the collection is not declared.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0006 if the collection $name is append-only, const, or
+ : queue.
+ : @error zerr:ZDDY0012 if the collection is unordered.
+ : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
+ : type as specified in the collection declaration according to the rules for
+ : SequenceType Matching.
: @see cdml:insert-first
- :
- :)
-declare %an:sequential function
-cdml:apply-insert-first($name as xs:QName, $content as item()*) as item()* external;
-
-(:~
- : This function does the same as the insert-nodes-last function except
- : it immediately applies the resulting pending updates and returns the
- : nodes that have been inserted.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is the sequence of nodes that have been
- : inserted into the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is const.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
- : in the collection declaration) according to the rules for SequenceType Matching.
- :
- : @see cdml:insert-nodes-last
- :
- : @deprecated please use the cdml:apply-insert-last#2 function
- :
- :)
-declare %an:sequential function
-cdml:apply-insert-nodes-last(
- $name as xs:QName,
- $content as node()*) as node()* external;
-
-
-(:~
- : This function does the same as the insert-last function except it immediately
- : applies the resulting pending updates and returns the items that have been
- : inserted.
- :
- : @param $name The name of the collection to which the items should be added.
- : @param $content The sequences of items whose copies should be added to the collection.
- :
- : @return The result of the function is the sequence of items that have been
- : inserted into the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is const.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
- : in the collection declaration) according to the rules for SequenceType Matching.
- :
+ :)
+declare %an:sequential function cdml:apply-insert-first( $name as xs:QName,
+ $content as item()* )
+ as item()* external;
+
+(:~
+ : This function does the same thing as <code>insert-last()</code> except it
+ : immediately applies the resulting pending updates and returns the items that
+ : have been inserted.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $content The sequence of items whose copies to insert.
+ : @return The sequence of items that have been inserted.
+ : @error zerr:ZDDY0001 if the collection is not declared.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0006 if the collection is const.
+ : @error zerr:ZDDY0012 if the collection is unordered.
+ : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
+ : type as specified in the collection declaration according to the rules for
+ : SequenceType Matching.
: @see cdml:insert-last
- :
- :)
-declare %an:sequential function
-cdml:apply-insert-last($name as xs:QName, $content as item()*) as item()* external;
-
-
-(:~
- : This function does the same as the insert-nodes-before function except
- : it immediately applies the resulting pending updates and returns the
- : nodes that have been inserted.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $target The node in the collection before which the $content
- : sequence should be inserted.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is the sequence of nodes that have been
- : inserted into the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is const,
- : append-only, or queue.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
- : in the collection declaration) according to the rules for SequenceType Matching.
- : @error zerr:ZDDY0011 if the $target node is not a node that is contained in
- : the collection $name.
- :
- : @see cdml:insert-nodes-before
- :
- : @deprecated please use the cdml:apply-insert-before#3 function
- :
- :)
-declare %an:sequential function
-cdml:apply-insert-nodes-before(
- $name as xs:QName,
- $target as node(),
- $content as node()*) as node()* external;
-
-
-(:~
- : This function does the same as the insert-before function except it immediately
- : applies the resulting pending updates and returns the items that have been
- : inserted.
- :
- : @param $name The name of the collection to which the items should be added.
- : @param $target The item in the collection before which the $content
- : sequence should be inserted.
- : @param $content The sequences of items whose copies should be added to the collection.
- :
- : @return The result of the function is the sequence of items that have been
- : inserted into the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is const,
- : append-only, or queue.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
- : in the collection declaration) according to the rules for SequenceType Matching.
- : @error zerr:ZDDY0011 if the $target item is not an item that is contained in
- : the collection $name.
- :
+ :)
+declare %an:sequential function cdml:apply-insert-last( $name as xs:QName,
+ $content as item()* )
+ as item()* external;
+
+(:~
+ : This function does the same thing as <code>insert-before()</code> except it
+ : immediately applies the resulting pending updates and returns the items that
+ : have been inserted.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $target The item in the collection before which <code>$content</code>
+ : will be inserted.
+ : @param $content The sequence of items whose copies to insert.
+ : @return The sequence of items that have been inserted.
+ : @error zerr:ZDDY0001 if the collection is not declared.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0006 if the collection $name is const, append-only, or
+ : queue.
+ : @error zerr:ZDDY0012 if the collection is unordered.
+ : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
+ : type as specified in the collection declaration according to the rules for
+ : SequenceType Matching.
+ : @error zerr:ZDDY0011 if <code>$target</code> is not an item that is
+ : contained in the collection.
: @see cdml:insert-before
- :
- :)
-declare %an:sequential function
-cdml:apply-insert-before(
- $name as xs:QName,
- $target as item(),
- $content as item()*) as item()* external;
-
-
-(:~
- : This function does the same as the insert-nodes-after function except
- : it immediately applies the resulting pending updates and returns the
- : nodes that have been inserted.
- :
- : @param $name The name of the collection to which the nodes should be added.
- : @param $target The node in the collection after which the $content
- : sequence should be inserted.
- : @param $content The sequences of nodes whose copies should be added to the collection.
- :
- : @return The result of the function is the sequence of nodes that have been
- : inserted into the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is
- : const, append-only, or queue.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
- : in the collection declaration) according to the rules for SequenceType Matching.
- : @error zerr:ZDDY0011 if the $target node is not a node that is contained in
- : the collection $name.
- :
- : @see cdml:insert-nodes-after
- :
- : @deprecated please use the cdml:apply-insert-after#3 function
- :
- :)
-declare %an:sequential function
-cdml:apply-insert-nodes-after(
- $name as xs:QName,
- $pos as node(),
- $content as node()*) as node()* external;
-
-
-(:~
- : This function does the same as the insert-after function except it immediately
- : applies the resulting pending updates and returns the items that have been
- : inserted.
- :
- : @param $name The name of the collection to which the items should be added.
- : @param $target The item in the collection after which the $content
- : sequence should be inserted.
- : @param $content The sequences of items whose copies should be added to the collection.
- :
- : @return The result of the function is the sequence of items that have been
- : inserted into the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is
- : const, append-only, or queue.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
- : in the collection declaration) according to the rules for SequenceType Matching.
- : @error zerr:ZDDY0011 if the $target item is not an item that is contained in
- : the collection $name.
- :
+ :)
+declare %an:sequential function cdml:apply-insert-before( $name as xs:QName,
+ $target as item(),
+ $content as item()* )
+ as item()* external;
+
+(:~
+ : This function does the same thing as the <code>insert-after()</code>
+ : function except it immediately applies the resulting pending updates and
+ : returns the items that have been inserted.
+ :
+ : @param $name The name of the collection to insert into.
+ : @param $target The item in the collection after which <code>$content</code>
+ : will be inserted.
+ : @param $content The sequence of items whose copies to insert.
+ : @return The sequence of items that have been inserted.
+ : @error zerr:ZDDY0001 if the collection is not declared.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0006 if the collection is const, append-only, or queue.
+ : @error zerr:ZDDY0012 if the collection is unordered.
+ : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
+ : type as specified in the collection declaration according to the rules for
+ : SequenceType Matching.
+ : @error zerr:ZDDY0011 if <code>$target</code> is not in the collection.
: @see cdml:insert-after
- :
- :)
-declare %an:sequential function
-cdml:apply-insert-after(
- $name as xs:QName,
- $pos as item(),
- $content as item()*) as item()* external;
-
-
-(:~
- : The delete-nodes function is an updating function that deletes zero of more
- : nodes from a collection.
- :
- : @param $target the nodes in the collection that should be deleted.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the nodes from their collections.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is const,
- : append-only, or queue.
- : @error zerr:ZDDY0011 if any node in the $target sequence is not a member of a
- : collection or not all nodes of the $target sequence belong to the same
- : collection.
- :
- : @deprecated please use the cdml:delete#1 function
- :
- :)
-declare updating function
-cdml:delete-nodes($target as node()*) external;
-
-
-(:~
- : The delete function is an updating function that deletes zero of more items
- : (nodes and/or json items) from a collection.
- :
- : @param $target the items in the collection that should be deleted.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the items from their collections.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is const,
- : append-only, or queue.
- : @error zerr:ZDDY0011 if any item in the $target sequence is not a member of a
- : collection or not all items of the $target sequence belong to the same
- : collection.
- :
- :)
-declare updating function
-cdml:delete($target as item()*) external;
-
-
-(:~
- : The delete-node-first function is an updating function that deletes the
- : first node from an ordered collection.
- :
- : @param $name The name of the collection from which the first node should be deleted.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the first node from the collection.
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is
- : const or append-only.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDDY0011 If the collection is empty.
- :
- : @deprecated please use the cdml:delete-first#1 function
- :
- :)
-declare updating function
-cdml:delete-node-first($name as xs:QName) external;
-
-
-(:~
- : The delete-first function is an updating function that deletes the first
- : item from an ordered collection.
- :
- : @param $name The name of the collection from which the first item should be deleted.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the first item from the collection.
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is
- : const or append-only.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDDY0011 If the collection is empty.
- :
- :)
-declare updating function
-cdml:delete-first($name as xs:QName) external;
-
-
-(:~
- : The delete-nodes-first function is an updating function that deletes the
- : first n nodes from an ordered collection.
- :
- : @param $name The name of the collection from which the first node should be deleted.
- : @param $number The number of nodes that should be removed from the beginning of
- : the collection.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the nodes from the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is
- : const or append-only.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDDY0011 If the collection contains less than $number nodes.
- :
- : @deprecated please use the cdml:delete-first#2 function
- :
- :)
-declare updating function
-cdml:delete-nodes-first($name as xs:QName, $number as xs:integer) external;
-
-
-(:~
- : The delete-first function is an updating function that deletes the first N
- : items from an ordered collection.
- :
- : @param $name The name of the collection from which the first N items should be deleted.
- : @param $number The number N of items that should be removed from the beginning of
- : the collection.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the items from the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is
- : const or append-only.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDDY0011 If the collection contains less than $number items.
- :
- :)
-declare updating function
-cdml:delete-first($name as xs:QName, $number as xs:integer) external;
-
-
-(:~
- : The delete-node-last function is an updating function that deletes the
- : last node from an ordered collection.
- :
- : @param $name The name of the collection from which the last node should be deleted.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the last node from the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is const,
- : append-only, or queue.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDDY0011 If the collection is empty.
- :
- : @deprecated please use the cdml:delete-last#1 function
- :)
-declare updating function
-cdml:delete-node-last($name as xs:QName) external;
-
-
-(:~
- : The delete-last function is an updating function that deletes the last item
- : from an ordered collection.
- :
- : @param $name The name of the collection from which the last item should be deleted.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the last item from the collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection $name is const,
- : append-only, or queue.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDDY0011 If the collection is empty.
- :)
-declare updating function
-cdml:delete-last($name as xs:QName) external;
-
-
-(:~
- : The delete-nodes-last function is an updating function that deletes the
- : last n nodes from an ordered collection.
- :
- : @param $name The name of the collection from which the first node should be deleted.
- : @param $number The number of nodes to delete.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the nodes.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDDY0011 If the collection contains less than $number nodes.
- :
- : @deprecated please use the cdml:delete-last#2 function
- :
- :)
-declare updating function
-cdml:delete-nodes-last($name as xs:QName, $number as xs:integer) external;
-
-
-(:~
- : The delete-last function is an updating function that deletes the last N items
- : from an ordered collection.
- :
- : @param $name The name of the collection from which the last N items should be deleted.
- : @param $number The number of items to delete.
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the items.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
- : @error zerr:ZDDY0011 If the collection contains less than $number items.
- :
- :)
-declare updating function
-cdml:delete-last($name as xs:QName, $number as xs:integer) external;
-
-
-(:~
- : The edit function is an updating function that edits the first supplied
- : item so as to make it look exactly like a copy of the second supplied item,
- : while retaining its original identity.
- :
- : @param $target The target item ,that must be edited.
- : @param $content The content item, that serves as an edit goal.
- :
- : @return The result of the function is an empty XDM instance and a pending update list
- : which, once applied, performs the edit.
- :
- : @error zerr:ZDDY0001 if the collection to which $target belongs is not declared.
- : @error zerr:ZDDY0003 if the collection to which $target belongs is not available.
- : @error zerr:ZDDY0006 if the modifier property of the collection to which $target
- : belongs is append-only, const, or queue.
- : @error zerr:ZDDY0017 if the $target item is not a member of a collection.
+ :)
+declare %an:sequential function cdml:apply-insert-after( $name as xs:QName,
+ $pos as item(),
+ $content as item()* )
+ as item()* external;
+
+(:~
+ : Deletes items (nodes or JSON items) from a collection.
+ :
+ : @param $items The items in the collection to delete.
+ :
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : deletes the items from their collections.
+ : @error zerr:ZDDY0001 if the collection is not declared.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0006 if the collection is const, append-only, or queue.
+ : @error zerr:ZDDY0011 if any item in <code>$items</code> is not a member of a
+ : collection or not all items belong to the same collection.
+ :)
+declare updating function cdml:delete( $items as item()* )
+ external;
+
+(:~
+ : Deletes the first item from a collection.
+ :
+ : @param $name The name of the collection to delete from.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : deletes the first item from the collection.
+ : @error zerr:ZDDY0001 if the collection is not declared.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0006 if the collection is const or append-only.
+ : @error zerr:ZDDY0012 if the collection is unordered.
+ : @error zerr:ZDDY0011 if the collection is empty.
+ :)
+declare updating function cdml:delete-first( $name as xs:QName )
+ external;
+
+(:~
+ : Deletes the first <i>N</i> items from a collection.
+ :
+ : @param $name The name of the collection to delete from.
+ : @param $number The number of items to delete.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : deletes the items from the collection.
+ : @error zerr:ZDDY0001 if the collection is not declared.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0006 if the collection is const or append-only.
+ : @error zerr:ZDDY0012 if the collection is unordered.
+ : @error zerr:ZDDY0011 if the collection contains less than
+ : <code>$number</code> items.
+ :)
+declare updating function cdml:delete-first( $name as xs:QName,
+ $number as xs:integer )
+ external;
+
+(:~
+ : Deletes the last item from a collection.
+ :
+ : @param $name The name of the collection to delete from.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : deletes the last item from the collection.
+ : @error zerr:ZDDY0001 if the collection is not declared.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0006 if the collection is const, append-only, or queue.
+ : @error zerr:ZDDY0012 if the collection is unordered.
+ : @error zerr:ZDDY0011 if the collection is empty.
+ :)
+declare updating function cdml:delete-last( $name as xs:QName )
+ external;
+
+(:~
+ : Deletes the last <i>N</i> items from a collection.
+ :
+ : @param $name The name of the collection to delete from.
+ : @param $number The number of items to delete.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : deletes the items.
+ : @error zerr:ZDDY0001 if the collection is not declared.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ : @error zerr:ZDDY0012 if the collection is unordered.
+ : @error zerr:ZDDY0011 if the collection contains less than
+ : <code>$number</code> items.
+ :)
+declare updating function cdml:delete-last( $name as xs:QName,
+ $number as xs:integer )
+ external;
+
+(:~
+ : Edits the first supplied item so as to make it look exactly like a copy of
+ : the second supplied item while retaining its original identity.
+ :
+ : @param $target The target item to be edited.
+ : @param $content The item that serves as an edit goal.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : performs the edit.
+ : @error zerr:ZDDY0001 if the collection to which <code>$target</code> belongs
+ : is not declared.
+ : @error zerr:ZDDY0003 if the collection to which <code>$target</code> belongs
+ : is not available.
+ : @error zerr:ZDDY0006 if the collection to which <code>$target</code> belongs
+ : is append-only, const, or queue.
+ : @error zerr:ZDDY0017 if <code>$target</code> is not a member of a collection.
: @error zerr:ZDDY0037 if the collection is append-only.
: @error zerr:ZDDY0038 if the collection is a queue.
- : @error zerr:ZDDY0039 if the $target item is not a root.
- : @error zerr:ZDDY0040 if the target cannot be updated to match the content (for
- : example because the target is a node and the content is an object).
- : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
- : in the collection declaration) according to the rules for SequenceType Matching.
- :
+ : @error zerr:ZDDY0039 if <code>$target</code> is not a root.
+ : @error zerr:ZDDY0040 if <code>$target</code> cannot be updated to match the
+ : content (for example, because the target is a node and the content is an
+ : object).
+ : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
+ : type (as specified in the collection declaration) according to the rules for
+ : SequenceType Matching.
:)
-declare updating function
-cdml:edit($target as item(), $content as item()) external;
-
+declare updating function cdml:edit( $target as item(),
+ $content as item() )
+ external;
(:~
- : The truncate function is an updating function that deletes the
- : entire contents of collection.
- :
+ : Deletes the entire contents of collection.
: Please note that applying this function can not be undone in case
: an error happens during the application of the containing PUL.
:
- : @param $name The name of the collection whose content to delete
- :
- : @return The result of this function is an empty XDM instance and a pending update
- : list which, once applied, deletes the nodes.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- :
- :)
-declare updating function
-cdml:truncate($name as xs:QName) external;
-
-
-(:~
- : The collection function returns the sequence of nodes and/or json items
- : that belong to the collection identified by the given name.
- :
- : @param $name The name of the collection.
- :
- : @return The sequence contained in the given collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- :
- :)
-declare function
-cdml:collection($name as xs:QName) as item()* external;
-
-
-(:~
- : The collection function returns the sequence of nodes and/or json items
- : that belong to the collection identified by the given name.
- :
- : @param $name The name of the collection.
- : @param $skip The number of collection items to skip.
- :
- : @return The sequence contained in the given collection.
- :
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- :
- :)
-declare function
-cdml:collection($name as xs:QName, $skip as xs:integer) as item()* external;
-
-
-(:~
- : The collection function returns the sequence of nodes and/or json items
- : that belong to the collection identified by the given name.
- : The parameters $start and $skip can be used to skip over some items at
- : the beginning of the collection. If both are given, both are applied:
- : first $start to skip to the referenced item and then $skip to skip an
- : additional number of items.
- :
- : @param $name The name of the collection.
- : @param $start The reference to the first item to return. All items before
- are skipped.
- : @param $skip The number of collection items to skip.
- :
- : @return The sequence contained in the given collection.
- :
- : @error zerr:ZAPI0028 If the given URI is not a valid node
- : position computed by the <tt>np:node-position</tt> function.
- : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
- : @error zerr:ZDDY0003 if the collection identified by $name is not available.
- : @error zerr:ZSTR0066 if the passed reference $start does not reference
- : a node from the collection identified by $name.
- :
- :)
-declare function
-cdml:collection($name as xs:QName,
- $start as xs:anyURI,
- $skip as xs:integer) as item()* external;
-(:~
- : The collection-name function returns the name of the collection the given
- : item (node or json item) belongs to.
- :
- : @param $item The item for which to get the name of the collection
- : @return The result of this function is a QName which identifies the collection
- : to which the given item belongs to.
- :
- : @error zerr:ZDDY0011 if the given item does not belong to a collection.
- :
- :)
-declare function
-cdml:collection-name($item as item()) as xs:QName external;
-
-
-(:~
- : The index-of function returns the position of the given item (node or
- : json item) within its containing collection.
- :
- : @param $node The item to retrieve the index for.
- :
- : @return Returns the position as xs:integer of the given item in the collection.
- :
- : @error zerr:ZDDY0011 if the item is not stored in any collection.
- : @error zerr:ZDDY0012 if the order property of the collection is unordered.
- :
- :)
-declare function
-cdml:index-of($item as item()) as xs:integer external;
+ : @param $name The name of the collection whose content to delete.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : deletes the nodes.
+ : @error zerr:ZDDY0001 if the collection is not declared.
+ : @error zerr:ZDDY0003 if the collection is not available.
+ :)
+declare updating function cdml:truncate( $name as xs:QName )
+ external;
+
+(:~
+ : Gets the name of the collection the given item (node or JSON item) belongs
+ : to.
+ :
+ : @param $item The item for which to get the name of its collection.
+ : @return The name of the collection to which the given item belongs.
+ : @error zerr:ZDDY0011 if <code>$item</code> does not belong to a collection.
+ :)
+declare function cdml:collection-name( $item as item() )
+ as xs:QName external;
+
+(:~
+ : Gets the position of the given item (node or JSON item) within its
+ : collection.
+ :
+ : @param $item The item to get the index of.
+ : @return The position of <code>$item</code> in its collection.
+ : @error zerr:ZDDY0011 if <code>$item</code> does not belong to a collection.
+ : @error zerr:ZDDY0012 if the collection is unordered.
+ :)
+declare function cdml:index-of( $item as item() )
+ as xs:integer external;
+
+(:===========================================================================:)
+
+(: vim:set et sw=2 ts=2: :)
=== modified file 'modules/store/static/indexes/ddl.xq'
--- modules/com/zorba-xquery/www/modules/store/static/indexes/ddl.xq 2013-09-26 23:15:11 +0000
+++ modules/store/static/indexes/ddl.xq 2013-10-09 23:30:21 +0000
@@ -17,103 +17,99 @@
:)
(:~
- : This modules defines a set of functions for managing indexes which are
+ : This modules defines a set of functions for managing indexes that are
: declared in the prolog of a module.
- :
- : <p>This module is part of <a href="../zorba/xqddf.html">Zorba's XQuery Data
- : Definition Facility</a>. All the indexes managed by this module
- : have to be pre-declared in the prolog of a module. Please refer to the
+ : <p>
+ : This module is part of
+ : <a href="../zorba/xqddf.html">Zorba's XQuery Data Definition Facility</a>.
+ : All the indexes managed by this module have to be pre-declared in the prolog
+ : of a module.
+ : Please refer to the
: <a href="../zorba/data_lifecycle.html">general documentation</a>
- : for more information and examples.</p>
+ : for more information and examples.
:
: @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>
: @see <a href="../zorba/xqddf.html">XQuery Data Definition Facility</a>
- : @see http://www.zorba-xquery.com/modules/store/static/indexes/dml
- : @see http://www.zorba-xquery.com/modules/store/static/collections/dml
- : @see http://www.zorba-xquery.com/modules/store/static/collections/ddl
- : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl
- : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml
+ : @see http://zorba.io/modules/store/static/indexes/dml
+ : @see http://zorba.io/modules/store/static/collections/dml
+ : @see http://zorba.io/modules/store/static/collections/ddl
+ : @see http://zorba.io/modules/store/static/integrity_constraints/ddl
+ : @see http://zorba.io/modules/store/static/integrity_constraints/dml
: @see http://zorba.io/errors
:
: @author Nicolae Brinza, Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis
- :
: @project Zorba/Data Store/Indexes/Static Data Definition
- :
:)
-module namespace iddl = "http://www.zorba-xquery.com/modules/store/static/indexes/ddl";;
+module namespace iddl = "http://zorba.io/modules/store/static/indexes/ddl";;
declare namespace zerr = "http://zorba.io/errors";;
declare namespace ver = "http://zorba.io/options/versioning";;
declare option ver:module-version "2.0";
-(:~
- : The function returns true if an index with the given QName is available.
- : (i.e. has been created).
- :
- : @param $name The QName of the index that is being checked.
- :
- : @return true if the index is available and false otherwise.
- :)
-declare function iddl:is-available-index($name as xs:QName) as xs:boolean external;
+(:===========================================================================:)
(:~
- : The function returns a sequence of QNames representing the indexes that are
- : available. The sequence will be empty if there are no indexes.
+ : Gets the available indexes.
:
: @return A sequence of QNames, one for each available index, or an empty
: sequence if none are.
:)
-declare function iddl:available-indexes() as xs:QName* external;
-
-(:~
- : The create function is an updating function which creates the
- : index with the given expanded QName and populates the index with its
- : values.
- :
- : @param $name The QName of the index to create.
- :
- : @return The result of the function is an empty XDM instance and a pending
- : update list which, once applied, creates the index with the given
- : name.
- :
- : @error zerr:ZDDY0021 if the expanded QName of $name is not equal
- : to the name of any resource in the statically known indexes.
- : @error zerr:ZDDY0022 if the index with the given name is already created.
- :)
-declare updating function iddl:create(
- $name as xs:QName) external;
-
-(:~
- : The delete function is an updating function that deletes
- : the index with the given expanded QName.
- :
- : @param $name The QName of the index to delete.
- :
- : @return The result of the function is an empty XDM instance and a pending
- : update list which, once applied, deletes the index with the given name.
- :
- : @error zerr:ZDDY0009 If available indexes does not provide a mapping for
- : the expanded QName $name.
- :
- :)
-declare updating function iddl:delete(
- $name as xs:QName) external;
-
-(:~
- : The function returns true if a index with the given
- : QName is declared in the prolog of the static context.
- :
- : @param $name The QName of the index that is being checked.
- :
- : @return true if the index is declared or false otherwise.
- :)
-declare function iddl:is-declared-index(
- $name as xs:QName) as xs:boolean external;
-
-(:~
- : The function returns a sequence of QNames representing the indexes that have
- : been declared in the prolog of the static context.
- :
- : @return A sequence of QNames, one for each created collection, or an emtpy sequence.
- :)
-declare function iddl:declared-indexes() as xs:QName* external;
+declare function iddl:available-indexes()
+ as xs:QName* external;
+
+(:~
+ : Creates an index.
+ :
+ : @param $name The name of the index to create.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : creates the index with the given name.
+ :
+ : @error zerr:ZDDY0021 if <code>$name</code> is not equal to the name of any
+ : resource in the statically known indexes.
+ : @error zerr:ZDDY0022 if an index with <code>$name</code> already exists.
+ :)
+declare updating function iddl:create( $name as xs:QName )
+ external;
+
+(:~
+ : Gets a sequence of QNames representing the indexes that have been declared
+ : in the prolog of the static context.
+ :
+ : @return A sequence of QNames, one for each created collection, or an emtpy
+ : sequence.
+ :)
+declare function iddl:declared-indexes()
+ as xs:QName* external;
+
+(:~
+ : Deletes an index.
+ :
+ : @param $name The name of the index to delete.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : deletes the index with the given name.
+ : @error zerr:ZDDY0009 if the index does not exist.
+ :)
+declare updating function iddl:delete( $name as xs:QName )
+ external;
+
+(:~
+ : Gets whether an index exists.
+ :
+ : @param $name The name of the index that is being checked.
+ : @return true if the index is available; false otherwise.
+ :)
+declare function iddl:is-available-index( $name as xs:QName )
+ as xs:boolean external;
+
+(:~
+ : Gets whether an index has been declared in the prolog of the static context.
+ :
+ : @param $name The name of the index that is being checked.
+ : @return true if the index was declared; false otherwise.
+ :)
+declare function iddl:is-declared-index( $name as xs:QName )
+ as xs:boolean external;
+
+(:===========================================================================:)
+
+(: vim:set et sw=2 ts=2: :)
=== modified file 'modules/store/static/indexes/dml.xq'
--- modules/com/zorba-xquery/www/modules/store/static/indexes/dml.xq 2013-09-26 23:15:11 +0000
+++ modules/store/static/indexes/dml.xq 2013-10-09 23:30:21 +0000
@@ -1,7 +1,7 @@
xquery version "3.0";
(:
- : Copyright 2006-2009 The FLWOR Foundation.
+ : Copyright 2006-2013 The FLWOR Foundation.
:
: Licensed under the Apache License, Version 2.0 (the "License");
: you may not use this file except in compliance with the License.
@@ -19,353 +19,344 @@
(:~
: This module defines a set of functions to probe and refresh indexes which are
: declared in the prolog of a module.
- :
- : <p>This module is part of <a href="../zorba/xqddf.html">Zorba's XQuery Data
- : Definition Facility</a>. All the indexes managed by this module
- : have to be pre-declared in the prolog of a library module. Please refer to the
+ : <p>
+ : This module is part of
+ : <a href="../zorba/xqddf.html">Zorba's XQuery Data Definition Facility</a>.
+ : All the indexes managed by this module have to be pre-declared in the prolog
+ : of a library module.
+ : Please refer to the
: <a href="../zorba/data_lifecycle.html">general documentation</a>
- : for more information and examples.</p>
+ : for more information and examples.
:
: @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>
: @see <a href="../zorba/xqddf.html">XQuery Data Definition Facility</a>
- : @see http://www.zorba-xquery.com/modules/store/static/indexes/ddl
- : @see http://www.zorba-xquery.com/modules/store/static/collections/dml
- : @see http://www.zorba-xquery.com/modules/store/static/collections/ddl
- : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl
- : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml
+ : @see http://zorba.io/modules/store/static/indexes/ddl
+ : @see http://zorba.io/modules/store/static/collections/dml
+ : @see http://zorba.io/modules/store/static/collections/ddl
+ : @see http://zorba.io/modules/store/static/integrity_constraints/ddl
+ : @see http://zorba.io/modules/store/static/integrity_constraints/dml
: @see http://zorba.io/errors
:
: @author Zorba Team
- :
: @project Zorba/Data Store/Indexes/Static Data Manipulation
- :
:)
-module namespace idml = "http://www.zorba-xquery.com/modules/store/static/indexes/dml";;
+module namespace idml = "http://zorba.io/modules/store/static/indexes/dml";;
+declare namespace an = "http://zorba.io/annotations";;
declare namespace zerr = "http://zorba.io/errors";;
-declare namespace an = "http://zorba.io/annotations";;
declare namespace ver = "http://zorba.io/options/versioning";;
-
declare option ver:module-version "2.0";
+(:===========================================================================:)
+
(:~
- : <p>The probe-index-point-value function retrieves from an index the domain
- : nodes associated by value equality with a given <strong>search tuple</strong>.
- : The search tuple consists of a number of <strong>search keys</strong>, where
- : each search key is either an atomic item or the empty sequence. The number
- : of search keys given must be equal to the number of keys declared for the
- : index. Since the number of keys differs from one index to another, this
- : function is variadic.</p>
- :
- : <p>The result of the function is either an error or the set of domain nodes for
- : which the following xquery expression returns true:</p>
- :
- : <pre>
- : $key1 eq $node/keyExpr1 and ... and $keyM eq $node/keyExprM
- : </pre>
- : where keyExpr<sub>i</sub> is the expression specified in the i-th keyspec
- : of the index.
- :
- : @param $name The QName of the index to probe
- : @param $key_i the search keys used to probe the index with. The i-th search
- : key corresponds to the i-th key expression in the index declaration.
- : @return The set of domain nodes that satisfy the search condition.
- :
- : @error zerr:ZDDY0021 if the index with name $name is not declared.
- : @error zerr:ZDDY0023 if the index with name $name does not exist.
+ : Gets the domain nodes from an index associated by value equality with a
+ : given <em>search tuple</em>.
+ : <p>
+ : The search tuple consists of a number of <em>search keys</em> where each
+ : search key is either an atomic item or the empty sequence. The number of
+ : search keys given must be equal to the number of keys declared for the
+ : index. Since the number of keys differs from one index to another, this
+ : function is variadic.
+ : @param $name The of the index to probe.
+ : @param $key_i A search key used to probe the index with. The i-th search key
+ : corresponds to the i-th key expression in the index declaration.
+ : @return The set of domain nodes for which the following XQuery expression
+ : returns true:
+ : <pre>
+ : $key1 eq $node/keyExpr1 and ... and $keyM eq $node/keyExprM
+ : </pre>
+ : where <i>keyExpr<sub>i</sub></i> is the expression specified in the i-th
+ : keyspec of the index.
+ : @error zerr:ZDDY0021 if the index is not declared.
+ : @error zerr:ZDDY0023 if the index does not exist.
: @error zerr:ZDDY0025 if the number of search keys passed as arguments is not
- : the same as the number of keys declared for the index.
- : @error err:XPTY0004 if a non-empty seach key is given, whose type does not match
- : the sequence type specified in the corresponding keyspec.
- :
+ : the same as the number of keys declared for the index.
+ : @error err:XPTY0004 if a non-empty seach key is given whose type does not
+ : match the sequence type specified in the corresponding keyspec.
:)
-declare %an:variadic function idml:probe-index-point-value(
- $name as xs:QName,
- $key_i as xs:anyAtomicType?) as node()* external;
-
+declare %an:variadic function
+idml:probe-index-point-value( $name as xs:QName, $key_i as xs:anyAtomicType? )
+ as node()* external;
(:~
- : <p>The probe-index-point-value-skip function is an extension of the
- : probe-index-point-value function. Additionally, it allows to skip index
- : items.</p>
+ : This is an extension of the <code>probe-index-point-value()</code> function
+ : in that it allows index items to be skipped.
:
- : @param $name The QName of the index to probe
+ : @param $name The name of the index to probe.
: @param $skip The number of index items to skip.
- : @param $key_i the search keys used to probe the index with. The i-th search
- : key corresponds to the i-th key expression in the index declaration.
+ : @param $key_i The search keys used to probe the index with. The i-th search
+ : key corresponds to the i-th key expression in the index declaration.
: @return The set of domain nodes that satisfy the search condition.
- :
- : @error zerr:ZDDY0021 if the index with name $name is not declared.
- : @error zerr:ZDDY0023 if the index with name $name does not exist.
+ : @error zerr:ZDDY0021 if the index is not declared.
+ : @error zerr:ZDDY0023 if the index does not exist.
: @error zerr:ZDDY0025 if the number of search keys passed as arguments is not
- : the same as the number of keys declared for the index.
- : @error err:XPTY0004 if a non-empty seach key is given, whose type does not match
- : the sequence type specified in the corresponding keyspec.
- :
+ : the same as the number of keys declared for the index.
+ : @error err:XPTY0004 if a non-empty seach key is given whose type does not
+ : match the sequence type specified in the corresponding keyspec.
:)
-declare %an:variadic function idml:probe-index-point-value-skip(
- $name as xs:QName,
- $skip as xs:integer,
- $key_i as xs:anyAtomicType?) as node()* external;
-
+declare %an:variadic function
+idml:probe-index-point-value-skip( $name as xs:QName,
+ $skip as xs:integer,
+ $key_i as xs:anyAtomicType? )
+ as node()* external;
(:~
- : <p>The probe-index-point-general function retrieves from an index the domain
- : nodes associated by general equality with a given <strong>search sequence
- : </strong>. The search sequence consists of an arbitrary number of <strong>
- : search keys</strong>, where each search key is an atomic item. The function
- : is supported by general indexes only. Its result is either an error or the
- : set of domain nodes for which the following xquery expression returns true:</p>
- : <pre>
- : $keys = $node/keyExpr
- : </pre>
- : where keyExpr is the expression specified in the keyspec of the index (remember
- : that for general indexes, there can be only one keyspec).
+ : Gets from an index the domain nodes associated by general equality with a
+ : given <em>search sequence </em>.
+ : The search sequence consists of an arbitrary number of <em>search keys</em>
+ : where each search key is an atomic item.
+ : The function is supported by general indexes only.
:
- : @param $name The QName of the index to probe.
+ : @param $name The name of the index to probe.
: @param $key The search sequence.
- : @return The set of domain nodes that satisfy the search condition.
- :
+ : @return The set of domain nodes for which the following XQuery expression
+ : returns true:
+ : <pre>
+ : $keys = $node/keyExpr
+ : </pre>
+ : where keyExpr is the expression specified in the keyspec of the index
+ : (remember that for general indexes, there can be only one keyspec).
+ : @error err:XPTY0004 if the search sequence contains a search key whose type
+ : does not match the sequence type specified in the keyspec of the index.
: @error zerr:ZDDY0021 if the index with name $name is not declared.
: @error zerr:ZDDY0023 if the index with name $name does not exist.
: @error zerr:ZDDY0029 if the index is not general.
- : @error err:XPTY0004 if the search sequence contains a search key, whose
- : type does not match the sequence type specified in the keyspec of
- : the index.
:)
-declare function idml:probe-index-point-general(
- $name as xs:QName,
- $key as xs:anyAtomicType*) as node()* external;
-
+declare function idml:probe-index-point-general( $name as xs:QName,
+ $key as xs:anyAtomicType* )
+ as node()* external;
(:~
- : <p>The probe-index-range-value function retrieves the domain nodes associated
- : by value order-comparison (operators le, lt, ge, gt) with a given <strong>search
- : box</strong>. The search box is specified as a number M of <strong>rangespecs
- : </strong>, where each rangespec consists of six values. The number M must be
- : greater than 0 and less than or equal to the number N of keyspecs found in the
- : index declaration. If M is less than N, then the "missing" rangespecs are
- : assumed to have the following value: [(), (), false, false, false, false].
- : As a result, we can assume that M is equal to N (Remember that for general
- : indexes, there can be only one IndexKeySpec, and as a result, for general
- : indexes, M = N = 1). Since the number of keys differs from one index to
- : another, this function is variadic.</p>
- :
- : <p>The i<sup>th</sup> rangespec corresponds to the i<sup>th</sup> keyspec, and
- : specifies a search condition on the key values that are produced by evaluating
- : that keyspec for every domain node. Specifically, we define the i<sup>th</sup>
- : <strong>rangespec result</strong> as the set of domain nodes for which the
- : following xquery expression returns true:</p>
- :
- :<pre>
- : if ($haveLowerBound-i and $haveUpperBound-i) then
- : $lowerBound-i lop $node/keyExpr-i and $node/keyExpr-i uop $upperBound-i
- : else if ($haveLowerBound-i) then
- : $lowerBound-i lop $node/keyExpr-i
- : else if ($haveUpperBound-i) then
- : $node/keyExpr-i uop $upperBound-i
- : else
- : fn:true()
- :</pre>
- :
- : <p>where keyExpr-i is the expression specified by the i<sup>th</sup> keyspec
- : of the index, lop is either the le or the lt operator depending on whether
- : $lowerBoundsIncluded-i is true or false, and uop is either the le or the
- : lt operator depending on whether $upperBoundsIncluded-i is true or false.</p>
- :
- : <p>The result of the probe-index-range-value function is either an error,
- : or the intersection of all the rangespec results.</p>
- :
- : @param $name The QName of the index to probe
+ : Gets the domain nodes associated by value order-comparison (operators
+ : <code>le</code>, <code>lt</code>, <code>ge</code>, <code>gt</code>) with a
+ : given <em>search box</em>.
+ : <p>
+ : The search box is specified as a number <i>M</i> of <em>rangespecs</em>
+ : where each rangespec consists of six values.
+ : The number <i>M</i> must be greater than 0 and less than or equal to the
+ : number <i>N</i> of keyspecs found in the index declaration.
+ : If <i>M</i> < <i>N</i>, then the "missing" rangespecs are assumed to have
+ : the following value: [(), (), false, false, false, false].
+ : As a result, we can assume that <i>M</i> = <i>N</i>.
+ : Remember that for general indexes, there can be only one IndexKeySpec and,
+ : as a result for general indexes, <i>M</i> = <i>N</i> = 1.
+ : Since the number of keys differs from one index to another,
+ : this function is variadic.
+ : <p>
+ : The i<sup>th</sup> rangespec corresponds to the i<sup>th</sup> keyspec, and
+ : specifies a search condition on the key values that are produced by
+ : evaluating that keyspec for every domain node.
+ : Specifically, we define the i<sup>th</sup> <em>rangespec result</em> as the
+ : set of domain nodes for which the following XQuery expression returns
+ : true:
+ : <pre>
+ : if ( $haveLowerBound-i and $haveUpperBound-i ) then
+ : $lowerBound-i lop $node/keyExpr-i and $node/keyExpr-i uop $upperBound-i
+ : else if ( $haveLowerBound-i ) then
+ : $lowerBound-i lop $node/keyExpr-i
+ : else if ( $haveUpperBound-i ) then
+ : $node/keyExpr-i uop $upperBound-i
+ : else
+ : fn:true()
+ : </pre>
+ : where <i>keyExpr-i</i> is the expression specified by the i<sup>th</sup>
+ : keyspec of the index, <i>lop</i> is either the <code>le</code> or the
+ : <code>lt</code> operator depending on whether
+ : <code>$lowerBoundsIncluded-i</code> is true or false, and <i>uop</i> is
+ : either the <i>le</i> or the <i>lt</i> operator depending on whether
+ : <code>$upperBoundsIncluded-i</code> is true or false.
+ :
+ : @param $name The name of the index to probe.
: @param $lowerBound-i The lower bound in a range of key values.
: @param $upperBound-i The upper bound in a range of key values.
- : @param $haveLowerBound-i If false, then there is no lower bound, or
- : equivalently, the lower bound is -INFINITY. Otherwise, the lower
- : bound is the one given by the lowerBound-i value.
- : @param $haveUpperBound-i If false, then there is no upper bound, or
- : equivalently, the upper bound is +INFINITY. Otherwise, the upper
- : bound is the one given by the upperBound-i value.
- : @param $lowerBoundIncluded-i If false, then the range is open from below,
- : i.e., the lowerBound-i value is not considered part of the
- : range. Otherwise, the range is closed from below, i.e., the
- : lowerBound-i value is part of the range.
- : @param $upperBoundIncluded-i If false, then the range is open from above,
- : i.e., the upperBound-i value is not considered part of the
- : range. Otherwise, the range is closed from above, i.e., the
- : upperBound-i value is part of the range.
- : @return The set of domain nodes that satisfy the search condition.
- :
- : @error zerr:ZDDY0021 if the index with name $name is not declared.
- : @error zerr:ZDDY0023 if the index with name $name does not exist.
- : @error zerr:ZDDY0025 if the number of rangespecs passed as arguments
- : is zero or greater than the number of keys declared for the index.
+ : @param $haveLowerBound-i If false, then there is no lower bound, or
+ : equivalently, the lower bound is -INFINITY. Otherwise, the lower bound is
+ : the one given by the <code>$lowerBound-i</code> value.
+ : @param $haveUpperBound-i If false, then there is no upper bound, or
+ : equivalently, the upper bound is +INFINITY. Otherwise, the upper bound is
+ : the one given by the <code>$upperBound-i</code> value.
+ : @param $lowerBoundIncluded-i If false, then the range is open from below,
+ : i.e., the <code>$lowerBound-i</code> value is not considered part of the
+ : range. Otherwise, the range is closed from below, i.e., the
+ : <code>$lowerBound-i</code> value is part of the range.
+ : @param $upperBoundIncluded-i If false, then the range is open from above,
+ : i.e., the <code>$upperBound-i</code> value is not considered part of the
+ : range. Otherwise, the range is closed from above, i.e., the
+ : <code>$upperBound-i</code> value is part of the range.
+ : @return The intersection of all the rangespec results.
+ : @error zerr:ZDDY0021 if the index is not declared.
+ : @error zerr:ZDDY0023 if the index does not exist.
+ : @error zerr:ZDDY0025 if the number of rangespecs passed as arguments is zero
+ : or greater than the number of keys declared for the index.
: @error zerr:ZDDY0026 if the index is not a range index.
- : @error err:XPTY0004 if $haveLowerBound-i is true and $lowerBound-i is an
- : atomic item whose type does not match the sequence type specified
- : by the i<sup>th</sup> keyspec, or $haveUpperBound-i is true and
- : $upperBound-i is an atomic item whose type does not match the
- : sequence type specified by the i<sup>th</sup> keyspec.
- : @error zerr:ZDDY0034 if (a) the index is general (in which case there is
- : only one rangespac), (b) the index is untyped, (c) there is both a
- : lower and an upper bound, and (d) if T1 and T2 are the types of the
- : lower and upper bound, neither T1 is a subtype of T2 nor T2 is a
- : subtype of T1.
+ : @error err:XPTY0004 if <code>$haveLowerBound-i</code> is true and
+ : <code>$lowerBound-i</code> is an atomic item whose type does not match the
+ : sequence type specified by the i<sup>th</sup> keyspec, or
+ : <code>$haveUpperBound-i</code> is true and <code>$upperBound-i</code> is an
+ : atomic item whose type does not match the sequence type specified by the
+ : i<sup>th</sup> keyspec.
+ : @error zerr:ZDDY0034 if (a) the index is general (in which case there is
+ : only one rangespac), (b) the index is untyped, (c) there is both a lower and
+ : an upper bound, and (d) if T1 and T2 are the types of the lower and upper
+ : bound, neither T1 is a subtype of T2 nor T2 is a subtype of T1.
:)
-declare %an:variadic function idml:probe-index-range-value(
- $name as xs:QName,
- $lowerBound-i as xs:anyAtomicType?,
- $upperBound-i as xs:anyAtomicType?,
- $haveLowerBound-i as xs:boolean,
- $haveUpperBound-i as xs:boolean,
- $lowerBoundIncluded-i as xs:boolean,
- $upperBoundIncluded-i as xs:boolean) as node()* external;
-
+declare %an:variadic function
+idml:probe-index-range-value( $name as xs:QName,
+ $lowerBound-i as xs:anyAtomicType?,
+ $upperBound-i as xs:anyAtomicType?,
+ $haveLowerBound-i as xs:boolean,
+ $haveUpperBound-i as xs:boolean,
+ $lowerBoundIncluded-i as xs:boolean,
+ $upperBoundIncluded-i as xs:boolean )
+ as node()* external;
(:~
- : <p>The probe-index-range-value-skip function is an extension of the
- : probe-index-range-value function. Additionally, it allows to skip index
- : items.</p>
+ : This function is an extension of the <code>probe-index-range-value()</code>
+ : function that index items to be skipped.
:
: @param $name The QName of the index to probe
: @param $skip The number of index items to skip.
: @param $lowerBound-i The lower bound in a range of key values.
: @param $upperBound-i The upper bound in a range of key values.
- : @param $haveLowerBound-i If false, then there is no lower bound, or
- : equivalently, the lower bound is -INFINITY. Otherwise, the lower
- : bound is the one given by the lowerBound-i value.
- : @param $haveUpperBound-i If false, then there is no upper bound, or
- : equivalently, the upper bound is +INFINITY. Otherwise, the upper
- : bound is the one given by the upperBound-i value.
- : @param $lowerBoundIncluded-i If false, then the range is open from below,
- : i.e., the lowerBound-i value is not considered part of the
- : range. Otherwise, the range is closed from below, i.e., the
- : lowerBound-i value is part of the range.
- : @param $upperBoundIncluded-i If false, then the range is open from above,
- : i.e., the upperBound-i value is not considered part of the
- : range. Otherwise, the range is closed from above, i.e., the
- : upperBound-i value is part of the range.
+ : @param $haveLowerBound-i If false, then there is no lower bound, or
+ : equivalently, the lower bound is -INFINITY. Otherwise, the lower bound is
+ : the one given by the <code>$lowerBound-i</code> value.
+ : @param $haveUpperBound-i If false, then there is no upper bound, or
+ : equivalently, the upper bound is +INFINITY. Otherwise, the upper bound is
+ : the one given by the <code>$upperBound-i</code> value.
+ : @param $lowerBoundIncluded-i If false, then the range is open from below,
+ : i.e., the lowerBound-i value is not considered part of the range. Otherwise,
+ : the range is closed from below, i.e., the <code>$lowerBound-i</code> value
+ : is part of the range.
+ : @param $upperBoundIncluded-i If false, then the range is open from above,
+ : i.e., the upperBound-i value is not considered part of the range. Otherwise,
+ : the range is closed from above, i.e., the <code>$upperBound-i</code> value
+ : is part of the range.
: @return The set of domain nodes that satisfy the search condition.
- :
: @error zerr:ZDDY0021 if the index with name $name is not declared.
: @error zerr:ZDDY0023 if the index with name $name does not exist.
- : @error zerr:ZDDY0025 if the number of rangespecs passed as arguments
- : is zero or greater than the number of keys declared for the index.
+ : @error zerr:ZDDY0025 if the number of rangespecs passed as arguments is zero
+ : or greater than the number of keys declared for the index.
: @error zerr:ZDDY0026 if the index is not a range index.
- : @error err:XPTY0004 if $haveLowerBound-i is true and $lowerBound-i is an
- : atomic item whose type does not match the sequence type specified
- : by the i<sup>th</sup> keyspec, or $haveUpperBound-i is true and
- : $upperBound-i is an atomic item whose type does not match the
- : sequence type specified by the i<sup>th</sup> keyspec.
- : @error zerr:ZDDY0034 if (a) the index is general (in which case there is
- : only one rangespac), (b) the index is untyped, (c) there is both a
- : lower and an upper bound, and (d) if T1 and T2 are the types of the
- : lower and upper bound, neither T1 is a subtype of T2 nor T2 is a
- : subtype of T1.
+ : @error err:XPTY0004 if <code>$haveLowerBound-i</code> is true and
+ : <code>$lowerBound-i</code> is an atomic item whose type does not match the
+ : sequence type specified by the i<sup>th</sup> keyspec, or
+ : <code>$haveUpperBound-i</code> is true and <code>$upperBound-i</code> is an
+ : atomic item whose type does not match the sequence type specified by the
+ : i<sup>th</sup> keyspec.
+ : @error zerr:ZDDY0034 if (a) the index is general (in which case there is
+ : only one rangespac), (b) the index is untyped, (c) there is both a lower and
+ : an upper bound, and (d) if T1 and T2 are the types of the lower and upper
+ : bound, neither T1 is a subtype of T2 nor T2 is a subtype of T1.
:)
-declare %an:variadic function idml:probe-index-range-value-skip(
- $name as xs:QName,
- $skip as xs:integer,
- $lowerBound-i as xs:anyAtomicType?,
- $upperBound-i as xs:anyAtomicType?,
- $haveLowerBound-i as xs:boolean,
- $haveUpperBound-i as xs:boolean,
- $lowerBoundIncluded-i as xs:boolean,
- $upperBoundIncluded-i as xs:boolean) as node()* external;
-
+declare %an:variadic function
+idml:probe-index-range-value-skip( $name as xs:QName,
+ $skip as xs:integer,
+ $lowerBound-i as xs:anyAtomicType?,
+ $upperBound-i as xs:anyAtomicType?,
+ $haveLowerBound-i as xs:boolean,
+ $haveUpperBound-i as xs:boolean,
+ $lowerBoundIncluded-i as xs:boolean,
+ $upperBoundIncluded-i as xs:boolean )
+ as node()* external;
(:~
- : <p>The probe-index-range-general function retrieves the domain nodes associated
- : by general order-comparison (operators <=, <, >=, >) with one or two
- : <strong>search sequences</strong>. Each search sequence consists of an
- : arbitrary number of <strong>search keys</strong>, where each search key is
- : an atomic item. This method is supported by general range indexes only. Its
- : result is either an error or the set of domain nodes for which the following
- : xquery expression returns true:</p>
- :
- : <pre>
- : if ($haveLowerBound and $haveUpperBound) then
- : $lowerBoundKeys lop $node/keyExpr and $node/keyExpr uop $upperBoundKeys
- : else if ($haveLowerBound) then
- : $lowerBoundKeys lop $node/keyExpr
- : else if ($haveUpperBound) then
- : $node/keyExpr uop $upperBoundKeys
- : else
- : fn:true()
- : </pre>
- :
- : <p>where keyExpr is the expression specified in the keyspec of the index,
- : lop is either the <= or the < operator depending on whether
- : $lowerBoundsIncluded is true or false, and uop is either the <= or the
- : < operator depending on whether $upperBoundsIncluded is true or false</p>.
- :
- : @param $name The QName of the index to probe.
+ : Gets the domain nodes associated by general order-comparison (operators
+ : <code><=</code>, <code><</code>, <code>>=</code>,
+ : <code>></code>) with one or two <em>search sequences</em>.
+ : <p>
+ : Each search sequence consists of an arbitrary number of
+ : <em>search keys</em> where each search key is an atomic item.
+ : This method is supported by general range indexes only.
+ : Its result is either an error or the set of domain nodes for which the
+ : following XQuery expression returns true:
+ : <pre>
+ : if ( $haveLowerBound and $haveUpperBound ) then
+ : $lowerBoundKeys lop $node/keyExpr and $node/keyExpr uop $upperBoundKeys
+ : else if ( $haveLowerBound ) then
+ : $lowerBoundKeys lop $node/keyExpr
+ : else if ( $haveUpperBound ) then
+ : $node/keyExpr uop $upperBoundKeys
+ : else
+ : fn:true()
+ : </pre>
+ : where <i>keyExpr</i> is the expression specified in the keyspec of the
+ : index, <i>lop</i> is either the <code><=</code> or the <code><</code>
+ : operator depending on whether <code>$lowerBoundsIncluded</code> is true or
+ : false, and <i>uop</i> is either the <code><=</code> or the
+ : <code><</code> operator depending on whether
+ : <code>$upperBoundsIncluded</code> is true or false.
+ :
+ : @param $name The of the index to probe.
: @param $lowerBound The lower bound search sequence.
: @param $upperBound The upper bound search sequence.
: @param $haveLowerBound Whether a lower bound search sequence exists or not.
: @param $haveUpperBound Whether an upper bound search sequence exists or not.
- : @param $lowerBoundIncluded Whether to use the <= or the < operator when
- : comparing a search key from $lowerBound with an index key.
- : @param $upperBoundIncluded Whether to use the <= or the < operator when
- : comparing an index key with a search key from $upperBound.
- : @return The set of domain nodes that satisfy the search condition
- :
- : @error zerr:ZDDY0021 if the index with name $name is not declared.
- : @error zerr:ZDDY0023 if the index with name $name does not exist.
+ : @param $lowerBoundIncluded Whether to use the <code><=</code> or the
+ : <code><</code> operator when comparing a search key from
+ : <code>$lowerBound</code> with an index key.
+ : @param $upperBoundIncluded Whether to use the <code><=</code> or the
+ : <code><</code> operator when comparing an index key with a search key
+ : from <code>$upperBound</code>.
+ : @return The set of domain nodes that satisfy the search condition.
+ : @error zerr:ZDDY0021 if the index was not declared.
+ : @error zerr:ZDDY0023 if the index does not exist.
: @error zerr:ZDDY0030 if the index is not a general range index.
- : @error err:XPTY0004 if $haveLowerBound is true and $lowerBoundKeys constains
- : an atomic item whose type does not match the sequence type specified by the
- : index keyspec, or $haveUpperBound is true and $upperBoundKeys contains an
- : atomic item whose type does not match the sequence type specified by the
- : index keyspec.
- :)
-declare function idml:probe-index-range-general(
- $name as xs:QName,
- $lowerBound as xs:anyAtomicType*,
- $upperBound as xs:anyAtomicType*,
- $haveLowerBound as xs:boolean,
- $haveUpperBound as xs:boolean,
- $lowerBoundIncluded as xs:boolean,
- $upperBoundIncluded as xs:boolean) as node()* external;
-
-
-(:~
- : The refresh-index function is an updating function which updates
- : the index with the given name.
- : Note that if the maintenance property of the index is automatic,
- : this function is a NOP.
- :
- : @param $name The QName of the index to refresh.
- : @return The result of the function is an empty XDM instance and a
- : pending update list which, when applied, refreshes the contents
- : of the index.that consists of a
- :
- : @error zerr:ZDDY0021 if the index with name $name is not declared.
- : @error zerr:ZDDY0023 if the index with name $name does not exist.
- :)
-declare updating function idml:refresh-index($name as xs:QName) external;
-
-(:~
- : The keys function returns a sequence of all keys contained in the
- : index with the given name. Each element has the following structure:
- : <pre class="brush: xml;">
- : <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml">
+ : @error err:XPTY0004 if <code>$haveLowerBound</code> is true and
+ : <code>$lowerBoundKeys</code> contains an atomic item whose type does not
+ : match the sequence type specified by the index keyspec, or
+ : <code>$haveUpperBound</code> is true and <code>$upperBoundKeys</code>
+ : contains an atomic item whose type does not match the sequence type
+ : specified by the index keyspec.
+ :)
+declare function
+idml:probe-index-range-general( $name as xs:QName,
+ $lowerBound as xs:anyAtomicType*,
+ $upperBound as xs:anyAtomicType*,
+ $haveLowerBound as xs:boolean,
+ $haveUpperBound as xs:boolean,
+ $lowerBoundIncluded as xs:boolean,
+ $upperBoundIncluded as xs:boolean )
+ as node()* external;
+
+(:~
+ : Updates the index with the given name. Note that if the maintenance
+ : property of the index is automatic, this function does nothing.
+ :
+ : @param $name The name of the index to refresh.
+ : @return An empty XDM instance and a pending update list that, when applied,
+ : refreshes the contents of the index.
+ : @error zerr:ZDDY0021 if the index is not declared.
+ : @error zerr:ZDDY0023 if the index does not exist.
+ :)
+declare updating function idml:refresh-index( $name as xs:QName )
+ external;
+
+(:~
+ : Gets a sequence of all keys contained in the index with the given name.
+ : Each element has the following structure:
+ : <pre class="brush: xml;">
+ : <key xmlns="http://zorba.io/modules/store/static/indexes/dml">
: <attribute value="key1_value"/>
: <attribute value="key2_value"/>
: <attribute value="key3_value"/>
: </key>
- : </pre>
- :
- : @param $name The QName of the index
- : @return The result of the function is sequence of elements each representing
- : one key contained in the index.
- :
+ : </pre>
: Note that the order of the attribute elements reflects the order of
: the keys in the index specification. Also note that the values in
: these attributes have the type that is declared in the corresponding
- : index specification.
+ : index specification.
:
- : @error zerr:ZDDY0021 if the index with name $name is not declared.
- : @error zerr:ZDDY0023 if the index with name $name does not exist.
+ : @param $name The name of the index to get the keys for.
+ : @return A sequence of elements comprising the keys in the index.
+ : @error zerr:ZDDY0021 if the index was not declared.
+ : @error zerr:ZDDY0023 if the index does not exist.
:)
-declare function idml:keys($name as xs:QName) as node()* external;
+declare function idml:keys( $name as xs:QName )
+ as node()* external;
+
+(:===========================================================================:)
+
+(: vim:set et sw=2 ts=2: :)
=== renamed directory 'modules/com/zorba-xquery/www/modules/store/static/integrity_constraints' => 'modules/store/static/integrity-constraints'
=== modified file 'modules/store/static/integrity-constraints/ddl.xq'
--- modules/com/zorba-xquery/www/modules/store/static/integrity_constraints/ddl.xq 2013-09-26 23:15:11 +0000
+++ modules/store/static/integrity-constraints/ddl.xq 2013-10-09 23:30:21 +0000
@@ -18,7 +18,7 @@
(:~
: This module defines a set of functions to manage integrity constraints
- : which are declared in the prolog of a module.
+ : that are declared in the prolog of a module.
: For example, it provides functions to activate or deactivate integrity constraints.
:
: <p>This module is part of <a href="../zorba/xqddf.html">Zorba's XQuery Data
@@ -29,11 +29,11 @@
:
: @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>
: @see <a href="../zorba/xqddf.html">XQuery Data Definition Facility</a>
- : @see http://www.zorba-xquery.com/modules/store/static/collections/dml
- : @see http://www.zorba-xquery.com/modules/store/static/collections/ddl
- : @see http://www.zorba-xquery.com/modules/store/static/indexes/ddl
- : @see http://www.zorba-xquery.com/modules/store/static/indexes/dml
- : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml
+ : @see http://zorba.io/modules/store/static/collections/dml
+ : @see http://zorba.io/modules/store/static/collections/ddl
+ : @see http://zorba.io/modules/store/static/indexes/ddl
+ : @see http://zorba.io/modules/store/static/indexes/dml
+ : @see http://zorba.io/modules/store/static/integrity_constraints/dml
: @see http://zorba.io/errors
:
: @author Nicolae Brinza, Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis
@@ -41,82 +41,76 @@
: @project Zorba/Data Store/Integrity Constraints/Static Data Definition
:
:)
-module namespace icddl = "http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl";;
+module namespace icddl = "http://zorba.io/modules/store/static/integrity_constraints/ddl";;
declare namespace zerr = "http://zorba.io/errors";;
declare namespace ver = "http://zorba.io/options/versioning";;
declare option ver:module-version "2.0";
+(:===========================================================================:)
+
(:~
- : The function returns true if an integrity constraints with the given
- : QName is activated.
- :
- : @param $name The QName of the constraint that is being checked.
- :
- : @return true if the integrity constraint has is activated and false otherwise.
+ : Activates an integrity constraint in the dynamic context.
+ :
+ : @param $name The name of the integrity constraint to activate.
+ : @return An empty XDM instance and a pending update list that consists of a
+ : <code>upd:activateIntegrityConstraint($name)</code> update primitive.
+ : @error zerr:ZDDY0031 if the integrity constraint does not exist in the
+ : static context.
:)
-declare function icddl:is-activated-integrity-constraint(
- $name as xs:QName) as xs:boolean external;
+declare updating function icddl:activate( $name as xs:QName )
+ external;
(:~
- : The function returns a sequence of QNames representing the integrity
- : constraints that are activated. The sequence will be empty if there are
- : none.
- :
+ : Gets the integrity constraints that are activated, if any.
: @return A sequence of QNames, one for each activated integrity constraint,
- : or an empty sequence.
- :)
-declare function icddl:activated-integrity-constraints() as xs:QName* external;
-
-
-(:~
- : The activate function is an updating function
- : that activates the integrity constraint identified by the expanded QName
- : $name in the dynamic context.
- :
- : @param $name The QName of the integrity constraint to activate.
- : @return The result of the function is an empty XDM instance and a
- : pending update list that consists of a
- : upd:activateIntegrityConstraint($name) update primitive.
- :
- : @error zerr:ZDDY0031 if available integrity constraints in the static context
- : does not provide a mapping for the expanded QName $name.
- :)
-declare updating function icddl:activate(
- $name as xs:QName) external;
-
-(:~
- : The deactivate function is an updating function that
- : deactivates the integrity constraint with the given QName.
- :
- : @param $name The QName of the integrity constraint to deactivate.
- :
- : @return The result of the function is an empty XDM instance and a
- : pending update list which, once applied, deactivates the
- : integrity constraint.
- :
- : @error zerr:ZDDY0032 if the integrity constraints is not declared in the
- : the static context.
- : @error zerr:ZDDY0032 if the given integrity constraints is not activated.
- :)
-declare updating function icddl:deactivate(
- $name as xs:QName) external;
-
-(:~
- : The function returns a sequence of QNames representing the integrity
- : constraints that have been declared in the prolog of the static context.
- :
- : @return A sequence of QNames, one for each created integrity constraints, or an emtpy sequence.
- :)
-declare function icddl:declared-integrity-constraints() as xs:QName* external;
-
-(:~
- : The function returns true if a integrity constraints with the given
- : QName is declared in the prolog of the static context.
- :
- : @param $name The QName of the constraint that is being checked.
- :
- : @return true if the constraint is declared and false otherwise.
- :)
-declare function icddl:is-declared-integrity-constraint(
- $name as xs:QName) as xs:boolean external;
+ : or an empty sequence if none.
+ :)
+declare function icddl:activated-integrity-constraints()
+ as xs:QName* external;
+
+(:~
+ : Deactivates the integrity constraint.
+ :
+ : @param $name The name of the integrity constraint to deactivate.
+ : @return An empty XDM instance and a pending update list that, once applied,
+ : deactivates the integrity constraint.
+ : @error zerr:ZDDY0032 if the integrity constraint was not declared in the the
+ : static context.
+ : @error zerr:ZDDY0032 if the integrity constraints is not activated.
+ :)
+declare updating function icddl:deactivate( $name as xs:QName )
+ external;
+
+(:~
+ : Gets whether an integrity constraints is activated.
+ :
+ : @param $name The name of the constraint to check.
+ : @return true if the integrity constraint is activated; false otherwise.
+ :)
+declare function icddl:is-activated-integrity-constraint( $name as xs:QName )
+ as xs:boolean external;
+
+(:~
+ : Gets whether an integrity constraint is declared in the prolog of the static
+ : context.
+ :
+ : @param $name The name of the constraint to check.
+ : @return true if the constraint is declared; false otherwise.
+ :)
+declare function icddl:is-declared-integrity-constraint( $name as xs:QName )
+ as xs:boolean external;
+
+(:~
+ : Gets the sequence of QNames representing the integrity constraints that have
+ : been declared in the prolog of the static context.
+ :
+ : @return A sequence of QNames, one for each created integrity constraints, or
+ : an emtpy sequence if none.
+ :)
+declare function icddl:declared-integrity-constraints()
+ as xs:QName* external;
+
+(:===========================================================================:)
+
+(: vim:set et sw=2 ts=2: :)
=== modified file 'modules/store/static/integrity-constraints/dml.xq'
--- modules/com/zorba-xquery/www/modules/store/static/integrity_constraints/dml.xq 2013-09-26 23:15:11 +0000
+++ modules/store/static/integrity-constraints/dml.xq 2013-10-09 23:30:21 +0000
@@ -1,7 +1,7 @@
xquery version "3.0";
(:
- : Copyright 2006-2009 The FLWOR Foundation.
+ : Copyright 2006-2013 The FLWOR Foundation.
:
: Licensed under the Apache License, Version 2.0 (the "License");
: you may not use this file except in compliance with the License.
@@ -17,44 +17,49 @@
:)
(:~
- : This module defines a function to check if an integrity constraint is satisfied.
+ : This module defines a function to check if an integrity constraint is
+ : satisfied.
: The integrity constraint needs to be declared in the prolog of a module.
- :
- : <p>This module is part of <a href="../zorba/xqddf.html">Zorba's XQuery Data
- : Definition Facility</a>. All the integrity constraints managed by this module
- : have to be pre-declared in the prolog of a module. Please refer to the
+ : <p>
+ : This module is part of
+ : <a href="../zorba/xqddf.html">Zorba's XQuery Data Definition Facility</a>.
+ : All the integrity constraints managed by this module have to be pre-declared
+ : in the prolog of a module.
+ : Please refer to the
: <a href="../zorba/data_lifecycle.html">general documentation</a>
- : for more information and examples.</p>
+ : for more information and examples.
:
: @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>
: @see <a href="../zorba/xqddf.html">XQuery Data Definition Facility</a>
- : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml
- : @see http://www.zorba-xquery.com/modules/store/static/collections/dml
- : @see http://www.zorba-xquery.com/modules/store/static/collections/ddl
- : @see http://www.zorba-xquery.com/modules/store/static/indexes/ddl
- : @see http://www.zorba-xquery.com/modules/store/static/indexes/dml
+ : @see http://zorba.io/modules/store/static/integrity_constraints/dml
+ : @see http://zorba.io/modules/store/static/collections/dml
+ : @see http://zorba.io/modules/store/static/collections/ddl
+ : @see http://zorba.io/modules/store/static/indexes/ddl
+ : @see http://zorba.io/modules/store/static/indexes/dml
: @see http://zorba.io/errors
:
: @author Nicolae Brinza, Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis
: @project Zorba/Data Store/Integrity Constraints/Static Data Manipulation
- :
:)
-module namespace icdml = "http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml";;
+module namespace icdml = "http://zorba.io/modules/store/static/integrity_constraints/dml";;
declare namespace zerr = "http://zorba.io/errors";;
declare namespace ver = "http://zorba.io/options/versioning";;
declare option ver:module-version "2.0";
+(:===========================================================================:)
+
(:~
- : The check-integrity-constraint function checks if the constraints
- : specified by the expanded QName $name is valid in the database.
- :
- : @param $name The QName of the integrity constraint to check.
- :
- : @return true if the constraints are valid in the database, false otherwise.
- :
- : @error zerr:ZDDY0031 if the integrity constraint identified by $name is not declared.
- : @error zerr:ZDDY0032 if the integrity constraint identified by $name is not available.
+ : Checks if the specified constraints are valid in the database.
+ :
+ : @param $name The name of the integrity constraint to check.
+ : @return true if the constraints are valid; false otherwise.
+ : @error zerr:ZDDY0031 if the integrity constraint is not declared.
+ : @error zerr:ZDDY0032 if the integrity constraint is not available.
:)
-declare function icdml:check-integrity-constraint(
- $name as xs:QName) as xs:boolean external;
+declare function icdml:check-integrity-constraint( $name as xs:QName )
+ as xs:boolean external;
+
+(:===========================================================================:)
+
+(: vim:set et sw=2 ts=2: :)
=== modified file 'src/compiler/expression/expr_clone.cpp'
--- src/compiler/expression/expr_clone.cpp 2013-07-02 21:32:23 +0000
+++ src/compiler/expression/expr_clone.cpp 2013-10-09 23:30:21 +0000
@@ -317,7 +317,7 @@
{
const fo_expr* e = static_cast<const fo_expr*>(this);
- if (e->get_func()->getKind() == FunctionConsts::STATIC_COLLECTIONS_DML_COLLECTION_1)
+ if (e->get_func()->getKind() == FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_COLLECTION_1)
{
expr::subst_iter_t i = subst.find(this);
=== modified file 'src/compiler/rewriter/rules/hoist_rules.cpp'
--- src/compiler/rewriter/rules/hoist_rules.cpp 2013-05-30 22:25:30 +0000
+++ src/compiler/rewriter/rules/hoist_rules.cpp 2013-10-09 23:30:21 +0000
@@ -881,12 +881,12 @@
if (fkind == FunctionConsts::OP_CONCATENATE_N && fo->num_args() == 0)
return true;
- if (fkind == FunctionConsts::STATIC_COLLECTIONS_DML_COLLECTION_1 ||
- fkind == FunctionConsts::STATIC_COLLECTIONS_DML_COLLECTION_2 ||
- fkind == FunctionConsts::STATIC_COLLECTIONS_DML_COLLECTION_3 ||
- fkind == FunctionConsts::DYNAMIC_COLLECTIONS_DML_COLLECTION_1 ||
- fkind == FunctionConsts::DYNAMIC_COLLECTIONS_DML_COLLECTION_2 ||
- fkind == FunctionConsts::DYNAMIC_COLLECTIONS_DML_COLLECTION_3)
+ if (fkind == FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_COLLECTION_1 ||
+ fkind == FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_COLLECTION_2 ||
+ fkind == FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_COLLECTION_3 ||
+ fkind == FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_COLLECTION_1 ||
+ fkind == FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_COLLECTION_2 ||
+ fkind == FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_COLLECTION_3)
return true;
}
=== modified file 'src/compiler/rewriter/tools/expr_tools.cpp'
--- src/compiler/rewriter/tools/expr_tools.cpp 2013-08-16 13:00:06 +0000
+++ src/compiler/rewriter/tools/expr_tools.cpp 2013-10-09 23:30:21 +0000
@@ -340,7 +340,7 @@
if (i < numArgs)
{
- if (func->getKind() == FunctionConsts::STATIC_COLLECTIONS_DML_COLLECTION_1)
+ if (func->getKind() == FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_COLLECTION_1)
{
const store::Item* collName1 = ve->get_arg(0)->getQName();
const store::Item* collName2 = qe->get_arg(0)->getQName();
=== modified file 'src/compiler/translator/translator.cpp'
--- src/compiler/translator/translator.cpp 2013-10-03 04:14:17 +0000
+++ src/compiler/translator/translator.cpp 2013-10-09 23:30:21 +0000
@@ -5675,7 +5675,7 @@
qnameStrExpr);
// dc:collection(xs:QName("example:coll1"))
- function* fn_collection = BUILTIN_FUNC(STATIC_COLLECTIONS_DML_COLLECTION_1);
+ function* fn_collection = BUILTIN_FUNC(ZORBA_STORE_STATIC_COLLECTIONS_DML_COLLECTION_1);
ZORBA_ASSERT(fn_collection != NULL);
std::vector<expr*> argColl;
argColl.push_back(qnameExpr);
@@ -5755,7 +5755,7 @@
uriStrExpr, qnameStrExpr);
// dc:collection(xs:QName("org:employees"))
- function* fn_collection = BUILTIN_FUNC(STATIC_COLLECTIONS_DML_COLLECTION_1);
+ function* fn_collection = BUILTIN_FUNC(ZORBA_STORE_STATIC_COLLECTIONS_DML_COLLECTION_1);
ZORBA_ASSERT(fn_collection != NULL);
std::vector<expr*> argColl;
argColl.push_back(qnameExpr);
@@ -5844,7 +5844,7 @@
qnameStrExpr);
// dc:collection(xs:QName("org:transactions"))
- function* fn_collection = BUILTIN_FUNC(STATIC_COLLECTIONS_DML_COLLECTION_1);
+ function* fn_collection = BUILTIN_FUNC(ZORBA_STORE_STATIC_COLLECTIONS_DML_COLLECTION_1);
ZORBA_ASSERT(fn_collection != NULL);
std::vector<expr*> argColl;
argColl.push_back(qnameExpr);
@@ -5921,7 +5921,7 @@
toQnameStrExpr);
// dc:collection(xs:QName("org:employees"))
- function* toFnCollection = BUILTIN_FUNC(STATIC_COLLECTIONS_DML_COLLECTION_1);
+ function* toFnCollection = BUILTIN_FUNC(ZORBA_STORE_STATIC_COLLECTIONS_DML_COLLECTION_1);
ZORBA_ASSERT(toFnCollection != NULL);
std::vector<expr*> toArgColl;
toArgColl.push_back(toQnameExpr);
@@ -5969,7 +5969,7 @@
fromQnameStrExpr);
// dc:collection(xs:QName("org:transactions"))
- function* fromFnCollection = BUILTIN_FUNC(STATIC_COLLECTIONS_DML_COLLECTION_1);
+ function* fromFnCollection = BUILTIN_FUNC(ZORBA_STORE_STATIC_COLLECTIONS_DML_COLLECTION_1);
ZORBA_ASSERT(fromFnCollection != NULL);
std::vector<expr*> fromArgColl;
fromArgColl.push_back(fromQnameExpr);
=== modified file 'src/compiler/xqddf/value_index.cpp'
--- src/compiler/xqddf/value_index.cpp 2013-09-11 10:38:42 +0000
+++ src/compiler/xqddf/value_index.cpp 2013-10-09 23:30:21 +0000
@@ -403,7 +403,7 @@
if (func->isSource())
{
- if (func->getKind() == FunctionConsts::STATIC_COLLECTIONS_DML_COLLECTION_1)
+ if (func->getKind() == FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_COLLECTION_1)
{
const expr* argExpr = foExpr->get_arg(0);
=== modified file 'src/context/static_context.cpp'
--- src/context/static_context.cpp 2013-10-09 02:52:32 +0000
+++ src/context/static_context.cpp 2013-10-09 23:30:21 +0000
@@ -376,39 +376,39 @@
const char*
static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_FN_NS =
-"http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl";;
+"http://zorba.io/modules/store/dynamic/collections/ddl";;
const char*
static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS =
-"http://www.zorba-xquery.com/modules/store/dynamic/collections/dml";;
+"http://zorba.io/modules/store/dynamic/collections/dml";;
const char*
static_context::ZORBA_STORE_STATIC_COLLECTIONS_DDL_FN_NS =
-"http://www.zorba-xquery.com/modules/store/static/collections/ddl";;
+"http://zorba.io/modules/store/static/collections/ddl";;
const char*
static_context::ZORBA_STORE_STATIC_COLLECTIONS_DML_FN_NS =
-"http://www.zorba-xquery.com/modules/store/static/collections/dml";;
+"http://zorba.io/modules/store/static/collections/dml";;
const char*
static_context::ZORBA_STORE_STATIC_INDEXES_DDL_FN_NS =
-"http://www.zorba-xquery.com/modules/store/static/indexes/ddl";;
+"http://zorba.io/modules/store/static/indexes/ddl";;
const char*
static_context::ZORBA_STORE_STATIC_INDEXES_DML_FN_NS =
-"http://www.zorba-xquery.com/modules/store/static/indexes/dml";;
+"http://zorba.io/modules/store/static/indexes/dml";;
const char*
static_context::ZORBA_STORE_STATIC_INTEGRITY_CONSTRAINTS_DDL_FN_NS =
-"http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl";;
+"http://zorba.io/modules/store/static/integrity_constraints/ddl";;
const char*
static_context::ZORBA_STORE_STATIC_INTEGRITY_CONSTRAINTS_DML_FN_NS =
-"http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml";;
+"http://zorba.io/modules/store/static/integrity_constraints/dml";;
const char*
-static_context::ZORBA_STORE_DYNAMIC_DOCUMENTS_FN_NS =
-"http://www.zorba-xquery.com/modules/store/dynamic/documents";;
+static_context::ZORBA_STORE_DOCUMENTS_FN_NS =
+"http://zorba.io/modules/store/documents";;
const char*
static_context::ZORBA_STORE_UNORDERED_MAPS_FN_NS =
@@ -543,7 +543,7 @@
ns == ZORBA_REFERENCE_FN_NS ||
ns == ZORBA_NODEPOS_FN_NS ||
- ns == ZORBA_STORE_DYNAMIC_DOCUMENTS_FN_NS ||
+ ns == ZORBA_STORE_DOCUMENTS_FN_NS ||
ns == ZORBA_STORE_UNORDERED_MAPS_FN_NS ||
ns == ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_FN_NS ||
ns == ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS ||
=== modified file 'src/context/static_context.h'
--- src/context/static_context.h 2013-10-09 02:52:32 +0000
+++ src/context/static_context.h 2013-10-09 23:30:21 +0000
@@ -532,7 +532,7 @@
static const char* ZORBA_STORE_STATIC_INDEXES_DML_FN_NS;
static const char* ZORBA_STORE_STATIC_INTEGRITY_CONSTRAINTS_DDL_FN_NS;
static const char* ZORBA_STORE_STATIC_INTEGRITY_CONSTRAINTS_DML_FN_NS;
- static const char* ZORBA_STORE_DYNAMIC_DOCUMENTS_FN_NS;
+ static const char* ZORBA_STORE_DOCUMENTS_FN_NS;
static const char* ZORBA_STORE_UNORDERED_MAPS_FN_NS;
static const char* JSONIQ_DM_NS;
=== modified file 'src/functions/func_collections_impl.cpp'
--- src/functions/func_collections_impl.cpp 2013-02-07 17:24:36 +0000
+++ src/functions/func_collections_impl.cpp 2013-10-09 23:30:21 +0000
@@ -46,9 +46,9 @@
********************************************************************************/
void
-processPragmaInternal(zorba::expr* e, const std::vector<zorba::pragma*>& p)
+processPragmaInternal(expr* e, const std::vector<pragma*>& p)
{
- for (std::vector<zorba::pragma*>::const_iterator lIter = p.begin();
+ for (std::vector<pragma*>::const_iterator lIter = p.begin();
lIter != p.end();
++lIter)
{
@@ -68,7 +68,7 @@
/*******************************************************************************
********************************************************************************/
-xqtref_t static_collections_dml_collection::getReturnType(const fo_expr* caller) const
+xqtref_t zorba_store_static_collections_dml_collection::getReturnType(const fo_expr* caller) const
{
if (getName()->getNamespace() ==
static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS)
@@ -103,7 +103,7 @@
}
-PlanIter_t static_collections_dml_collection::codegen(
+PlanIter_t zorba_store_static_collections_dml_collection::codegen(
CompilerCB*,
static_context* sctx,
const QueryLoc& loc,
@@ -122,7 +122,7 @@
/*******************************************************************************
********************************************************************************/
-PlanIter_t static_collections_dml_index_of::codegen(
+PlanIter_t zorba_store_static_collections_dml_index_of::codegen(
CompilerCB*,
static_context* sctx,
const QueryLoc& loc,
@@ -141,7 +141,7 @@
/*******************************************************************************
********************************************************************************/
-PlanIter_t static_collections_ddl_create::codegen(
+PlanIter_t zorba_store_static_collections_ddl_create::codegen(
CompilerCB*,
static_context* sctx,
const QueryLoc& loc,
@@ -160,7 +160,7 @@
/*******************************************************************************
********************************************************************************/
-PlanIter_t static_collections_ddl_delete::codegen(
+PlanIter_t zorba_store_static_collections_ddl_delete::codegen(
CompilerCB*,
static_context* sctx,
const QueryLoc& loc,
@@ -179,397 +179,397 @@
/*******************************************************************************
********************************************************************************/
-void zorba::static_collections_dml_insert_nodes::processPragma(
- zorba::expr* e,
- const std::vector<zorba::pragma*>& p) const
-{
- processPragmaInternal(e, p);
-}
-
-
-PlanIter_t static_collections_dml_insert_nodes::codegen(
- CompilerCB* cb,
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& argv,
- expr& ann) const
-{
- const zstring& ns = getName()->getNamespace();
-
- bool const dynamic =
- ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
-
- bool const copy = !hasNoCopyPragma(ann);
-
- return new ZorbaInsertNodesIterator(sctx, loc, argv, dynamic, copy);
-}
-
-
-/*******************************************************************************
-
-********************************************************************************/
-void
-zorba::static_collections_dml_insert_nodes_first::processPragma(
- zorba::expr* e,
- const std::vector<zorba::pragma*>& p) const
-{
- processPragmaInternal(e, p);
-}
-
-PlanIter_t static_collections_dml_insert_nodes_first::codegen(
- CompilerCB* cb,
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& argv,
- expr& ann) const
-{
- const zstring& ns = getName()->getNamespace();
-
- bool const dynamic =
- ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
-
- bool const copy = !hasNoCopyPragma(ann);
-
- return new ZorbaInsertNodesFirstIterator(sctx, loc, argv, dynamic, copy);
-}
-
-
-/*******************************************************************************
-
-********************************************************************************/
-void
-zorba::static_collections_dml_insert_nodes_last::processPragma(
- zorba::expr* e,
- const std::vector<zorba::pragma*>& p) const
-{
- processPragmaInternal(e, p);
-}
-
-PlanIter_t static_collections_dml_insert_nodes_last::codegen(
- CompilerCB* cb,
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& argv,
- expr& ann) const
-{
- const zstring& ns = getName()->getNamespace();
-
- bool const dynamic =
- ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
-
- bool const copy = !hasNoCopyPragma(ann);
-
- return new ZorbaInsertNodesLastIterator(sctx, loc, argv, dynamic, copy);
-}
-
-
-/*******************************************************************************
-
-********************************************************************************/
-void
-zorba::static_collections_dml_insert_nodes_before::processPragma(
- zorba::expr* e,
- const std::vector<zorba::pragma*>& p) const
-{
- processPragmaInternal(e, p);
-}
-
-PlanIter_t static_collections_dml_insert_nodes_before::codegen(
- CompilerCB* cb,
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& argv,
- expr& ann) const
-{
- const zstring& ns = getName()->getNamespace();
-
- bool const dynamic =
- ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
-
- bool const copy = !hasNoCopyPragma(ann);
-
- return new ZorbaInsertNodesBeforeIterator(sctx, loc, argv, dynamic, copy);
-}
-
-
-/*******************************************************************************
-
-********************************************************************************/
-void
-zorba::static_collections_dml_insert_nodes_after::processPragma(
- zorba::expr* e,
- const std::vector<zorba::pragma*>& p) const
-{
- processPragmaInternal(e, p);
-}
-
-PlanIter_t static_collections_dml_insert_nodes_after::codegen(
- CompilerCB* cb,
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& argv,
- expr& ann) const
-{
- const zstring& ns = getName()->getNamespace();
-
- bool const dynamic =
- ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
-
- bool const copy = !hasNoCopyPragma(ann);
-
- return new ZorbaInsertNodesAfterIterator(sctx, loc, argv, dynamic, copy);
-}
-
-
-/*******************************************************************************
-
-********************************************************************************/
-void
-zorba::static_collections_dml_apply_insert_nodes::processPragma(
- zorba::expr* e,
- const std::vector<zorba::pragma*>& p) const
-{
- processPragmaInternal(e, p);
-}
-
-PlanIter_t static_collections_dml_apply_insert_nodes::codegen(
- CompilerCB* cb,
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& argv,
- expr& ann) const
-{
- const zstring& ns = getName()->getNamespace();
-
- bool const dynamic =
- ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
-
- bool const copy = !hasNoCopyPragma(ann);
-
- return new ZorbaApplyInsertNodesIterator(sctx, loc, argv, dynamic, copy);
-}
-
-
-bool static_collections_dml_apply_insert_nodes::propagatesInputNodes(
- expr* fo,
- csize input) const
-{
- return false;
-}
-
-
-/*******************************************************************************
-
-********************************************************************************/
-void
-zorba::static_collections_dml_apply_insert_nodes_first::processPragma(
- zorba::expr* e,
- const std::vector<zorba::pragma*>& p) const
-{
- processPragmaInternal(e, p);
-}
-
-PlanIter_t static_collections_dml_apply_insert_nodes_first::codegen(
- CompilerCB* cb,
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& argv,
- expr& ann) const
-{
- const zstring& ns = getName()->getNamespace();
-
- bool const dynamic =
- ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
-
- bool const copy = !hasNoCopyPragma(ann);
-
- return new ZorbaApplyInsertNodesFirstIterator(sctx, loc, argv, dynamic, copy);
-}
-
-
-bool static_collections_dml_apply_insert_nodes_first::propagatesInputNodes(
- expr* fo,
- csize input) const
-{
- return false;
-}
-
-
-/*******************************************************************************
-
-********************************************************************************/
-void
-zorba::static_collections_dml_apply_insert_nodes_last::processPragma(
- zorba::expr* e,
- const std::vector<zorba::pragma*>& p) const
-{
- processPragmaInternal(e, p);
-}
-
-
-PlanIter_t static_collections_dml_apply_insert_nodes_last::codegen(
- CompilerCB* cb,
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& argv,
- expr& ann) const
-{
- const zstring& ns = getName()->getNamespace();
-
- bool const dynamic =
- ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
-
- bool const copy = !hasNoCopyPragma(ann);
-
- return new ZorbaApplyInsertNodesLastIterator(sctx, loc, argv, dynamic, copy);
-}
-
-
-bool static_collections_dml_apply_insert_nodes_last::propagatesInputNodes(
- expr* fo,
- csize input) const
-{
- return false;
-}
-
-
-/*******************************************************************************
-
-********************************************************************************/
-void
-zorba::static_collections_dml_apply_insert_nodes_before::processPragma(
- zorba::expr* e,
- const std::vector<zorba::pragma*>& p) const
-{
- processPragmaInternal(e, p);
-}
-
-PlanIter_t static_collections_dml_apply_insert_nodes_before::codegen(
- CompilerCB* cb,
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& argv,
- expr& ann) const
-{
- const zstring& ns = getName()->getNamespace();
-
- bool const dynamic =
- ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
-
- bool const copy = !hasNoCopyPragma(ann);
-
- return new ZorbaApplyInsertNodesBeforeIterator(sctx, loc, argv, dynamic, copy);
-}
-
-
-bool
-static_collections_dml_apply_insert_nodes_before::propagatesInputNodes(
- expr* fo,
- csize input) const
-{
- return false;
-}
-
-
-/*******************************************************************************
-
-********************************************************************************/
-void
-zorba::static_collections_dml_apply_insert_nodes_after::processPragma(
- zorba::expr* e,
- const std::vector<zorba::pragma*>& p) const
-{
- processPragmaInternal(e, p);
-}
-
-PlanIter_t static_collections_dml_apply_insert_nodes_after::codegen(
- CompilerCB* cb,
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& argv,
- expr& ann) const
-{
- const zstring& ns = getName()->getNamespace();
-
- bool const dynamic =
- ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
-
- bool const copy = !hasNoCopyPragma(ann);
-
- return new ZorbaApplyInsertNodesAfterIterator(sctx, loc, argv, dynamic, copy);
-}
-
-
-bool
-static_collections_dml_apply_insert_nodes_after::propagatesInputNodes(
- expr* fo,
- csize input) const
-{
- return false;
-}
-
-
-/*******************************************************************************
-
-********************************************************************************/
-PlanIter_t static_collections_dml_delete_nodes::codegen(
- CompilerCB*,
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& argv,
- expr& ann) const
-{
- const zstring& ns = getName()->getNamespace();
-
- bool const dynamic =
- ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
-
- return new ZorbaDeleteNodesIterator(sctx, loc, argv, dynamic);
-}
-
-
-/*******************************************************************************
-
-********************************************************************************/
-PlanIter_t static_collections_dml_delete_node_first::codegen(
- CompilerCB*,
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& argv,
- expr& ann) const
-{
- const zstring& ns = getName()->getNamespace();
-
- bool const dynamic =
- ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
-
- return new ZorbaDeleteNodesFirstIterator(sctx, loc, argv, dynamic);
-}
-
-
-/*******************************************************************************
-
-********************************************************************************/
-PlanIter_t static_collections_dml_delete_node_last::codegen(
- CompilerCB*,
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& argv,
- expr& ann) const
-{
- const zstring& ns = getName()->getNamespace();
-
- bool const dynamic =
- ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
-
- return new ZorbaDeleteNodesLastIterator(sctx, loc, argv, dynamic);
-}
-
-
-/*******************************************************************************
-
-********************************************************************************/
-BoolAnnotationValue static_collections_dml_delete_nodes::ignoresSortedNodes(
+void zorba_store_static_collections_dml_insert::processPragma(
+ expr* e,
+ const std::vector<pragma*>& p) const
+{
+ processPragmaInternal(e, p);
+}
+
+
+PlanIter_t zorba_store_static_collections_dml_insert::codegen(
+ CompilerCB* cb,
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& argv,
+ expr& ann) const
+{
+ const zstring& ns = getName()->getNamespace();
+
+ bool const dynamic =
+ ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
+
+ bool const copy = !hasNoCopyPragma(ann);
+
+ return new ZorbaInsertIterator(sctx, loc, argv, dynamic, copy);
+}
+
+
+/*******************************************************************************
+
+********************************************************************************/
+void
+zorba_store_static_collections_dml_insert_before::processPragma(
+ expr* e,
+ const std::vector<pragma*>& p) const
+{
+ processPragmaInternal(e, p);
+}
+
+PlanIter_t zorba_store_static_collections_dml_insert_before::codegen(
+ CompilerCB* cb,
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& argv,
+ expr& ann) const
+{
+ const zstring& ns = getName()->getNamespace();
+
+ bool const dynamic =
+ ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
+
+ bool const copy = !hasNoCopyPragma(ann);
+
+ return new ZorbaInsertBeforeIterator(sctx, loc, argv, dynamic, copy);
+}
+
+
+/*******************************************************************************
+
+********************************************************************************/
+void
+zorba_store_static_collections_dml_insert_after::processPragma(
+ expr* e,
+ const std::vector<pragma*>& p) const
+{
+ processPragmaInternal(e, p);
+}
+
+PlanIter_t zorba_store_static_collections_dml_insert_after::codegen(
+ CompilerCB* cb,
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& argv,
+ expr& ann) const
+{
+ const zstring& ns = getName()->getNamespace();
+
+ bool const dynamic =
+ ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
+
+ bool const copy = !hasNoCopyPragma(ann);
+
+ return new ZorbaInsertAfterIterator(sctx, loc, argv, dynamic, copy);
+}
+
+
+/*******************************************************************************
+
+********************************************************************************/
+void
+zorba_store_static_collections_dml_insert_first::processPragma(
+ expr* e,
+ const std::vector<pragma*>& p) const
+{
+ processPragmaInternal(e, p);
+}
+
+PlanIter_t zorba_store_static_collections_dml_insert_first::codegen(
+ CompilerCB* cb,
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& argv,
+ expr& ann) const
+{
+ const zstring& ns = getName()->getNamespace();
+
+ bool const dynamic =
+ ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
+
+ bool const copy = !hasNoCopyPragma(ann);
+
+ return new ZorbaInsertFirstIterator(sctx, loc, argv, dynamic, copy);
+}
+
+
+/*******************************************************************************
+
+********************************************************************************/
+void
+zorba_store_static_collections_dml_insert_last::processPragma(
+ expr* e,
+ const std::vector<pragma*>& p) const
+{
+ processPragmaInternal(e, p);
+}
+
+PlanIter_t zorba_store_static_collections_dml_insert_last::codegen(
+ CompilerCB* cb,
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& argv,
+ expr& ann) const
+{
+ const zstring& ns = getName()->getNamespace();
+
+ bool const dynamic =
+ ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
+
+ bool const copy = !hasNoCopyPragma(ann);
+
+ return new ZorbaInsertLastIterator(sctx, loc, argv, dynamic, copy);
+}
+
+
+/*******************************************************************************
+
+********************************************************************************/
+void
+zorba_store_static_collections_dml_apply_insert::processPragma(
+ expr* e,
+ const std::vector<pragma*>& p) const
+{
+ processPragmaInternal(e, p);
+}
+
+PlanIter_t zorba_store_static_collections_dml_apply_insert::codegen(
+ CompilerCB* cb,
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& argv,
+ expr& ann) const
+{
+ const zstring& ns = getName()->getNamespace();
+
+ bool const dynamic =
+ ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
+
+ bool const copy = !hasNoCopyPragma(ann);
+
+ return new ZorbaApplyInsertIterator(sctx, loc, argv, dynamic, copy);
+}
+
+
+bool zorba_store_static_collections_dml_apply_insert::propagatesInputNodes(
+ expr* fo,
+ csize input) const
+{
+ return false;
+}
+
+
+/*******************************************************************************
+
+********************************************************************************/
+void
+zorba_store_static_collections_dml_apply_insert_first::processPragma(
+ expr* e,
+ const std::vector<pragma*>& p) const
+{
+ processPragmaInternal(e, p);
+}
+
+PlanIter_t zorba_store_static_collections_dml_apply_insert_first::codegen(
+ CompilerCB* cb,
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& argv,
+ expr& ann) const
+{
+ const zstring& ns = getName()->getNamespace();
+
+ bool const dynamic =
+ ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
+
+ bool const copy = !hasNoCopyPragma(ann);
+
+ return new ZorbaApplyInsertFirstIterator(sctx, loc, argv, dynamic, copy);
+}
+
+
+bool zorba_store_static_collections_dml_apply_insert_first::propagatesInputNodes(
+ expr* fo,
+ csize input) const
+{
+ return false;
+}
+
+
+/*******************************************************************************
+
+********************************************************************************/
+void
+zorba_store_static_collections_dml_apply_insert_last::processPragma(
+ expr* e,
+ const std::vector<pragma*>& p) const
+{
+ processPragmaInternal(e, p);
+}
+
+
+PlanIter_t zorba_store_static_collections_dml_apply_insert_last::codegen(
+ CompilerCB* cb,
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& argv,
+ expr& ann) const
+{
+ const zstring& ns = getName()->getNamespace();
+
+ bool const dynamic =
+ ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
+
+ bool const copy = !hasNoCopyPragma(ann);
+
+ return new ZorbaApplyInsertLastIterator(sctx, loc, argv, dynamic, copy);
+}
+
+
+bool zorba_store_static_collections_dml_apply_insert_last::propagatesInputNodes(
+ expr* fo,
+ csize input) const
+{
+ return false;
+}
+
+
+/*******************************************************************************
+
+********************************************************************************/
+void
+zorba_store_static_collections_dml_apply_insert_before::processPragma(
+ expr* e,
+ const std::vector<pragma*>& p) const
+{
+ processPragmaInternal(e, p);
+}
+
+PlanIter_t zorba_store_static_collections_dml_apply_insert_before::codegen(
+ CompilerCB* cb,
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& argv,
+ expr& ann) const
+{
+ const zstring& ns = getName()->getNamespace();
+
+ bool const dynamic =
+ ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
+
+ bool const copy = !hasNoCopyPragma(ann);
+
+ return new ZorbaApplyInsertBeforeIterator(sctx, loc, argv, dynamic, copy);
+}
+
+
+bool
+zorba_store_static_collections_dml_apply_insert_before::propagatesInputNodes(
+ expr* fo,
+ csize input) const
+{
+ return false;
+}
+
+
+/*******************************************************************************
+
+********************************************************************************/
+void
+zorba_store_static_collections_dml_apply_insert_after::processPragma(
+ expr* e,
+ const std::vector<pragma*>& p) const
+{
+ processPragmaInternal(e, p);
+}
+
+PlanIter_t zorba_store_static_collections_dml_apply_insert_after::codegen(
+ CompilerCB* cb,
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& argv,
+ expr& ann) const
+{
+ const zstring& ns = getName()->getNamespace();
+
+ bool const dynamic =
+ ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
+
+ bool const copy = !hasNoCopyPragma(ann);
+
+ return new ZorbaApplyInsertAfterIterator(sctx, loc, argv, dynamic, copy);
+}
+
+
+bool
+zorba_store_static_collections_dml_apply_insert_after::propagatesInputNodes(
+ expr* fo,
+ csize input) const
+{
+ return false;
+}
+
+
+/*******************************************************************************
+
+********************************************************************************/
+PlanIter_t zorba_store_static_collections_dml_delete::codegen(
+ CompilerCB*,
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& argv,
+ expr& ann) const
+{
+ const zstring& ns = getName()->getNamespace();
+
+ bool const dynamic =
+ ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
+
+ return new ZorbaDeleteIterator(sctx, loc, argv, dynamic);
+}
+
+
+/*******************************************************************************
+
+********************************************************************************/
+PlanIter_t zorba_store_static_collections_dml_delete_first::codegen(
+ CompilerCB*,
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& argv,
+ expr& ann) const
+{
+ const zstring& ns = getName()->getNamespace();
+
+ bool const dynamic =
+ ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
+
+ return new ZorbaDeleteFirstIterator(sctx, loc, argv, dynamic);
+}
+
+
+/*******************************************************************************
+
+********************************************************************************/
+PlanIter_t zorba_store_static_collections_dml_delete_last::codegen(
+ CompilerCB*,
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& argv,
+ expr& ann) const
+{
+ const zstring& ns = getName()->getNamespace();
+
+ bool const dynamic =
+ ns == static_context::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
+
+ return new ZorbaDeleteLastIterator(sctx, loc, argv, dynamic);
+}
+
+
+/*******************************************************************************
+
+********************************************************************************/
+BoolAnnotationValue zorba_store_static_collections_dml_delete::ignoresSortedNodes(
expr* fo,
csize input) const
{
@@ -577,7 +577,7 @@
}
-BoolAnnotationValue static_collections_dml_delete_nodes::ignoresDuplicateNodes(
+BoolAnnotationValue zorba_store_static_collections_dml_delete::ignoresDuplicateNodes(
expr* fo,
csize input) const
{
@@ -588,7 +588,7 @@
/*******************************************************************************
********************************************************************************/
-PlanIter_t static_collections_dml_edit::codegen(
+PlanIter_t zorba_store_static_collections_dml_edit::codegen(
CompilerCB*,
static_context* sctx,
const QueryLoc& loc,
@@ -602,14 +602,14 @@
bool const lCopy = !hasNoCopyPragma(ann);
- return new ZorbaEditNodesIterator(sctx, loc, argv, lDynamic, lCopy);
+ return new ZorbaEditIterator(sctx, loc, argv, lDynamic, lCopy);
}
void
-zorba::static_collections_dml_edit::processPragma(
- zorba::expr* e,
- const std::vector<zorba::pragma*>& p) const
+zorba_store_static_collections_dml_edit::processPragma(
+ expr* e,
+ const std::vector<pragma*>& p) const
{
processPragmaInternal(e, p);
}
@@ -617,7 +617,7 @@
/*******************************************************************************
********************************************************************************/
-PlanIter_t static_collections_dml_truncate::codegen(
+PlanIter_t zorba_store_static_collections_dml_truncate::codegen(
CompilerCB*,
static_context* sctx,
const QueryLoc& loc,
@@ -636,7 +636,7 @@
/*******************************************************************************
********************************************************************************/
-PlanIter_t static_collections_ddl_is_available_collection::codegen(
+PlanIter_t zorba_store_static_collections_ddl_is_available_collection::codegen(
CompilerCB*,
static_context* sctx,
const QueryLoc& loc,
@@ -655,7 +655,7 @@
/*******************************************************************************
********************************************************************************/
-PlanIter_t static_collections_ddl_available_collections::codegen(
+PlanIter_t zorba_store_static_collections_ddl_available_collections::codegen(
CompilerCB*,
static_context* sctx,
const QueryLoc& loc,
=== modified file 'src/functions/func_index_ddl.cpp'
--- src/functions/func_index_ddl.cpp 2013-03-24 20:40:03 +0000
+++ src/functions/func_index_ddl.cpp 2013-10-09 23:30:21 +0000
@@ -191,28 +191,28 @@
GENV_TYPESYSTEM.EMPTY_TYPE));
DECL(sctx, fn_zorba_ddl_create_index,
- (createQName("http://www.zorba-xquery.com/modules/store/static/indexes/ddl";,
+ (createQName("http://zorba.io/modules/store/static/indexes/ddl";,
"",
"create"),
GENV_TYPESYSTEM.QNAME_TYPE_ONE,
GENV_TYPESYSTEM.EMPTY_TYPE));
DECL(sctx, fn_zorba_ddl_delete_index,
- (createQName("http://www.zorba-xquery.com/modules/store/static/indexes/ddl";,
+ (createQName("http://zorba.io/modules/store/static/indexes/ddl";,
"",
"delete"),
GENV_TYPESYSTEM.QNAME_TYPE_ONE,
GENV_TYPESYSTEM.EMPTY_TYPE));
DECL(sctx, fn_zorba_ddl_refresh_index,
- (createQName("http://www.zorba-xquery.com/modules/store/static/indexes/dml";,
+ (createQName("http://zorba.io/modules/store/static/indexes/dml";,
"",
"refresh-index"),
GENV_TYPESYSTEM.QNAME_TYPE_ONE,
GENV_TYPESYSTEM.EMPTY_TYPE));
DECL(sctx, fn_zorba_ddl_probe_index_point_value,
- (createQName("http://www.zorba-xquery.com/modules/store/static/indexes/dml";,
+ (createQName("http://zorba.io/modules/store/static/indexes/dml";,
"",
"probe-index-point-value"),
GENV_TYPESYSTEM.QNAME_TYPE_ONE,
@@ -220,7 +220,7 @@
GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR));
DECL(sctx, fn_zorba_ddl_probe_index_point_value_skip,
- (createQName("http://www.zorba-xquery.com/modules/store/static/indexes/dml";,
+ (createQName("http://zorba.io/modules/store/static/indexes/dml";,
"",
"probe-index-point-value-skip"),
GENV_TYPESYSTEM.QNAME_TYPE_ONE,
@@ -229,7 +229,7 @@
GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR));
DECL(sctx, fn_zorba_ddl_probe_index_point_general,
- (createQName("http://www.zorba-xquery.com/modules/store/static/indexes/dml";,
+ (createQName("http://zorba.io/modules/store/static/indexes/dml";,
"",
"probe-index-point-general"),
GENV_TYPESYSTEM.QNAME_TYPE_ONE,
@@ -238,7 +238,7 @@
DECL(sctx, fn_zorba_ddl_probe_index_range_value,
- (createQName("http://www.zorba-xquery.com/modules/store/static/indexes/dml";,
+ (createQName("http://zorba.io/modules/store/static/indexes/dml";,
"",
"probe-index-range-value"),
GENV_TYPESYSTEM.QNAME_TYPE_ONE,
@@ -246,7 +246,7 @@
GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR));
DECL(sctx, fn_zorba_ddl_probe_index_range_value_skip,
- (createQName("http://www.zorba-xquery.com/modules/store/static/indexes/dml";,
+ (createQName("http://zorba.io/modules/store/static/indexes/dml";,
"",
"probe-index-range-value-skip"),
GENV_TYPESYSTEM.QNAME_TYPE_ONE,
@@ -255,7 +255,7 @@
GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR));
DECL(sctx, fn_zorba_ddl_probe_index_range_general,
- (createQName("http://www.zorba-xquery.com/modules/store/static/indexes/dml";,
+ (createQName("http://zorba.io/modules/store/static/indexes/dml";,
"",
"probe-index-range-general"),
GENV_TYPESYSTEM.QNAME_TYPE_ONE,
=== modified file 'src/functions/pregenerated/func_collections.cpp'
--- src/functions/pregenerated/func_collections.cpp 2013-04-02 22:54:20 +0000
+++ src/functions/pregenerated/func_collections.cpp 2013-10-09 23:30:21 +0000
@@ -46,7 +46,7 @@
}
-PlanIter_t static_collections_dml_collection_name::codegen(
+PlanIter_t zorba_store_static_collections_dml_collection_name::codegen(
CompilerCB*,
static_context* sctx,
const QueryLoc& loc,
@@ -92,7 +92,7 @@
return new AvailableIndexesIterator(sctx, loc, argv);
}
-PlanIter_t zorba_store_integrity_constraints_static_ddl_is_activated_integrity_constraint::codegen(
+PlanIter_t zorba_store_static_integrity_constraints_ddl_is_activated_integrity_constraint::codegen(
CompilerCB*,
static_context* sctx,
const QueryLoc& loc,
@@ -102,7 +102,7 @@
return new IsActivatedICIterator(sctx, loc, argv);
}
-PlanIter_t zorba_store_integrity_constraints_static_ddl_activated_integrity_constraints::codegen(
+PlanIter_t zorba_store_static_integrity_constraints_ddl_activated_integrity_constraints::codegen(
CompilerCB*,
static_context* sctx,
const QueryLoc& loc,
@@ -112,7 +112,7 @@
return new ActivatedICsIterator(sctx, loc, argv);
}
-PlanIter_t static_collections_ddl_is_declared_collection::codegen(
+PlanIter_t zorba_store_static_collections_ddl_is_declared_collection::codegen(
CompilerCB*,
static_context* sctx,
const QueryLoc& loc,
@@ -122,7 +122,7 @@
return new IsDeclaredCollectionIterator(sctx, loc, argv);
}
-PlanIter_t static_collections_ddl_declared_collections::codegen(
+PlanIter_t zorba_store_static_collections_ddl_declared_collections::codegen(
CompilerCB*,
static_context* sctx,
const QueryLoc& loc,
@@ -152,7 +152,7 @@
return new DeclaredIndexesIterator(sctx, loc, argv);
}
-PlanIter_t zorba_store_integrity_constraints_static_ddl_is_declared_integrity_constraint::codegen(
+PlanIter_t zorba_store_static_integrity_constraints_ddl_is_declared_integrity_constraint::codegen(
CompilerCB*,
static_context* sctx,
const QueryLoc& loc,
@@ -162,7 +162,7 @@
return new IsDeclaredICIterator(sctx, loc, argv);
}
-PlanIter_t zorba_store_integrity_constraints_static_ddl_declared_integrity_constraints::codegen(
+PlanIter_t zorba_store_static_integrity_constraints_ddl_declared_integrity_constraints::codegen(
CompilerCB*,
static_context* sctx,
const QueryLoc& loc,
@@ -187,119 +187,119 @@
{
- DECL_WITH_KIND(sctx, static_collections_ddl_create,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/ddl","","create";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DDL_CREATE_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_ddl_create,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/ddl","","create";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DDL_CREATE_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_ddl_create,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl","","create";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DDL_CREATE_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_ddl_create,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl","","create";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DDL_CREATE_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_ddl_delete,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/ddl","","delete";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DDL_DELETE_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_ddl_delete,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl","","delete";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DDL_DELETE_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_ddl_is_available_collection,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/ddl","","is-available-collection";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
- FunctionConsts::STATIC_COLLECTIONS_DDL_IS_AVAILABLE_COLLECTION_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_ddl_is_available_collection,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl","","is-available-collection";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DDL_IS_AVAILABLE_COLLECTION_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_ddl_available_collections,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/ddl","","available-collections";),
- GENV_TYPESYSTEM.QNAME_TYPE_STAR),
- FunctionConsts::STATIC_COLLECTIONS_DDL_AVAILABLE_COLLECTIONS_0);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_ddl_available_collections,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl","","available-collections";),
- GENV_TYPESYSTEM.QNAME_TYPE_STAR),
- FunctionConsts::DYNAMIC_COLLECTIONS_DDL_AVAILABLE_COLLECTIONS_0);
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_ddl_create,
+ (createQName("http://zorba.io/modules/store/static/collections/ddl","","create";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DDL_CREATE_1);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_ddl_create,
+ (createQName("http://zorba.io/modules/store/static/collections/ddl","","create";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DDL_CREATE_2);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_ddl_create,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/ddl","","create";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_CREATE_1);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_ddl_create,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/ddl","","create";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_CREATE_2);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_ddl_delete,
+ (createQName("http://zorba.io/modules/store/static/collections/ddl","","delete";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DDL_DELETE_1);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_ddl_delete,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/ddl","","delete";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_DELETE_1);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_ddl_is_available_collection,
+ (createQName("http://zorba.io/modules/store/static/collections/ddl","","is-available-collection";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DDL_IS_AVAILABLE_COLLECTION_1);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_ddl_is_available_collection,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/ddl","","is-available-collection";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_IS_AVAILABLE_COLLECTION_1);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_ddl_available_collections,
+ (createQName("http://zorba.io/modules/store/static/collections/ddl","","available-collections";),
+ GENV_TYPESYSTEM.QNAME_TYPE_STAR),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DDL_AVAILABLE_COLLECTIONS_0);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_ddl_available_collections,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/ddl","","available-collections";),
+ GENV_TYPESYSTEM.QNAME_TYPE_STAR),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_AVAILABLE_COLLECTIONS_0);
}
@@ -330,907 +330,541 @@
{
- DECL_WITH_KIND(sctx, static_collections_dml_collection,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","collection";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
- FunctionConsts::STATIC_COLLECTIONS_DML_COLLECTION_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_collection,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","collection";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
- FunctionConsts::STATIC_COLLECTIONS_DML_COLLECTION_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_collection,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","collection";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_URI_TYPE_ONE,
- GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
- FunctionConsts::STATIC_COLLECTIONS_DML_COLLECTION_3);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_collection,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","collection";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_COLLECTION_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_collection,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","collection";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_COLLECTION_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_collection,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","collection";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_URI_TYPE_ONE,
- GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_COLLECTION_3);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_collection_name,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","collection-name";),
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
- GENV_TYPESYSTEM.QNAME_TYPE_ONE),
- FunctionConsts::STATIC_COLLECTIONS_DML_COLLECTION_NAME_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_collection_name,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","collection-name";),
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
- GENV_TYPESYSTEM.QNAME_TYPE_ONE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_COLLECTION_NAME_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_index_of,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","index-of";),
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
- GENV_TYPESYSTEM.INTEGER_TYPE_ONE),
- FunctionConsts::STATIC_COLLECTIONS_DML_INDEX_OF_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_index_of,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","index-of";),
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
- GENV_TYPESYSTEM.INTEGER_TYPE_ONE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_INDEX_OF_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_insert_nodes,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","insert-nodes";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DML_INSERT_NODES_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_insert_nodes,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","insert";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DML_INSERT_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_insert_nodes_first,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","insert-nodes-first";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DML_INSERT_NODES_FIRST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_insert_nodes_first,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","insert-nodes-first";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_INSERT_NODES_FIRST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_insert_nodes_first,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","insert-first";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DML_INSERT_FIRST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_insert_nodes_first,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","insert-first";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_INSERT_FIRST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_insert_nodes_last,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","insert-nodes-last";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DML_INSERT_NODES_LAST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_insert_nodes_last,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","insert-nodes-last";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_INSERT_NODES_LAST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_insert_nodes_last,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","insert-last";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DML_INSERT_LAST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_insert_nodes_last,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","insert-last";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_INSERT_LAST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_insert_nodes_before,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","insert-nodes-before";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DML_INSERT_NODES_BEFORE_3);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_insert_nodes_before,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","insert-nodes-before";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_INSERT_NODES_BEFORE_3);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_insert_nodes_before,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","insert-before";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DML_INSERT_BEFORE_3);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_insert_nodes_before,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","insert-before";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_INSERT_BEFORE_3);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_insert_nodes_after,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","insert-nodes-after";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DML_INSERT_NODES_AFTER_3);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_insert_nodes_after,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","insert-nodes-after";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_INSERT_NODES_AFTER_3);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_insert_nodes_after,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","insert-after";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DML_INSERT_AFTER_3);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_insert_nodes_after,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","insert-after";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_INSERT_AFTER_3);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_apply_insert_nodes,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","apply-insert-nodes";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
- FunctionConsts::STATIC_COLLECTIONS_DML_APPLY_INSERT_NODES_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_apply_insert_nodes,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","apply-insert";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
- FunctionConsts::STATIC_COLLECTIONS_DML_APPLY_INSERT_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_apply_insert_nodes_first,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","apply-insert-nodes-first";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
- FunctionConsts::STATIC_COLLECTIONS_DML_APPLY_INSERT_NODES_FIRST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_apply_insert_nodes_first,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","apply-insert-nodes-first";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_FIRST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_apply_insert_nodes_first,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","apply-insert-first";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
- FunctionConsts::STATIC_COLLECTIONS_DML_APPLY_INSERT_FIRST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_apply_insert_nodes_first,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","apply-insert-first";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_FIRST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_apply_insert_nodes_last,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","apply-insert-nodes-last";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
- FunctionConsts::STATIC_COLLECTIONS_DML_APPLY_INSERT_NODES_LAST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_apply_insert_nodes_last,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","apply-insert-nodes-last";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_LAST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_apply_insert_nodes_last,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","apply-insert-last";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
- FunctionConsts::STATIC_COLLECTIONS_DML_APPLY_INSERT_LAST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_apply_insert_nodes_last,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","apply-insert-last";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_LAST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_apply_insert_nodes_before,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","apply-insert-nodes-before";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
- FunctionConsts::STATIC_COLLECTIONS_DML_APPLY_INSERT_NODES_BEFORE_3);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_apply_insert_nodes_before,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","apply-insert-nodes-before";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_BEFORE_3);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_apply_insert_nodes_before,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","apply-insert-before";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
- FunctionConsts::STATIC_COLLECTIONS_DML_APPLY_INSERT_BEFORE_3);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_apply_insert_nodes_before,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","apply-insert-before";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_BEFORE_3);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_apply_insert_nodes_after,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","apply-insert-nodes-after";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
- FunctionConsts::STATIC_COLLECTIONS_DML_APPLY_INSERT_NODES_AFTER_3);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_apply_insert_nodes_after,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","apply-insert-nodes-after";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR,
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_AFTER_3);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_apply_insert_nodes_after,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","apply-insert-after";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
- FunctionConsts::STATIC_COLLECTIONS_DML_APPLY_INSERT_AFTER_3);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_apply_insert_nodes_after,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","apply-insert-after";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_AFTER_3);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_delete_nodes,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","delete-nodes";),
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DML_DELETE_NODES_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_delete_nodes,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","delete-nodes";),
- GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_DELETE_NODES_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_delete_nodes,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","delete";),
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DML_DELETE_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_delete_nodes,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","delete";),
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_DELETE_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_delete_node_first,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","delete-node-first";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DML_DELETE_NODE_FIRST_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_delete_node_first,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","delete-nodes-first";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DML_DELETE_NODES_FIRST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_delete_node_first,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","delete-node-first";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_DELETE_NODE_FIRST_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_delete_node_first,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","delete-nodes-first";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_DELETE_NODES_FIRST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_delete_node_first,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","delete-first";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DML_DELETE_FIRST_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_delete_node_first,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","delete-first";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DML_DELETE_FIRST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_delete_node_first,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","delete-first";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_DELETE_FIRST_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_delete_node_first,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","delete-first";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_DELETE_FIRST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_delete_node_last,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","delete-node-last";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DML_DELETE_NODE_LAST_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_delete_node_last,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","delete-nodes-last";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DML_DELETE_NODES_LAST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_delete_node_last,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","delete-node-last";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_DELETE_NODE_LAST_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_delete_node_last,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","delete-nodes-last";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_DELETE_NODES_LAST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_delete_node_last,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","delete-last";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DML_DELETE_LAST_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_delete_node_last,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","delete-last";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DML_DELETE_LAST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_delete_node_last,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","delete-last";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_DELETE_LAST_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_delete_node_last,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","delete-last";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_DELETE_LAST_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_edit,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","edit";),
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DML_EDIT_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_edit,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","edit";),
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
- GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_EDIT_2);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_truncate,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/dml","","truncate";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::STATIC_COLLECTIONS_DML_TRUNCATE_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_dml_truncate,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/collections/dml","","truncate";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.EMPTY_TYPE),
- FunctionConsts::DYNAMIC_COLLECTIONS_DML_TRUNCATE_1);
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_collection,
+ (createQName("http://zorba.io/modules/store/static/collections/dml","","collection";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_COLLECTION_1);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_collection,
+ (createQName("http://zorba.io/modules/store/static/collections/dml","","collection";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_COLLECTION_2);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_collection,
+ (createQName("http://zorba.io/modules/store/static/collections/dml","","collection";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.ANY_URI_TYPE_ONE,
+ GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_COLLECTION_3);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_collection,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/dml","","collection";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_COLLECTION_1);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_collection,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/dml","","collection";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_COLLECTION_2);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_collection,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/dml","","collection";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.ANY_URI_TYPE_ONE,
+ GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_COLLECTION_3);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_collection_name,
+ (createQName("http://zorba.io/modules/store/static/collections/dml","","collection-name";),
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_COLLECTION_NAME_1);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_collection_name,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/dml","","collection-name";),
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_COLLECTION_NAME_1);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_index_of,
+ (createQName("http://zorba.io/modules/store/static/collections/dml","","index-of";),
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
+ GENV_TYPESYSTEM.INTEGER_TYPE_ONE),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_INDEX_OF_1);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_index_of,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/dml","","index-of";),
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
+ GENV_TYPESYSTEM.INTEGER_TYPE_ONE),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INDEX_OF_1);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_apply_insert,
+ (createQName("http://zorba.io/modules/store/static/collections/dml","","apply-insert";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_APPLY_INSERT_2);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_insert_after,
+ (createQName("http://zorba.io/modules/store/static/collections/dml","","insert-after";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_INSERT_AFTER_3);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_insert_after,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/dml","","insert-after";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_AFTER_3);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_insert_before,
+ (createQName("http://zorba.io/modules/store/static/collections/dml","","insert-before";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_INSERT_BEFORE_3);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_insert_before,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/dml","","insert-before";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_BEFORE_3);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_insert_first,
+ (createQName("http://zorba.io/modules/store/static/collections/dml","","insert-first";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_INSERT_FIRST_2);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_insert_first,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/dml","","insert-first";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_FIRST_2);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_insert_last,
+ (createQName("http://zorba.io/modules/store/static/collections/dml","","insert-last";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_INSERT_LAST_2);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_insert_last,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/dml","","insert-last";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_LAST_2);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_apply_insert_first,
+ (createQName("http://zorba.io/modules/store/static/collections/dml","","apply-insert-first";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_APPLY_INSERT_FIRST_2);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_apply_insert_first,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/dml","","apply-insert-first";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_FIRST_2);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_apply_insert_last,
+ (createQName("http://zorba.io/modules/store/static/collections/dml","","apply-insert-last";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_APPLY_INSERT_LAST_2);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_apply_insert_last,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/dml","","apply-insert-last";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_LAST_2);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_apply_insert_before,
+ (createQName("http://zorba.io/modules/store/static/collections/dml","","apply-insert-before";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_APPLY_INSERT_BEFORE_3);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_apply_insert_before,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/dml","","apply-insert-before";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_BEFORE_3);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_apply_insert_after,
+ (createQName("http://zorba.io/modules/store/static/collections/dml","","apply-insert-after";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_APPLY_INSERT_AFTER_3);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_apply_insert_after,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/dml","","apply-insert-after";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_AFTER_3);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_delete,
+ (createQName("http://zorba.io/modules/store/static/collections/dml","","delete";),
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_DELETE_1);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_delete,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/dml","","delete";),
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_1);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_delete_first,
+ (createQName("http://zorba.io/modules/store/static/collections/dml","","delete-first";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_DELETE_FIRST_1);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_delete_first,
+ (createQName("http://zorba.io/modules/store/static/collections/dml","","delete-first";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_DELETE_FIRST_2);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_delete_first,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/dml","","delete-first";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_FIRST_1);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_delete_first,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/dml","","delete-first";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_FIRST_2);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_delete_last,
+ (createQName("http://zorba.io/modules/store/static/collections/dml","","delete-last";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_DELETE_LAST_1);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_delete_last,
+ (createQName("http://zorba.io/modules/store/static/collections/dml","","delete-last";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_DELETE_LAST_2);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_delete_last,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/dml","","delete-last";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_LAST_1);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_delete_last,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/dml","","delete-last";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_LAST_2);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_edit,
+ (createQName("http://zorba.io/modules/store/static/collections/dml","","edit";),
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_EDIT_2);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_edit,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/dml","","edit";),
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_ONE,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_EDIT_2);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_insert,
+ (createQName("http://zorba.io/modules/store/static/collections/dml","","insert";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.STRUCTURED_ITEM_TYPE_STAR,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_INSERT_2);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_truncate,
+ (createQName("http://zorba.io/modules/store/static/collections/dml","","truncate";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DML_TRUNCATE_1);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_dml_truncate,
+ (createQName("http://zorba.io/modules/store/dynamic/collections/dml","","truncate";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.EMPTY_TYPE),
+ FunctionConsts::ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_TRUNCATE_1);
}
@@ -1239,7 +873,7 @@
{
DECL_WITH_KIND(sctx, zorba_store_indexes_static_ddl_is_available_index,
- (createQName("http://www.zorba-xquery.com/modules/store/static/indexes/ddl","","is-available-index";),
+ (createQName("http://zorba.io/modules/store/static/indexes/ddl","","is-available-index";),
GENV_TYPESYSTEM.QNAME_TYPE_ONE,
GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
FunctionConsts::ZORBA_STORE_INDEXES_STATIC_DDL_IS_AVAILABLE_INDEX_1);
@@ -1251,7 +885,7 @@
{
DECL_WITH_KIND(sctx, zorba_store_indexes_static_ddl_available_indexes,
- (createQName("http://www.zorba-xquery.com/modules/store/static/indexes/ddl","","available-indexes";),
+ (createQName("http://zorba.io/modules/store/static/indexes/ddl","","available-indexes";),
GENV_TYPESYSTEM.QNAME_TYPE_STAR),
FunctionConsts::ZORBA_STORE_INDEXES_STATIC_DDL_AVAILABLE_INDEXES_0);
@@ -1261,45 +895,45 @@
{
- DECL_WITH_KIND(sctx, zorba_store_integrity_constraints_static_ddl_is_activated_integrity_constraint,
- (createQName("http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl","","is-activated-integrity-constraint";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
- FunctionConsts::ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_IS_ACTIVATED_INTEGRITY_CONSTRAINT_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, zorba_store_integrity_constraints_static_ddl_activated_integrity_constraints,
- (createQName("http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl","","activated-integrity-constraints";),
- GENV_TYPESYSTEM.QNAME_TYPE_STAR),
- FunctionConsts::ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_ACTIVATED_INTEGRITY_CONSTRAINTS_0);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_ddl_is_declared_collection,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/ddl","","is-declared-collection";),
- GENV_TYPESYSTEM.QNAME_TYPE_ONE,
- GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
- FunctionConsts::STATIC_COLLECTIONS_DDL_IS_DECLARED_COLLECTION_1);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, static_collections_ddl_declared_collections,
- (createQName("http://www.zorba-xquery.com/modules/store/static/collections/ddl","","declared-collections";),
- GENV_TYPESYSTEM.QNAME_TYPE_STAR),
- FunctionConsts::STATIC_COLLECTIONS_DDL_DECLARED_COLLECTIONS_0);
+ DECL_WITH_KIND(sctx, zorba_store_static_integrity_constraints_ddl_is_activated_integrity_constraint,
+ (createQName("http://zorba.io/modules/store/static/integrity-constraints/ddl","","is-activated-integrity-constraint";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
+ FunctionConsts::ZORBA_STORE_STATIC_INTEGRITY_CONSTRAINTS_DDL_IS_ACTIVATED_INTEGRITY_CONSTRAINT_1);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_integrity_constraints_ddl_activated_integrity_constraints,
+ (createQName("http://zorba.io/modules/store/static/integrity-constraints/ddl","","activated-integrity-constraints";),
+ GENV_TYPESYSTEM.QNAME_TYPE_STAR),
+ FunctionConsts::ZORBA_STORE_STATIC_INTEGRITY_CONSTRAINTS_DDL_ACTIVATED_INTEGRITY_CONSTRAINTS_0);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_ddl_is_declared_collection,
+ (createQName("http://zorba.io/modules/store/static/collections/ddl","","is-declared-collection";),
+ GENV_TYPESYSTEM.QNAME_TYPE_ONE,
+ GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DDL_IS_DECLARED_COLLECTION_1);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_static_collections_ddl_declared_collections,
+ (createQName("http://zorba.io/modules/store/static/collections/ddl","","declared-collections";),
+ GENV_TYPESYSTEM.QNAME_TYPE_STAR),
+ FunctionConsts::ZORBA_STORE_STATIC_COLLECTIONS_DDL_DECLARED_COLLECTIONS_0);
}
@@ -1308,7 +942,7 @@
{
DECL_WITH_KIND(sctx, zorba_store_indexes_static_ddl_is_declared_index,
- (createQName("http://www.zorba-xquery.com/modules/store/static/indexes/ddl","","is-declared-index";),
+ (createQName("http://zorba.io/modules/store/static/indexes/ddl","","is-declared-index";),
GENV_TYPESYSTEM.QNAME_TYPE_ONE,
GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
FunctionConsts::ZORBA_STORE_INDEXES_STATIC_DDL_IS_DECLARED_INDEX_1);
@@ -1320,7 +954,7 @@
{
DECL_WITH_KIND(sctx, zorba_store_indexes_static_ddl_declared_indexes,
- (createQName("http://www.zorba-xquery.com/modules/store/static/indexes/ddl","","declared-indexes";),
+ (createQName("http://zorba.io/modules/store/static/indexes/ddl","","declared-indexes";),
GENV_TYPESYSTEM.QNAME_TYPE_STAR),
FunctionConsts::ZORBA_STORE_INDEXES_STATIC_DDL_DECLARED_INDEXES_0);
@@ -1330,11 +964,11 @@
{
- DECL_WITH_KIND(sctx, zorba_store_integrity_constraints_static_ddl_is_declared_integrity_constraint,
- (createQName("http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl","","is-declared-integrity-constraint";),
+ DECL_WITH_KIND(sctx, zorba_store_static_integrity_constraints_ddl_is_declared_integrity_constraint,
+ (createQName("http://zorba.io/modules/store/static/integrity-constraints/ddl","","is-declared-integrity-constraint";),
GENV_TYPESYSTEM.QNAME_TYPE_ONE,
GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
- FunctionConsts::ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_IS_DECLARED_INTEGRITY_CONSTRAINT_1);
+ FunctionConsts::ZORBA_STORE_STATIC_INTEGRITY_CONSTRAINTS_DDL_IS_DECLARED_INTEGRITY_CONSTRAINT_1);
}
@@ -1342,10 +976,10 @@
{
- DECL_WITH_KIND(sctx, zorba_store_integrity_constraints_static_ddl_declared_integrity_constraints,
- (createQName("http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl","","declared-integrity-constraints";),
+ DECL_WITH_KIND(sctx, zorba_store_static_integrity_constraints_ddl_declared_integrity_constraints,
+ (createQName("http://zorba.io/modules/store/static/integrity-constraints/ddl","","declared-integrity-constraints";),
GENV_TYPESYSTEM.QNAME_TYPE_STAR),
- FunctionConsts::ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_DECLARED_INTEGRITY_CONSTRAINTS_0);
+ FunctionConsts::ZORBA_STORE_STATIC_INTEGRITY_CONSTRAINTS_DDL_DECLARED_INTEGRITY_CONSTRAINTS_0);
}
=== modified file 'src/functions/pregenerated/func_collections.h'
--- src/functions/pregenerated/func_collections.h 2013-03-05 23:11:50 +0000
+++ src/functions/pregenerated/func_collections.h 2013-10-09 23:30:21 +0000
@@ -38,11 +38,11 @@
-//static-collections-ddl:create
-class static_collections_ddl_create : public function
+//zorba-store-static-collections-ddl:create
+class zorba_store_static_collections_ddl_create : public function
{
public:
- static_collections_ddl_create(const signature& sig, FunctionConsts::FunctionKind kind)
+ zorba_store_static_collections_ddl_create(const signature& sig, FunctionConsts::FunctionKind kind)
:
function(sig, kind)
{
@@ -59,11 +59,11 @@
};
-//static-collections-ddl:delete
-class static_collections_ddl_delete : public function
+//zorba-store-static-collections-ddl:delete
+class zorba_store_static_collections_ddl_delete : public function
{
public:
- static_collections_ddl_delete(const signature& sig, FunctionConsts::FunctionKind kind)
+ zorba_store_static_collections_ddl_delete(const signature& sig, FunctionConsts::FunctionKind kind)
:
function(sig, kind)
{
@@ -80,11 +80,11 @@
};
-//static-collections-ddl:is-available-collection
-class static_collections_ddl_is_available_collection : public function
+//zorba-store-static-collections-ddl:is-available-collection
+class zorba_store_static_collections_ddl_is_available_collection : public function
{
public:
- static_collections_ddl_is_available_collection(const signature& sig, FunctionConsts::FunctionKind kind)
+ zorba_store_static_collections_ddl_is_available_collection(const signature& sig, FunctionConsts::FunctionKind kind)
:
function(sig, kind)
{
@@ -97,11 +97,11 @@
};
-//static-collections-ddl:available-collections
-class static_collections_ddl_available_collections : public function
+//zorba-store-static-collections-ddl:available-collections
+class zorba_store_static_collections_ddl_available_collections : public function
{
public:
- static_collections_ddl_available_collections(const signature& sig, FunctionConsts::FunctionKind kind)
+ zorba_store_static_collections_ddl_available_collections(const signature& sig, FunctionConsts::FunctionKind kind)
:
function(sig, kind)
{
@@ -133,11 +133,11 @@
};
-//static-collections-dml:collection
-class static_collections_dml_collection : public function
+//zorba-store-static-collections-dml:collection
+class zorba_store_static_collections_dml_collection : public function
{
public:
- static_collections_dml_collection(const signature& sig, FunctionConsts::FunctionKind kind)
+ zorba_store_static_collections_dml_collection(const signature& sig, FunctionConsts::FunctionKind kind)
:
function(sig, kind)
{
@@ -164,289 +164,266 @@
};
-//static-collections-dml:collection-name
-class static_collections_dml_collection_name : public function
-{
-public:
- static_collections_dml_collection_name(const signature& sig, FunctionConsts::FunctionKind kind)
- :
- function(sig, kind)
- {
-
- }
-
- bool accessesDynCtx() const { return true; }
-
- bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
-
- CODEGEN_DECL();
-};
-
-
-//static-collections-dml:index-of
-class static_collections_dml_index_of : public function
-{
-public:
- static_collections_dml_index_of(const signature& sig, FunctionConsts::FunctionKind kind)
- :
- function(sig, kind)
- {
-
- }
-
- bool accessesDynCtx() const { return true; }
-
- bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
-
- CODEGEN_DECL();
-};
-
-
-//static-collections-dml:insert-nodes
-class static_collections_dml_insert_nodes : public function
-{
-public:
- static_collections_dml_insert_nodes(const signature& sig, FunctionConsts::FunctionKind kind)
- :
- function(sig, kind)
- {
-
- }
-
- unsigned short getScriptingKind() const { return UPDATING_EXPR; }
-
- bool accessesDynCtx() const { return true; }
-
- bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 1; }
-
- void processPragma(expr*, const std::vector<pragma*>&) const;
-
- CODEGEN_DECL();
-};
-
-
-//static-collections-dml:insert-nodes-first
-class static_collections_dml_insert_nodes_first : public function
-{
-public:
- static_collections_dml_insert_nodes_first(const signature& sig, FunctionConsts::FunctionKind kind)
- :
- function(sig, kind)
- {
-
- }
-
- unsigned short getScriptingKind() const { return UPDATING_EXPR; }
-
- bool accessesDynCtx() const { return true; }
-
- bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 1; }
-
- void processPragma(expr*, const std::vector<pragma*>&) const;
-
- CODEGEN_DECL();
-};
-
-
-//static-collections-dml:insert-nodes-last
-class static_collections_dml_insert_nodes_last : public function
-{
-public:
- static_collections_dml_insert_nodes_last(const signature& sig, FunctionConsts::FunctionKind kind)
- :
- function(sig, kind)
- {
-
- }
-
- unsigned short getScriptingKind() const { return UPDATING_EXPR; }
-
- bool accessesDynCtx() const { return true; }
-
- bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 1; }
-
- void processPragma(expr*, const std::vector<pragma*>&) const;
-
- CODEGEN_DECL();
-};
-
-
-//static-collections-dml:insert-nodes-before
-class static_collections_dml_insert_nodes_before : public function
-{
-public:
- static_collections_dml_insert_nodes_before(const signature& sig, FunctionConsts::FunctionKind kind)
- :
- function(sig, kind)
- {
-
- }
-
- unsigned short getScriptingKind() const { return UPDATING_EXPR; }
-
- bool accessesDynCtx() const { return true; }
-
- bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 2; }
-
- void processPragma(expr*, const std::vector<pragma*>&) const;
-
- CODEGEN_DECL();
-};
-
-
-//static-collections-dml:insert-nodes-after
-class static_collections_dml_insert_nodes_after : public function
-{
-public:
- static_collections_dml_insert_nodes_after(const signature& sig, FunctionConsts::FunctionKind kind)
- :
- function(sig, kind)
- {
-
- }
-
- unsigned short getScriptingKind() const { return UPDATING_EXPR; }
-
- bool accessesDynCtx() const { return true; }
-
- bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 2; }
-
- void processPragma(expr*, const std::vector<pragma*>&) const;
-
- CODEGEN_DECL();
-};
-
-
-//static-collections-dml:apply-insert-nodes
-class static_collections_dml_apply_insert_nodes : public function
-{
-public:
- static_collections_dml_apply_insert_nodes(const signature& sig, FunctionConsts::FunctionKind kind)
- :
- function(sig, kind)
- {
-
- }
-
- unsigned short getScriptingKind() const { return APPLYING_EXPR; }
-
- bool accessesDynCtx() const { return true; }
-
- bool propagatesInputNodes(expr* fo, csize producer) const;
-
- bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 1; }
-
- void processPragma(expr*, const std::vector<pragma*>&) const;
-
- CODEGEN_DECL();
-};
-
-
-//static-collections-dml:apply-insert-nodes-first
-class static_collections_dml_apply_insert_nodes_first : public function
-{
-public:
- static_collections_dml_apply_insert_nodes_first(const signature& sig, FunctionConsts::FunctionKind kind)
- :
- function(sig, kind)
- {
-
- }
-
- unsigned short getScriptingKind() const { return APPLYING_EXPR; }
-
- bool accessesDynCtx() const { return true; }
-
- bool propagatesInputNodes(expr* fo, csize producer) const;
-
- bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 1; }
-
- void processPragma(expr*, const std::vector<pragma*>&) const;
-
- CODEGEN_DECL();
-};
-
-
-//static-collections-dml:apply-insert-nodes-last
-class static_collections_dml_apply_insert_nodes_last : public function
-{
-public:
- static_collections_dml_apply_insert_nodes_last(const signature& sig, FunctionConsts::FunctionKind kind)
- :
- function(sig, kind)
- {
-
- }
-
- unsigned short getScriptingKind() const { return APPLYING_EXPR; }
-
- bool accessesDynCtx() const { return true; }
-
- bool propagatesInputNodes(expr* fo, csize producer) const;
-
- bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 1; }
-
- void processPragma(expr*, const std::vector<pragma*>&) const;
-
- CODEGEN_DECL();
-};
-
-
-//static-collections-dml:apply-insert-nodes-before
-class static_collections_dml_apply_insert_nodes_before : public function
-{
-public:
- static_collections_dml_apply_insert_nodes_before(const signature& sig, FunctionConsts::FunctionKind kind)
- :
- function(sig, kind)
- {
-
- }
-
- unsigned short getScriptingKind() const { return APPLYING_EXPR; }
-
- bool accessesDynCtx() const { return true; }
-
- bool propagatesInputNodes(expr* fo, csize producer) const;
-
- bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 2; }
-
- void processPragma(expr*, const std::vector<pragma*>&) const;
-
- CODEGEN_DECL();
-};
-
-
-//static-collections-dml:apply-insert-nodes-after
-class static_collections_dml_apply_insert_nodes_after : public function
-{
-public:
- static_collections_dml_apply_insert_nodes_after(const signature& sig, FunctionConsts::FunctionKind kind)
- :
- function(sig, kind)
- {
-
- }
-
- unsigned short getScriptingKind() const { return APPLYING_EXPR; }
-
- bool accessesDynCtx() const { return true; }
-
- bool propagatesInputNodes(expr* fo, csize producer) const;
-
- bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 2; }
-
- void processPragma(expr*, const std::vector<pragma*>&) const;
-
- CODEGEN_DECL();
-};
-
-
-//static-collections-dml:delete-nodes
-class static_collections_dml_delete_nodes : public function
-{
-public:
- static_collections_dml_delete_nodes(const signature& sig, FunctionConsts::FunctionKind kind)
+//zorba-store-static-collections-dml:collection-name
+class zorba_store_static_collections_dml_collection_name : public function
+{
+public:
+ zorba_store_static_collections_dml_collection_name(const signature& sig, FunctionConsts::FunctionKind kind)
+ :
+ function(sig, kind)
+ {
+
+ }
+
+ bool accessesDynCtx() const { return true; }
+
+ bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
+
+ CODEGEN_DECL();
+};
+
+
+//zorba-store-static-collections-dml:index-of
+class zorba_store_static_collections_dml_index_of : public function
+{
+public:
+ zorba_store_static_collections_dml_index_of(const signature& sig, FunctionConsts::FunctionKind kind)
+ :
+ function(sig, kind)
+ {
+
+ }
+
+ bool accessesDynCtx() const { return true; }
+
+ bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
+
+ CODEGEN_DECL();
+};
+
+
+//zorba-store-static-collections-dml:apply-insert
+class zorba_store_static_collections_dml_apply_insert : public function
+{
+public:
+ zorba_store_static_collections_dml_apply_insert(const signature& sig, FunctionConsts::FunctionKind kind)
+ :
+ function(sig, kind)
+ {
+
+ }
+
+ unsigned short getScriptingKind() const { return APPLYING_EXPR; }
+
+ bool accessesDynCtx() const { return true; }
+
+ bool propagatesInputNodes(expr* fo, csize producer) const;
+
+ bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 1; }
+
+ void processPragma(expr*, const std::vector<pragma*>&) const;
+
+ CODEGEN_DECL();
+};
+
+
+//zorba-store-static-collections-dml:insert-after
+class zorba_store_static_collections_dml_insert_after : public function
+{
+public:
+ zorba_store_static_collections_dml_insert_after(const signature& sig, FunctionConsts::FunctionKind kind)
+ :
+ function(sig, kind)
+ {
+
+ }
+
+ unsigned short getScriptingKind() const { return UPDATING_EXPR; }
+
+ bool accessesDynCtx() const { return true; }
+
+ bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 2; }
+
+ void processPragma(expr*, const std::vector<pragma*>&) const;
+
+ CODEGEN_DECL();
+};
+
+
+//zorba-store-static-collections-dml:insert-before
+class zorba_store_static_collections_dml_insert_before : public function
+{
+public:
+ zorba_store_static_collections_dml_insert_before(const signature& sig, FunctionConsts::FunctionKind kind)
+ :
+ function(sig, kind)
+ {
+
+ }
+
+ unsigned short getScriptingKind() const { return UPDATING_EXPR; }
+
+ bool accessesDynCtx() const { return true; }
+
+ bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 2; }
+
+ void processPragma(expr*, const std::vector<pragma*>&) const;
+
+ CODEGEN_DECL();
+};
+
+
+//zorba-store-static-collections-dml:insert-first
+class zorba_store_static_collections_dml_insert_first : public function
+{
+public:
+ zorba_store_static_collections_dml_insert_first(const signature& sig, FunctionConsts::FunctionKind kind)
+ :
+ function(sig, kind)
+ {
+
+ }
+
+ unsigned short getScriptingKind() const { return UPDATING_EXPR; }
+
+ bool accessesDynCtx() const { return true; }
+
+ bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 1; }
+
+ void processPragma(expr*, const std::vector<pragma*>&) const;
+
+ CODEGEN_DECL();
+};
+
+
+//zorba-store-static-collections-dml:insert-last
+class zorba_store_static_collections_dml_insert_last : public function
+{
+public:
+ zorba_store_static_collections_dml_insert_last(const signature& sig, FunctionConsts::FunctionKind kind)
+ :
+ function(sig, kind)
+ {
+
+ }
+
+ unsigned short getScriptingKind() const { return UPDATING_EXPR; }
+
+ bool accessesDynCtx() const { return true; }
+
+ bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 1; }
+
+ void processPragma(expr*, const std::vector<pragma*>&) const;
+
+ CODEGEN_DECL();
+};
+
+
+//zorba-store-static-collections-dml:apply-insert-first
+class zorba_store_static_collections_dml_apply_insert_first : public function
+{
+public:
+ zorba_store_static_collections_dml_apply_insert_first(const signature& sig, FunctionConsts::FunctionKind kind)
+ :
+ function(sig, kind)
+ {
+
+ }
+
+ unsigned short getScriptingKind() const { return APPLYING_EXPR; }
+
+ bool accessesDynCtx() const { return true; }
+
+ bool propagatesInputNodes(expr* fo, csize producer) const;
+
+ bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 1; }
+
+ void processPragma(expr*, const std::vector<pragma*>&) const;
+
+ CODEGEN_DECL();
+};
+
+
+//zorba-store-static-collections-dml:apply-insert-last
+class zorba_store_static_collections_dml_apply_insert_last : public function
+{
+public:
+ zorba_store_static_collections_dml_apply_insert_last(const signature& sig, FunctionConsts::FunctionKind kind)
+ :
+ function(sig, kind)
+ {
+
+ }
+
+ unsigned short getScriptingKind() const { return APPLYING_EXPR; }
+
+ bool accessesDynCtx() const { return true; }
+
+ bool propagatesInputNodes(expr* fo, csize producer) const;
+
+ bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 1; }
+
+ void processPragma(expr*, const std::vector<pragma*>&) const;
+
+ CODEGEN_DECL();
+};
+
+
+//zorba-store-static-collections-dml:apply-insert-before
+class zorba_store_static_collections_dml_apply_insert_before : public function
+{
+public:
+ zorba_store_static_collections_dml_apply_insert_before(const signature& sig, FunctionConsts::FunctionKind kind)
+ :
+ function(sig, kind)
+ {
+
+ }
+
+ unsigned short getScriptingKind() const { return APPLYING_EXPR; }
+
+ bool accessesDynCtx() const { return true; }
+
+ bool propagatesInputNodes(expr* fo, csize producer) const;
+
+ bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 2; }
+
+ void processPragma(expr*, const std::vector<pragma*>&) const;
+
+ CODEGEN_DECL();
+};
+
+
+//zorba-store-static-collections-dml:apply-insert-after
+class zorba_store_static_collections_dml_apply_insert_after : public function
+{
+public:
+ zorba_store_static_collections_dml_apply_insert_after(const signature& sig, FunctionConsts::FunctionKind kind)
+ :
+ function(sig, kind)
+ {
+
+ }
+
+ unsigned short getScriptingKind() const { return APPLYING_EXPR; }
+
+ bool accessesDynCtx() const { return true; }
+
+ bool propagatesInputNodes(expr* fo, csize producer) const;
+
+ bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 2; }
+
+ void processPragma(expr*, const std::vector<pragma*>&) const;
+
+ CODEGEN_DECL();
+};
+
+
+//zorba-store-static-collections-dml:delete
+class zorba_store_static_collections_dml_delete : public function
+{
+public:
+ zorba_store_static_collections_dml_delete(const signature& sig, FunctionConsts::FunctionKind kind)
:
function(sig, kind)
{
@@ -467,76 +444,99 @@
};
-//static-collections-dml:delete-node-first
-class static_collections_dml_delete_node_first : public function
-{
-public:
- static_collections_dml_delete_node_first(const signature& sig, FunctionConsts::FunctionKind kind)
- :
- function(sig, kind)
- {
-
- }
-
- unsigned short getScriptingKind() const { return UPDATING_EXPR; }
-
- bool accessesDynCtx() const { return true; }
-
- bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
-
- CODEGEN_DECL();
-};
-
-
-//static-collections-dml:delete-node-last
-class static_collections_dml_delete_node_last : public function
-{
-public:
- static_collections_dml_delete_node_last(const signature& sig, FunctionConsts::FunctionKind kind)
- :
- function(sig, kind)
- {
-
- }
-
- unsigned short getScriptingKind() const { return UPDATING_EXPR; }
-
- bool accessesDynCtx() const { return true; }
-
- bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
-
- CODEGEN_DECL();
-};
-
-
-//static-collections-dml:edit
-class static_collections_dml_edit : public function
-{
-public:
- static_collections_dml_edit(const signature& sig, FunctionConsts::FunctionKind kind)
- :
- function(sig, kind)
- {
-
- }
-
- unsigned short getScriptingKind() const { return UPDATING_EXPR; }
-
- bool accessesDynCtx() const { return true; }
-
- bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 1; }
-
- void processPragma(expr*, const std::vector<pragma*>&) const;
-
- CODEGEN_DECL();
-};
-
-
-//static-collections-dml:truncate
-class static_collections_dml_truncate : public function
-{
-public:
- static_collections_dml_truncate(const signature& sig, FunctionConsts::FunctionKind kind)
+//zorba-store-static-collections-dml:delete-first
+class zorba_store_static_collections_dml_delete_first : public function
+{
+public:
+ zorba_store_static_collections_dml_delete_first(const signature& sig, FunctionConsts::FunctionKind kind)
+ :
+ function(sig, kind)
+ {
+
+ }
+
+ unsigned short getScriptingKind() const { return UPDATING_EXPR; }
+
+ bool accessesDynCtx() const { return true; }
+
+ bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
+
+ CODEGEN_DECL();
+};
+
+
+//zorba-store-static-collections-dml:delete-last
+class zorba_store_static_collections_dml_delete_last : public function
+{
+public:
+ zorba_store_static_collections_dml_delete_last(const signature& sig, FunctionConsts::FunctionKind kind)
+ :
+ function(sig, kind)
+ {
+
+ }
+
+ unsigned short getScriptingKind() const { return UPDATING_EXPR; }
+
+ bool accessesDynCtx() const { return true; }
+
+ bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
+
+ CODEGEN_DECL();
+};
+
+
+//zorba-store-static-collections-dml:edit
+class zorba_store_static_collections_dml_edit : public function
+{
+public:
+ zorba_store_static_collections_dml_edit(const signature& sig, FunctionConsts::FunctionKind kind)
+ :
+ function(sig, kind)
+ {
+
+ }
+
+ unsigned short getScriptingKind() const { return UPDATING_EXPR; }
+
+ bool accessesDynCtx() const { return true; }
+
+ bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 1; }
+
+ void processPragma(expr*, const std::vector<pragma*>&) const;
+
+ CODEGEN_DECL();
+};
+
+
+//zorba-store-static-collections-dml:insert
+class zorba_store_static_collections_dml_insert : public function
+{
+public:
+ zorba_store_static_collections_dml_insert(const signature& sig, FunctionConsts::FunctionKind kind)
+ :
+ function(sig, kind)
+ {
+
+ }
+
+ unsigned short getScriptingKind() const { return UPDATING_EXPR; }
+
+ bool accessesDynCtx() const { return true; }
+
+ bool mustCopyInputNodes(expr* fo, csize producer) const { return producer == 1; }
+
+ void processPragma(expr*, const std::vector<pragma*>&) const;
+
+ CODEGEN_DECL();
+};
+
+
+//zorba-store-static-collections-dml:truncate
+class zorba_store_static_collections_dml_truncate : public function
+{
+public:
+ zorba_store_static_collections_dml_truncate(const signature& sig, FunctionConsts::FunctionKind kind)
:
function(sig, kind)
{
@@ -585,60 +585,60 @@
};
-//zorba-store-integrity_constraints-static-ddl:is-activated-integrity-constraint
-class zorba_store_integrity_constraints_static_ddl_is_activated_integrity_constraint : public function
-{
-public:
- zorba_store_integrity_constraints_static_ddl_is_activated_integrity_constraint(const signature& sig, FunctionConsts::FunctionKind kind)
- :
- function(sig, kind)
- {
-
- }
-
- bool accessesDynCtx() const { return true; }
-
- CODEGEN_DECL();
-};
-
-
-//zorba-store-integrity_constraints-static-ddl:activated-integrity-constraints
-class zorba_store_integrity_constraints_static_ddl_activated_integrity_constraints : public function
-{
-public:
- zorba_store_integrity_constraints_static_ddl_activated_integrity_constraints(const signature& sig, FunctionConsts::FunctionKind kind)
- :
- function(sig, kind)
- {
-
- }
-
- bool accessesDynCtx() const { return true; }
-
- CODEGEN_DECL();
-};
-
-
-//static-collections-ddl:is-declared-collection
-class static_collections_ddl_is_declared_collection : public function
-{
-public:
- static_collections_ddl_is_declared_collection(const signature& sig, FunctionConsts::FunctionKind kind)
- :
- function(sig, kind)
- {
-
- }
-
- CODEGEN_DECL();
-};
-
-
-//static-collections-ddl:declared-collections
-class static_collections_ddl_declared_collections : public function
-{
-public:
- static_collections_ddl_declared_collections(const signature& sig, FunctionConsts::FunctionKind kind)
+//zorba-store-static-integrity-constraints-ddl:is-activated-integrity-constraint
+class zorba_store_static_integrity_constraints_ddl_is_activated_integrity_constraint : public function
+{
+public:
+ zorba_store_static_integrity_constraints_ddl_is_activated_integrity_constraint(const signature& sig, FunctionConsts::FunctionKind kind)
+ :
+ function(sig, kind)
+ {
+
+ }
+
+ bool accessesDynCtx() const { return true; }
+
+ CODEGEN_DECL();
+};
+
+
+//zorba-store-static-integrity-constraints-ddl:activated-integrity-constraints
+class zorba_store_static_integrity_constraints_ddl_activated_integrity_constraints : public function
+{
+public:
+ zorba_store_static_integrity_constraints_ddl_activated_integrity_constraints(const signature& sig, FunctionConsts::FunctionKind kind)
+ :
+ function(sig, kind)
+ {
+
+ }
+
+ bool accessesDynCtx() const { return true; }
+
+ CODEGEN_DECL();
+};
+
+
+//zorba-store-static-collections-ddl:is-declared-collection
+class zorba_store_static_collections_ddl_is_declared_collection : public function
+{
+public:
+ zorba_store_static_collections_ddl_is_declared_collection(const signature& sig, FunctionConsts::FunctionKind kind)
+ :
+ function(sig, kind)
+ {
+
+ }
+
+ CODEGEN_DECL();
+};
+
+
+//zorba-store-static-collections-ddl:declared-collections
+class zorba_store_static_collections_ddl_declared_collections : public function
+{
+public:
+ zorba_store_static_collections_ddl_declared_collections(const signature& sig, FunctionConsts::FunctionKind kind)
:
function(sig, kind)
{
@@ -679,11 +679,11 @@
};
-//zorba-store-integrity_constraints-static-ddl:is-declared-integrity-constraint
-class zorba_store_integrity_constraints_static_ddl_is_declared_integrity_constraint : public function
+//zorba-store-static-integrity-constraints-ddl:is-declared-integrity-constraint
+class zorba_store_static_integrity_constraints_ddl_is_declared_integrity_constraint : public function
{
public:
- zorba_store_integrity_constraints_static_ddl_is_declared_integrity_constraint(const signature& sig, FunctionConsts::FunctionKind kind)
+ zorba_store_static_integrity_constraints_ddl_is_declared_integrity_constraint(const signature& sig, FunctionConsts::FunctionKind kind)
:
function(sig, kind)
{
@@ -694,11 +694,11 @@
};
-//zorba-store-integrity_constraints-static-ddl:declared-integrity-constraints
-class zorba_store_integrity_constraints_static_ddl_declared_integrity_constraints : public function
+//zorba-store-static-integrity-constraints-ddl:declared-integrity-constraints
+class zorba_store_static_integrity_constraints_ddl_declared_integrity_constraints : public function
{
public:
- zorba_store_integrity_constraints_static_ddl_declared_integrity_constraints(const signature& sig, FunctionConsts::FunctionKind kind)
+ zorba_store_static_integrity_constraints_ddl_declared_integrity_constraints(const signature& sig, FunctionConsts::FunctionKind kind)
:
function(sig, kind)
{
=== modified file 'src/functions/pregenerated/func_documents.cpp'
--- src/functions/pregenerated/func_documents.cpp 2013-03-05 23:11:50 +0000
+++ src/functions/pregenerated/func_documents.cpp 2013-10-09 23:30:21 +0000
@@ -31,6 +31,26 @@
+PlanIter_t zorba_store_documents_available_documents::codegen(
+ CompilerCB*,
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& argv,
+ expr& ann) const
+{
+ return new AvailableDocumentsIterator(sctx, loc, argv);
+}
+
+PlanIter_t zorba_store_documents_is_available_document::codegen(
+ CompilerCB*,
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& argv,
+ expr& ann) const
+{
+ return new IsAvailableDocumentIterator(sctx, loc, argv);
+}
+
PlanIter_t zorba_store_documents_put::codegen(
CompilerCB*,
static_context* sctx,
@@ -61,33 +81,36 @@
return new RetrieveDocumentIterator(sctx, loc, argv);
}
-PlanIter_t zorba_store_documents_available_documents::codegen(
- CompilerCB*,
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& argv,
- expr& ann) const
-{
- return new AvailableDocumentsIterator(sctx, loc, argv);
-}
-
-PlanIter_t zorba_store_documents_is_available_document::codegen(
- CompilerCB*,
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& argv,
- expr& ann) const
-{
- return new IsAvailableDocumentIterator(sctx, loc, argv);
-}
-
void populate_context_documents(static_context* sctx)
{
{
+ DECL_WITH_KIND(sctx, zorba_store_documents_available_documents,
+ (createQName("http://zorba.io/modules/store/documents","","available-documents";),
+ GENV_TYPESYSTEM.STRING_TYPE_STAR),
+ FunctionConsts::ZORBA_STORE_DOCUMENTS_AVAILABLE_DOCUMENTS_0);
+
+ }
+
+
+
+
+ {
+ DECL_WITH_KIND(sctx, zorba_store_documents_is_available_document,
+ (createQName("http://zorba.io/modules/store/documents","","is-available-document";),
+ GENV_TYPESYSTEM.STRING_TYPE_ONE,
+ GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
+ FunctionConsts::ZORBA_STORE_DOCUMENTS_IS_AVAILABLE_DOCUMENT_1);
+
+ }
+
+
+
+
+ {
DECL_WITH_KIND(sctx, zorba_store_documents_put,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/documents","","put";),
+ (createQName("http://zorba.io/modules/store/documents","","put";),
GENV_TYPESYSTEM.STRING_TYPE_ONE,
GENV_TYPESYSTEM.DOCUMENT_TYPE_ONE,
GENV_TYPESYSTEM.EMPTY_TYPE),
@@ -100,7 +123,7 @@
{
DECL_WITH_KIND(sctx, zorba_store_documents_remove,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/documents","","remove";),
+ (createQName("http://zorba.io/modules/store/documents","","remove";),
GENV_TYPESYSTEM.STRING_TYPE_ONE,
GENV_TYPESYSTEM.EMPTY_TYPE),
FunctionConsts::ZORBA_STORE_DOCUMENTS_REMOVE_1);
@@ -112,36 +135,13 @@
{
DECL_WITH_KIND(sctx, zorba_store_documents_document,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/documents","","document";),
+ (createQName("http://zorba.io/modules/store/documents","","document";),
GENV_TYPESYSTEM.STRING_TYPE_ONE,
GENV_TYPESYSTEM.DOCUMENT_TYPE_ONE),
FunctionConsts::ZORBA_STORE_DOCUMENTS_DOCUMENT_1);
}
-
-
-
- {
- DECL_WITH_KIND(sctx, zorba_store_documents_available_documents,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/documents","","available-documents";),
- GENV_TYPESYSTEM.STRING_TYPE_STAR),
- FunctionConsts::ZORBA_STORE_DOCUMENTS_AVAILABLE_DOCUMENTS_0);
-
- }
-
-
-
-
- {
- DECL_WITH_KIND(sctx, zorba_store_documents_is_available_document,
- (createQName("http://www.zorba-xquery.com/modules/store/dynamic/documents","","is-available-document";),
- GENV_TYPESYSTEM.STRING_TYPE_ONE,
- GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
- FunctionConsts::ZORBA_STORE_DOCUMENTS_IS_AVAILABLE_DOCUMENT_1);
-
- }
-
}
=== modified file 'src/functions/pregenerated/func_documents.h'
--- src/functions/pregenerated/func_documents.h 2013-03-05 23:11:50 +0000
+++ src/functions/pregenerated/func_documents.h 2013-10-09 23:30:21 +0000
@@ -38,6 +38,40 @@
+//zorba-store-documents:available-documents
+class zorba_store_documents_available_documents : public function
+{
+public:
+ zorba_store_documents_available_documents(const signature& sig, FunctionConsts::FunctionKind kind)
+ :
+ function(sig, kind)
+ {
+
+ }
+
+ bool accessesDynCtx() const { return true; }
+
+ CODEGEN_DECL();
+};
+
+
+//zorba-store-documents:is-available-document
+class zorba_store_documents_is_available_document : public function
+{
+public:
+ zorba_store_documents_is_available_document(const signature& sig, FunctionConsts::FunctionKind kind)
+ :
+ function(sig, kind)
+ {
+
+ }
+
+ bool accessesDynCtx() const { return true; }
+
+ CODEGEN_DECL();
+};
+
+
//zorba-store-documents:put
class zorba_store_documents_put : public function
{
@@ -95,40 +129,6 @@
};
-//zorba-store-documents:available-documents
-class zorba_store_documents_available_documents : public function
-{
-public:
- zorba_store_documents_available_documents(const signature& sig, FunctionConsts::FunctionKind kind)
- :
- function(sig, kind)
- {
-
- }
-
- bool accessesDynCtx() const { return true; }
-
- CODEGEN_DECL();
-};
-
-
-//zorba-store-documents:is-available-document
-class zorba_store_documents_is_available_document : public function
-{
-public:
- zorba_store_documents_is_available_document(const signature& sig, FunctionConsts::FunctionKind kind)
- :
- function(sig, kind)
- {
-
- }
-
- bool accessesDynCtx() const { return true; }
-
- CODEGEN_DECL();
-};
-
-
} //namespace zorba
=== modified file 'src/functions/pregenerated/func_ic_ddl.cpp'
--- src/functions/pregenerated/func_ic_ddl.cpp 2013-03-05 23:11:50 +0000
+++ src/functions/pregenerated/func_ic_ddl.cpp 2013-10-09 23:30:21 +0000
@@ -67,7 +67,7 @@
{
DECL_WITH_KIND(sctx, zorba_store_integrity_constraints_static_ddl_activate,
- (createQName("http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl","","activate";),
+ (createQName("Error: could not find \"prefix\" and \"localname\" attributes for \"zorba:function\" element","","activate"),
GENV_TYPESYSTEM.QNAME_TYPE_ONE,
GENV_TYPESYSTEM.EMPTY_TYPE),
FunctionConsts::ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_ACTIVATE_1);
@@ -79,7 +79,7 @@
{
DECL_WITH_KIND(sctx, zorba_store_integrity_constraints_static_ddl_deactivate,
- (createQName("http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl","","deactivate";),
+ (createQName("Error: could not find \"prefix\" and \"localname\" attributes for \"zorba:function\" element","","deactivate"),
GENV_TYPESYSTEM.QNAME_TYPE_ONE,
GENV_TYPESYSTEM.EMPTY_TYPE),
FunctionConsts::ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_DEACTIVATE_1);
@@ -91,7 +91,7 @@
{
DECL_WITH_KIND(sctx, zorba_store_integrity_constraints_static_dml_check_integrity_constraint,
- (createQName("http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml","","check-integrity-constraint";),
+ (createQName("Error: could not find \"prefix\" and \"localname\" attributes for \"zorba:function\" element","","check-integrity-constraint"),
GENV_TYPESYSTEM.QNAME_TYPE_ONE,
GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
FunctionConsts::ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DML_CHECK_INTEGRITY_CONSTRAINT_1);
=== modified file 'src/functions/pregenerated/func_index_func.cpp'
--- src/functions/pregenerated/func_index_func.cpp 2013-03-05 23:11:50 +0000
+++ src/functions/pregenerated/func_index_func.cpp 2013-10-09 23:30:21 +0000
@@ -47,7 +47,7 @@
{
DECL_WITH_KIND(sctx, zorba_store_indexes_static_dml_keys,
- (createQName("http://www.zorba-xquery.com/modules/store/static/indexes/dml","","keys";),
+ (createQName("http://zorba.io/modules/store/static/indexes/dml","","keys";),
GENV_TYPESYSTEM.QNAME_TYPE_ONE,
GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
FunctionConsts::ZORBA_STORE_INDEXES_STATIC_DML_KEYS_1);
=== modified file 'src/functions/pregenerated/function_enum.h'
--- src/functions/pregenerated/function_enum.h 2013-10-01 23:33:19 +0000
+++ src/functions/pregenerated/function_enum.h 2013-10-09 23:30:21 +0000
@@ -41,98 +41,70 @@
OP_IS_SAME_NODE_2,
OP_NODE_BEFORE_2,
OP_NODE_AFTER_2,
- STATIC_COLLECTIONS_DDL_CREATE_1,
- STATIC_COLLECTIONS_DDL_CREATE_2,
- DYNAMIC_COLLECTIONS_DDL_CREATE_1,
- DYNAMIC_COLLECTIONS_DDL_CREATE_2,
- STATIC_COLLECTIONS_DDL_DELETE_1,
- DYNAMIC_COLLECTIONS_DDL_DELETE_1,
- STATIC_COLLECTIONS_DDL_IS_AVAILABLE_COLLECTION_1,
- DYNAMIC_COLLECTIONS_DDL_IS_AVAILABLE_COLLECTION_1,
- STATIC_COLLECTIONS_DDL_AVAILABLE_COLLECTIONS_0,
- DYNAMIC_COLLECTIONS_DDL_AVAILABLE_COLLECTIONS_0,
+ ZORBA_STORE_STATIC_COLLECTIONS_DDL_CREATE_1,
+ ZORBA_STORE_STATIC_COLLECTIONS_DDL_CREATE_2,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_CREATE_1,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_CREATE_2,
+ ZORBA_STORE_STATIC_COLLECTIONS_DDL_DELETE_1,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_DELETE_1,
+ ZORBA_STORE_STATIC_COLLECTIONS_DDL_IS_AVAILABLE_COLLECTION_1,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_IS_AVAILABLE_COLLECTION_1,
+ ZORBA_STORE_STATIC_COLLECTIONS_DDL_AVAILABLE_COLLECTIONS_0,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_AVAILABLE_COLLECTIONS_0,
FN_COLLECTION_0,
FN_COLLECTION_1,
- STATIC_COLLECTIONS_DML_COLLECTION_1,
- STATIC_COLLECTIONS_DML_COLLECTION_2,
- STATIC_COLLECTIONS_DML_COLLECTION_3,
- DYNAMIC_COLLECTIONS_DML_COLLECTION_1,
- DYNAMIC_COLLECTIONS_DML_COLLECTION_2,
- DYNAMIC_COLLECTIONS_DML_COLLECTION_3,
- STATIC_COLLECTIONS_DML_COLLECTION_NAME_1,
- DYNAMIC_COLLECTIONS_DML_COLLECTION_NAME_1,
- STATIC_COLLECTIONS_DML_INDEX_OF_1,
- DYNAMIC_COLLECTIONS_DML_INDEX_OF_1,
- STATIC_COLLECTIONS_DML_INSERT_NODES_2,
- STATIC_COLLECTIONS_DML_INSERT_2,
- STATIC_COLLECTIONS_DML_INSERT_NODES_FIRST_2,
- DYNAMIC_COLLECTIONS_DML_INSERT_NODES_FIRST_2,
- STATIC_COLLECTIONS_DML_INSERT_FIRST_2,
- DYNAMIC_COLLECTIONS_DML_INSERT_FIRST_2,
- STATIC_COLLECTIONS_DML_INSERT_NODES_LAST_2,
- DYNAMIC_COLLECTIONS_DML_INSERT_NODES_LAST_2,
- STATIC_COLLECTIONS_DML_INSERT_LAST_2,
- DYNAMIC_COLLECTIONS_DML_INSERT_LAST_2,
- STATIC_COLLECTIONS_DML_INSERT_NODES_BEFORE_3,
- DYNAMIC_COLLECTIONS_DML_INSERT_NODES_BEFORE_3,
- STATIC_COLLECTIONS_DML_INSERT_BEFORE_3,
- DYNAMIC_COLLECTIONS_DML_INSERT_BEFORE_3,
- STATIC_COLLECTIONS_DML_INSERT_NODES_AFTER_3,
- DYNAMIC_COLLECTIONS_DML_INSERT_NODES_AFTER_3,
- STATIC_COLLECTIONS_DML_INSERT_AFTER_3,
- DYNAMIC_COLLECTIONS_DML_INSERT_AFTER_3,
- STATIC_COLLECTIONS_DML_APPLY_INSERT_NODES_2,
- STATIC_COLLECTIONS_DML_APPLY_INSERT_2,
- STATIC_COLLECTIONS_DML_APPLY_INSERT_NODES_FIRST_2,
- DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_FIRST_2,
- STATIC_COLLECTIONS_DML_APPLY_INSERT_FIRST_2,
- DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_FIRST_2,
- STATIC_COLLECTIONS_DML_APPLY_INSERT_NODES_LAST_2,
- DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_LAST_2,
- STATIC_COLLECTIONS_DML_APPLY_INSERT_LAST_2,
- DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_LAST_2,
- STATIC_COLLECTIONS_DML_APPLY_INSERT_NODES_BEFORE_3,
- DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_BEFORE_3,
- STATIC_COLLECTIONS_DML_APPLY_INSERT_BEFORE_3,
- DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_BEFORE_3,
- STATIC_COLLECTIONS_DML_APPLY_INSERT_NODES_AFTER_3,
- DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_NODES_AFTER_3,
- STATIC_COLLECTIONS_DML_APPLY_INSERT_AFTER_3,
- DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_AFTER_3,
- STATIC_COLLECTIONS_DML_DELETE_NODES_1,
- DYNAMIC_COLLECTIONS_DML_DELETE_NODES_1,
- STATIC_COLLECTIONS_DML_DELETE_1,
- DYNAMIC_COLLECTIONS_DML_DELETE_1,
- STATIC_COLLECTIONS_DML_DELETE_NODE_FIRST_1,
- STATIC_COLLECTIONS_DML_DELETE_NODES_FIRST_2,
- DYNAMIC_COLLECTIONS_DML_DELETE_NODE_FIRST_1,
- DYNAMIC_COLLECTIONS_DML_DELETE_NODES_FIRST_2,
- STATIC_COLLECTIONS_DML_DELETE_FIRST_1,
- STATIC_COLLECTIONS_DML_DELETE_FIRST_2,
- DYNAMIC_COLLECTIONS_DML_DELETE_FIRST_1,
- DYNAMIC_COLLECTIONS_DML_DELETE_FIRST_2,
- STATIC_COLLECTIONS_DML_DELETE_NODE_LAST_1,
- STATIC_COLLECTIONS_DML_DELETE_NODES_LAST_2,
- DYNAMIC_COLLECTIONS_DML_DELETE_NODE_LAST_1,
- DYNAMIC_COLLECTIONS_DML_DELETE_NODES_LAST_2,
- STATIC_COLLECTIONS_DML_DELETE_LAST_1,
- STATIC_COLLECTIONS_DML_DELETE_LAST_2,
- DYNAMIC_COLLECTIONS_DML_DELETE_LAST_1,
- DYNAMIC_COLLECTIONS_DML_DELETE_LAST_2,
- STATIC_COLLECTIONS_DML_EDIT_2,
- DYNAMIC_COLLECTIONS_DML_EDIT_2,
- STATIC_COLLECTIONS_DML_TRUNCATE_1,
- DYNAMIC_COLLECTIONS_DML_TRUNCATE_1,
+ ZORBA_STORE_STATIC_COLLECTIONS_DML_COLLECTION_1,
+ ZORBA_STORE_STATIC_COLLECTIONS_DML_COLLECTION_2,
+ ZORBA_STORE_STATIC_COLLECTIONS_DML_COLLECTION_3,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_COLLECTION_1,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_COLLECTION_2,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_COLLECTION_3,
+ ZORBA_STORE_STATIC_COLLECTIONS_DML_COLLECTION_NAME_1,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_COLLECTION_NAME_1,
+ ZORBA_STORE_STATIC_COLLECTIONS_DML_INDEX_OF_1,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INDEX_OF_1,
+ ZORBA_STORE_STATIC_COLLECTIONS_DML_APPLY_INSERT_2,
+ ZORBA_STORE_STATIC_COLLECTIONS_DML_INSERT_AFTER_3,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_AFTER_3,
+ ZORBA_STORE_STATIC_COLLECTIONS_DML_INSERT_BEFORE_3,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_BEFORE_3,
+ ZORBA_STORE_STATIC_COLLECTIONS_DML_INSERT_FIRST_2,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_FIRST_2,
+ ZORBA_STORE_STATIC_COLLECTIONS_DML_INSERT_LAST_2,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_INSERT_LAST_2,
+ ZORBA_STORE_STATIC_COLLECTIONS_DML_APPLY_INSERT_FIRST_2,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_FIRST_2,
+ ZORBA_STORE_STATIC_COLLECTIONS_DML_APPLY_INSERT_LAST_2,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_LAST_2,
+ ZORBA_STORE_STATIC_COLLECTIONS_DML_APPLY_INSERT_BEFORE_3,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_BEFORE_3,
+ ZORBA_STORE_STATIC_COLLECTIONS_DML_APPLY_INSERT_AFTER_3,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_APPLY_INSERT_AFTER_3,
+ ZORBA_STORE_STATIC_COLLECTIONS_DML_DELETE_1,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_1,
+ ZORBA_STORE_STATIC_COLLECTIONS_DML_DELETE_FIRST_1,
+ ZORBA_STORE_STATIC_COLLECTIONS_DML_DELETE_FIRST_2,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_FIRST_1,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_FIRST_2,
+ ZORBA_STORE_STATIC_COLLECTIONS_DML_DELETE_LAST_1,
+ ZORBA_STORE_STATIC_COLLECTIONS_DML_DELETE_LAST_2,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_LAST_1,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_DELETE_LAST_2,
+ ZORBA_STORE_STATIC_COLLECTIONS_DML_EDIT_2,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_EDIT_2,
+ ZORBA_STORE_STATIC_COLLECTIONS_DML_INSERT_2,
+ ZORBA_STORE_STATIC_COLLECTIONS_DML_TRUNCATE_1,
+ ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_TRUNCATE_1,
ZORBA_STORE_INDEXES_STATIC_DDL_IS_AVAILABLE_INDEX_1,
ZORBA_STORE_INDEXES_STATIC_DDL_AVAILABLE_INDEXES_0,
- ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_IS_ACTIVATED_INTEGRITY_CONSTRAINT_1,
- ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_ACTIVATED_INTEGRITY_CONSTRAINTS_0,
- STATIC_COLLECTIONS_DDL_IS_DECLARED_COLLECTION_1,
- STATIC_COLLECTIONS_DDL_DECLARED_COLLECTIONS_0,
+ ZORBA_STORE_STATIC_INTEGRITY_CONSTRAINTS_DDL_IS_ACTIVATED_INTEGRITY_CONSTRAINT_1,
+ ZORBA_STORE_STATIC_INTEGRITY_CONSTRAINTS_DDL_ACTIVATED_INTEGRITY_CONSTRAINTS_0,
+ ZORBA_STORE_STATIC_COLLECTIONS_DDL_IS_DECLARED_COLLECTION_1,
+ ZORBA_STORE_STATIC_COLLECTIONS_DDL_DECLARED_COLLECTIONS_0,
ZORBA_STORE_INDEXES_STATIC_DDL_IS_DECLARED_INDEX_1,
ZORBA_STORE_INDEXES_STATIC_DDL_DECLARED_INDEXES_0,
- ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_IS_DECLARED_INTEGRITY_CONSTRAINT_1,
- ZORBA_STORE_INTEGRITY_CONSTRAINTS_STATIC_DDL_DECLARED_INTEGRITY_CONSTRAINTS_0,
+ ZORBA_STORE_STATIC_INTEGRITY_CONSTRAINTS_DDL_IS_DECLARED_INTEGRITY_CONSTRAINT_1,
+ ZORBA_STORE_STATIC_INTEGRITY_CONSTRAINTS_DDL_DECLARED_INTEGRITY_CONSTRAINTS_0,
FN_URI_COLLECTION_0,
FN_URI_COLLECTION_1,
FN_CURRENT_DATETIME_0,
@@ -445,11 +417,11 @@
FN_UNPARSED_TEXT_AVAILABLE_2,
FN_UNPARSED_TEXT_LINES_1,
FN_UNPARSED_TEXT_LINES_2,
+ ZORBA_STORE_DOCUMENTS_AVAILABLE_DOCUMENTS_0,
+ ZORBA_STORE_DOCUMENTS_IS_AVAILABLE_DOCUMENT_1,
ZORBA_STORE_DOCUMENTS_PUT_2,
ZORBA_STORE_DOCUMENTS_REMOVE_1,
ZORBA_STORE_DOCUMENTS_DOCUMENT_1,
- ZORBA_STORE_DOCUMENTS_AVAILABLE_DOCUMENTS_0,
- ZORBA_STORE_DOCUMENTS_IS_AVAILABLE_DOCUMENT_1,
ZORBA_STORE_UNORDERED_MAPS_CREATE_2,
ZORBA_STORE_UNORDERED_MAPS_CREATE_3,
ZORBA_STORE_UNORDERED_MAPS_DROP_1,
=== modified file 'src/runtime/collections/collections_impl.cpp'
--- src/runtime/collections/collections_impl.cpp 2013-09-17 21:12:49 +0000
+++ src/runtime/collections/collections_impl.cpp 2013-10-09 23:30:21 +0000
@@ -628,11 +628,11 @@
/*******************************************************************************
declare updating function
- insert-nodes($name as xs:QName, $newnode as node()*)
+ insert($name as xs:QName, $newnode as node()*)
The function will insert the given nodes to the given collection.
********************************************************************************/
-bool ZorbaInsertNodesIterator::nextImpl(
+bool ZorbaInsertIterator::nextImpl(
store::Item_t& result,
PlanState& planState) const
{
@@ -659,7 +659,7 @@
const StaticallyKnownCollection*
-ZorbaInsertNodesIterator::getCollection(
+ZorbaInsertIterator::getCollection(
const store::Item_t& name,
store::Collection_t& coll) const
{
@@ -698,13 +698,13 @@
/*******************************************************************************
declare updating function
- insert-nodes-first($name as xs:QName, $newnode as node()*) as none
+ insert-first($name as xs:QName, $newnode as node()*) as none
The function will insert the given node(s) as the first node(s) of the given
collection. If multiple nodes are inserted, the nodes remain adjacent and
their order preserves the node ordering of the source expression.
********************************************************************************/
-bool ZorbaInsertNodesFirstIterator::nextImpl(
+bool ZorbaInsertFirstIterator::nextImpl(
store::Item_t& result,
PlanState& planState) const
{
@@ -733,7 +733,7 @@
const StaticallyKnownCollection*
-ZorbaInsertNodesFirstIterator::getCollection(
+ZorbaInsertFirstIterator::getCollection(
const store::Item_t& name,
store::Collection_t& coll) const
{
@@ -776,7 +776,7 @@
/*******************************************************************************
declare updating function
- insert-nodes-last($name as xs:QName, $newnode as node()*) as none
+ insert-last($name as xs:QName, $newnode as node()*) as none
The function will insert the given node(s) as the last node(s) of the given
collection. If multiple nodes are inserted, the nodes remain adjacent and
@@ -790,7 +790,7 @@
- If the node is already in the collection, an error is raised
(ZAPI0031_NODE_ALREADY_IN_COLLECTION)
********************************************************************************/
-bool ZorbaInsertNodesLastIterator::nextImpl(
+bool ZorbaInsertLastIterator::nextImpl(
store::Item_t& result,
PlanState& planState) const
{
@@ -819,7 +819,7 @@
const StaticallyKnownCollection*
-ZorbaInsertNodesLastIterator::getCollection(
+ZorbaInsertLastIterator::getCollection(
const store::Item_t& name,
store::Collection_t& coll) const
{
@@ -856,9 +856,9 @@
/*******************************************************************************
declare updating function
- insert-nodes-before($name as xs:QName,
- $target as node(),
- $newnodes as node()*)
+ insert-before($name as xs:QName,
+ $target as node(),
+ $newnodes as node()*)
The inserted nodes become the preceding (or following) nodes of the target.
The $target should be a non-updating expression (e.g. an XPath expression)
@@ -866,7 +866,7 @@
If multiple nodes are inserted by a single insert expression, the nodes remain
adjacent and their order preserves the node ordering of the source expression.
********************************************************************************/
-bool ZorbaInsertNodesBeforeIterator::nextImpl(
+bool ZorbaInsertBeforeIterator::nextImpl(
store::Item_t& result,
PlanState& planState) const
{
@@ -901,7 +901,7 @@
const StaticallyKnownCollection*
-ZorbaInsertNodesBeforeIterator::getCollection(
+ZorbaInsertBeforeIterator::getCollection(
const store::Item_t& name,
store::Collection_t& coll) const
{
@@ -944,9 +944,9 @@
/*******************************************************************************
declare updating function
- insert-nodes-after($name as xs:QName,
- $target as node(),
- $newnode as node()*)
+ insert-after($name as xs:QName,
+ $target as node(),
+ $newnode as node()*)
The inserted nodes become the following nodes of the $target. The $target
should be a non-updating expression (e.g. an XPath expression) identifying a
@@ -954,7 +954,7 @@
are inserted by a single insert expression, the nodes remain adjacent and
their order preserves the node ordering of the source expression.
********************************************************************************/
-bool ZorbaInsertNodesAfterIterator::nextImpl(
+bool ZorbaInsertAfterIterator::nextImpl(
store::Item_t& result,
PlanState& planState) const
{
@@ -991,7 +991,7 @@
const StaticallyKnownCollection*
-ZorbaInsertNodesAfterIterator::getCollection(
+ZorbaInsertAfterIterator::getCollection(
const store::Item_t& name,
store::Collection_t& coll) const
{
@@ -1035,30 +1035,30 @@
/*******************************************************************************
declare sequential function
- apply-insert-nodes($name as xs:QName, $newnode as node()*)
+ apply-insert($name as xs:QName, $newnode as node()*)
********************************************************************************/
-ZorbaApplyInsertNodesIteratorState::~ZorbaApplyInsertNodesIteratorState()
+ZorbaApplyInsertIteratorState::~ZorbaApplyInsertIteratorState()
{
nodes.clear();
}
-void ZorbaApplyInsertNodesIteratorState::init(PlanState& planState)
+void ZorbaApplyInsertIteratorState::init(PlanState& planState)
{
PlanIteratorState::init(planState);
nodes.clear();
}
-void ZorbaApplyInsertNodesIteratorState::reset(PlanState& planState)
+void ZorbaApplyInsertIteratorState::reset(PlanState& planState)
{
PlanIteratorState::reset(planState);
nodes.clear();
}
-bool ZorbaApplyInsertNodesIterator::nextImpl(
+bool ZorbaApplyInsertIterator::nextImpl(
store::Item_t& result,
PlanState& planState) const
{
@@ -1066,8 +1066,8 @@
std::vector<store::Item_t> nodes;
store::Item_t name;
- ZorbaApplyInsertNodesIteratorState* state;
- DEFAULT_STACK_INIT(ZorbaApplyInsertNodesIteratorState, state, planState);
+ ZorbaApplyInsertIteratorState* state;
+ DEFAULT_STACK_INIT(ZorbaApplyInsertIteratorState, state, planState);
checkCollectionAndCopyNodes(planState, name, nodes);
@@ -1110,40 +1110,39 @@
const StaticallyKnownCollection*
-ZorbaApplyInsertNodesIterator::getCollection(
+ZorbaApplyInsertIterator::getCollection(
const store::Item_t& name,
store::Collection_t& coll) const
{
return zorba::getCollection(theSctx, name, loc, theIsDynamic, coll);
}
-
/*******************************************************************************
declare sequential function
apply-insert-nodes-first($name as xs:QName, $newnode as node()*)
********************************************************************************/
-ZorbaApplyInsertNodesFirstIteratorState::~ZorbaApplyInsertNodesFirstIteratorState()
+ZorbaApplyInsertFirstIteratorState::~ZorbaApplyInsertFirstIteratorState()
{
nodes.clear();
}
-void ZorbaApplyInsertNodesFirstIteratorState::init(PlanState& planState)
+void ZorbaApplyInsertFirstIteratorState::init(PlanState& planState)
{
PlanIteratorState::init(planState);
nodes.clear();
}
-void ZorbaApplyInsertNodesFirstIteratorState::reset(PlanState& planState)
+void ZorbaApplyInsertFirstIteratorState::reset(PlanState& planState)
{
PlanIteratorState::reset(planState);
nodes.clear();
}
-bool ZorbaApplyInsertNodesFirstIterator::nextImpl(
+bool ZorbaApplyInsertFirstIterator::nextImpl(
store::Item_t& result,
PlanState& planState) const
{
@@ -1151,15 +1150,15 @@
std::vector<store::Item_t> nodes;
store::Item_t name;
- ZorbaApplyInsertNodesFirstIteratorState* state;
- DEFAULT_STACK_INIT(ZorbaApplyInsertNodesFirstIteratorState, state, planState);
+ ZorbaApplyInsertFirstIteratorState* state;
+ DEFAULT_STACK_INIT(ZorbaApplyInsertFirstIteratorState, state, planState);
checkCollectionAndCopyNodes(planState, name, nodes);
// create the pul and add the primitive
pul.reset(GENV_ITEMFACTORY->createPendingUpdateList());
- if (nodes.size() > 0)
+ if (nodes.size() > 0)
{
state->nodes.resize(nodes.size());
std::copy(nodes.begin(), nodes.end(), state->nodes.begin());
@@ -1167,7 +1166,7 @@
pul->addInsertFirstIntoCollection(&loc, name, nodes, theIsDynamic);
}
- if (pul.get())
+ if (pul.get())
{
apply_updates(planState.theCompilerCB,
planState.theGlobalDynCtx,
@@ -1179,7 +1178,7 @@
state->iterator = state->nodes.begin();
- while (state->iterator != state->nodes.end())
+ while (state->iterator != state->nodes.end())
{
result = *state->iterator;
++(state->iterator);
@@ -1191,9 +1190,8 @@
STACK_END(state);
}
-
const StaticallyKnownCollection*
-ZorbaApplyInsertNodesFirstIterator::getCollection(
+ZorbaApplyInsertFirstIterator::getCollection(
const store::Item_t& name,
store::Collection_t& coll) const
{
@@ -1203,23 +1201,23 @@
/*******************************************************************************
declare sequential function
- apply-insert-nodes-last($name as xs:QName, $newnode as node()*)
+ apply-last($name as xs:QName, $newnode as node()*)
********************************************************************************/
-ZorbaApplyInsertNodesLastIteratorState::~ZorbaApplyInsertNodesLastIteratorState()
+ZorbaApplyInsertLastIteratorState::~ZorbaApplyInsertLastIteratorState()
{
nodes.clear();
}
-void ZorbaApplyInsertNodesLastIteratorState::init(PlanState& planState)
+void ZorbaApplyInsertLastIteratorState::init(PlanState& planState)
{
PlanIteratorState::init(planState);
nodes.clear();
}
-void ZorbaApplyInsertNodesLastIteratorState::reset(PlanState& planState)
+void ZorbaApplyInsertLastIteratorState::reset(PlanState& planState)
{
PlanIteratorState::reset(planState);
nodes.clear();
@@ -1227,7 +1225,7 @@
bool
-ZorbaApplyInsertNodesLastIterator::nextImpl(
+ZorbaApplyInsertLastIterator::nextImpl(
store::Item_t& result,
PlanState& planState) const
{
@@ -1235,8 +1233,8 @@
std::vector<store::Item_t> nodes;
store::Item_t name;
- ZorbaApplyInsertNodesLastIteratorState* state;
- DEFAULT_STACK_INIT(ZorbaApplyInsertNodesLastIteratorState, state, planState);
+ ZorbaApplyInsertLastIteratorState* state;
+ DEFAULT_STACK_INIT(ZorbaApplyInsertLastIteratorState, state, planState);
checkCollectionAndCopyNodes(planState, name, nodes);
@@ -1277,7 +1275,7 @@
const StaticallyKnownCollection*
-ZorbaApplyInsertNodesLastIterator::getCollection(
+ZorbaApplyInsertLastIterator::getCollection(
const store::Item_t& name,
store::Collection_t& coll) const
{
@@ -1287,23 +1285,23 @@
/*******************************************************************************
declare sequential function
- apply-insert-nodes-before($name as xs:QName, $newnode as node()*)
+ apply-before($name as xs:QName, $newnode as node()*)
********************************************************************************/
-ZorbaApplyInsertNodesBeforeIteratorState::~ZorbaApplyInsertNodesBeforeIteratorState()
+ZorbaApplyInsertBeforeIteratorState::~ZorbaApplyInsertBeforeIteratorState()
{
nodes.clear();
}
-void ZorbaApplyInsertNodesBeforeIteratorState::init(PlanState& planState)
+void ZorbaApplyInsertBeforeIteratorState::init(PlanState& planState)
{
PlanIteratorState::init(planState);
nodes.clear();
}
-void ZorbaApplyInsertNodesBeforeIteratorState::reset(PlanState& planState)
+void ZorbaApplyInsertBeforeIteratorState::reset(PlanState& planState)
{
PlanIteratorState::reset(planState);
nodes.clear();
@@ -1311,7 +1309,7 @@
bool
-ZorbaApplyInsertNodesBeforeIterator::nextImpl(
+ZorbaApplyInsertBeforeIterator::nextImpl(
store::Item_t& result,
PlanState& planState) const
{
@@ -1320,8 +1318,8 @@
store::Item_t name;
store::Item_t targetNode;
- ZorbaApplyInsertNodesIteratorState* state;
- DEFAULT_STACK_INIT(ZorbaApplyInsertNodesIteratorState, state, planState);
+ ZorbaApplyInsertIteratorState* state;
+ DEFAULT_STACK_INIT(ZorbaApplyInsertIteratorState, state, planState);
checkCollectionAndCopyNodes(planState, name, nodes, targetNode, true);
@@ -1366,7 +1364,7 @@
const StaticallyKnownCollection*
-ZorbaApplyInsertNodesBeforeIterator::getCollection(
+ZorbaApplyInsertBeforeIterator::getCollection(
const store::Item_t& name,
store::Collection_t& coll) const
{
@@ -1376,23 +1374,23 @@
/*******************************************************************************
declare sequential function
- apply-insert-nodes-after($name as xs:QName, $newnode as node()*)
+ apply-after($name as xs:QName, $newnode as node()*)
********************************************************************************/
-ZorbaApplyInsertNodesAfterIteratorState::~ZorbaApplyInsertNodesAfterIteratorState()
+ZorbaApplyInsertAfterIteratorState::~ZorbaApplyInsertAfterIteratorState()
{
nodes.clear();
}
-void ZorbaApplyInsertNodesAfterIteratorState::init(PlanState& planState)
+void ZorbaApplyInsertAfterIteratorState::init(PlanState& planState)
{
PlanIteratorState::init(planState);
nodes.clear();
}
-void ZorbaApplyInsertNodesAfterIteratorState::reset(PlanState& planState)
+void ZorbaApplyInsertAfterIteratorState::reset(PlanState& planState)
{
PlanIteratorState::reset(planState);
nodes.clear();
@@ -1400,7 +1398,7 @@
bool
-ZorbaApplyInsertNodesAfterIterator::nextImpl(
+ZorbaApplyInsertAfterIterator::nextImpl(
store::Item_t& result,
PlanState& planState) const
{
@@ -1409,8 +1407,8 @@
store::Item_t name;
store::Item_t targetNode;
- ZorbaApplyInsertNodesIteratorState* state;
- DEFAULT_STACK_INIT(ZorbaApplyInsertNodesIteratorState, state, planState);
+ ZorbaApplyInsertIteratorState* state;
+ DEFAULT_STACK_INIT(ZorbaApplyInsertIteratorState, state, planState);
checkCollectionAndCopyNodes(planState, name, nodes, targetNode, true);
@@ -1456,7 +1454,7 @@
const StaticallyKnownCollection*
-ZorbaApplyInsertNodesAfterIterator::getCollection(
+ZorbaApplyInsertAfterIterator::getCollection(
const store::Item_t& name,
store::Collection_t& coll) const
{
@@ -1466,13 +1464,13 @@
/*******************************************************************************
declare updating function
- delete-nodes($name as xs:QName, $target as node()*)
+ delete($name as xs:QName, $target as node()*)
The function will remove the node(s) identified by the $target expression
from the given collection. The nodes themselves will not be deleted until all
references to them have been removed.
********************************************************************************/
-bool ZorbaDeleteNodesIterator::nextImpl(
+bool ZorbaDeleteIterator::nextImpl(
store::Item_t& result,
PlanState& planState) const
{
@@ -1536,7 +1534,7 @@
const StaticallyKnownCollection*
-ZorbaDeleteNodesIterator::getCollection(
+ZorbaDeleteIterator::getCollection(
const store::Item_t& name,
store::Collection_t& coll) const
{
@@ -1575,7 +1573,7 @@
/*******************************************************************************
********************************************************************************/
-bool ZorbaDeleteNodesFirstIterator::nextImpl(
+bool ZorbaDeleteFirstIterator::nextImpl(
store::Item_t& result,
PlanState& planState) const
{
@@ -1624,7 +1622,7 @@
const StaticallyKnownCollection*
-ZorbaDeleteNodesFirstIterator::getCollection(
+ZorbaDeleteFirstIterator::getCollection(
const store::Item_t& name,
store::Collection_t& coll) const
{
@@ -1666,7 +1664,7 @@
/*******************************************************************************
********************************************************************************/
-bool ZorbaDeleteNodesLastIterator::nextImpl(
+bool ZorbaDeleteLastIterator::nextImpl(
store::Item_t& result,
PlanState& planState) const
{
@@ -1717,7 +1715,7 @@
********************************************************************************/
const StaticallyKnownCollection*
-ZorbaDeleteNodesLastIterator::getCollection(
+ZorbaDeleteLastIterator::getCollection(
const store::Item_t& name,
store::Collection_t& coll) const
{
@@ -1762,7 +1760,7 @@
/*******************************************************************************
********************************************************************************/
-bool ZorbaEditNodesIterator::nextImpl(
+bool ZorbaEditIterator::nextImpl(
store::Item_t& result,
PlanState& planState) const
{
@@ -1846,7 +1844,7 @@
********************************************************************************/
const StaticallyKnownCollection*
-ZorbaEditNodesIterator::getCollection(
+ZorbaEditIterator::getCollection(
const store::Item_t& name,
store::Collection_t& coll) const
{
=== modified file 'src/runtime/collections/pregenerated/collections.cpp'
--- src/runtime/collections/pregenerated/collections.cpp 2013-03-05 23:11:50 +0000
+++ src/runtime/collections/pregenerated/collections.cpp 2013-10-09 23:30:21 +0000
@@ -275,417 +275,417 @@
// </ZorbaIndexOfIterator>
-// <ZorbaInsertNodesIterator>
-SERIALIZABLE_CLASS_VERSIONS(ZorbaInsertNodesIterator)
-
-void ZorbaInsertNodesIterator::serialize(::zorba::serialization::Archiver& ar)
-{
- serialize_baseclass(ar,
- (ZorbaCollectionIteratorHelper<ZorbaInsertNodesIterator, PlanIteratorState>*)this);
-}
-
-
-void ZorbaInsertNodesIterator::accept(PlanIterVisitor& v) const
-{
- v.beginVisit(*this);
-
- std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
- std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
- for ( ; lIter != lEnd; ++lIter ){
- (*lIter)->accept(v);
- }
-
- v.endVisit(*this);
-}
-
-ZorbaInsertNodesIterator::~ZorbaInsertNodesIterator() {}
-
-// </ZorbaInsertNodesIterator>
-
-
-// <ZorbaInsertNodesFirstIterator>
-SERIALIZABLE_CLASS_VERSIONS(ZorbaInsertNodesFirstIterator)
-
-void ZorbaInsertNodesFirstIterator::serialize(::zorba::serialization::Archiver& ar)
-{
- serialize_baseclass(ar,
- (ZorbaCollectionIteratorHelper<ZorbaInsertNodesFirstIterator, PlanIteratorState>*)this);
-}
-
-
-void ZorbaInsertNodesFirstIterator::accept(PlanIterVisitor& v) const
-{
- v.beginVisit(*this);
-
- std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
- std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
- for ( ; lIter != lEnd; ++lIter ){
- (*lIter)->accept(v);
- }
-
- v.endVisit(*this);
-}
-
-ZorbaInsertNodesFirstIterator::~ZorbaInsertNodesFirstIterator() {}
-
-// </ZorbaInsertNodesFirstIterator>
-
-
-// <ZorbaInsertNodesLastIterator>
-SERIALIZABLE_CLASS_VERSIONS(ZorbaInsertNodesLastIterator)
-
-void ZorbaInsertNodesLastIterator::serialize(::zorba::serialization::Archiver& ar)
-{
- serialize_baseclass(ar,
- (ZorbaCollectionIteratorHelper<ZorbaInsertNodesLastIterator, PlanIteratorState>*)this);
-}
-
-
-void ZorbaInsertNodesLastIterator::accept(PlanIterVisitor& v) const
-{
- v.beginVisit(*this);
-
- std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
- std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
- for ( ; lIter != lEnd; ++lIter ){
- (*lIter)->accept(v);
- }
-
- v.endVisit(*this);
-}
-
-ZorbaInsertNodesLastIterator::~ZorbaInsertNodesLastIterator() {}
-
-// </ZorbaInsertNodesLastIterator>
-
-
-// <ZorbaInsertNodesBeforeIterator>
-SERIALIZABLE_CLASS_VERSIONS(ZorbaInsertNodesBeforeIterator)
-
-void ZorbaInsertNodesBeforeIterator::serialize(::zorba::serialization::Archiver& ar)
-{
- serialize_baseclass(ar,
- (ZorbaCollectionIteratorHelper<ZorbaInsertNodesBeforeIterator, PlanIteratorState>*)this);
-}
-
-
-void ZorbaInsertNodesBeforeIterator::accept(PlanIterVisitor& v) const
-{
- v.beginVisit(*this);
-
- std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
- std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
- for ( ; lIter != lEnd; ++lIter ){
- (*lIter)->accept(v);
- }
-
- v.endVisit(*this);
-}
-
-ZorbaInsertNodesBeforeIterator::~ZorbaInsertNodesBeforeIterator() {}
-
-// </ZorbaInsertNodesBeforeIterator>
-
-
-// <ZorbaInsertNodesAfterIterator>
-SERIALIZABLE_CLASS_VERSIONS(ZorbaInsertNodesAfterIterator)
-
-void ZorbaInsertNodesAfterIterator::serialize(::zorba::serialization::Archiver& ar)
-{
- serialize_baseclass(ar,
- (ZorbaCollectionIteratorHelper<ZorbaInsertNodesAfterIterator, PlanIteratorState>*)this);
-
- ar & theIsDynamic;
-}
-
-
-void ZorbaInsertNodesAfterIterator::accept(PlanIterVisitor& v) const
-{
- v.beginVisit(*this);
-
- std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
- std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
- for ( ; lIter != lEnd; ++lIter ){
- (*lIter)->accept(v);
- }
-
- v.endVisit(*this);
-}
-
-ZorbaInsertNodesAfterIterator::~ZorbaInsertNodesAfterIterator() {}
-
-// </ZorbaInsertNodesAfterIterator>
-
-
-// <ZorbaApplyInsertNodesIterator>
-SERIALIZABLE_CLASS_VERSIONS(ZorbaApplyInsertNodesIterator)
-
-void ZorbaApplyInsertNodesIterator::serialize(::zorba::serialization::Archiver& ar)
-{
- serialize_baseclass(ar,
- (ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesIterator, ZorbaApplyInsertNodesIteratorState>*)this);
-}
-
-
-void ZorbaApplyInsertNodesIterator::accept(PlanIterVisitor& v) const
-{
- v.beginVisit(*this);
-
- std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
- std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
- for ( ; lIter != lEnd; ++lIter ){
- (*lIter)->accept(v);
- }
-
- v.endVisit(*this);
-}
-
-ZorbaApplyInsertNodesIterator::~ZorbaApplyInsertNodesIterator() {}
-
-ZorbaApplyInsertNodesIteratorState::ZorbaApplyInsertNodesIteratorState() {}
-
-// </ZorbaApplyInsertNodesIterator>
-
-
-// <ZorbaApplyInsertNodesFirstIterator>
-SERIALIZABLE_CLASS_VERSIONS(ZorbaApplyInsertNodesFirstIterator)
-
-void ZorbaApplyInsertNodesFirstIterator::serialize(::zorba::serialization::Archiver& ar)
-{
- serialize_baseclass(ar,
- (ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesFirstIterator, ZorbaApplyInsertNodesFirstIteratorState>*)this);
-}
-
-
-void ZorbaApplyInsertNodesFirstIterator::accept(PlanIterVisitor& v) const
-{
- v.beginVisit(*this);
-
- std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
- std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
- for ( ; lIter != lEnd; ++lIter ){
- (*lIter)->accept(v);
- }
-
- v.endVisit(*this);
-}
-
-ZorbaApplyInsertNodesFirstIterator::~ZorbaApplyInsertNodesFirstIterator() {}
-
-ZorbaApplyInsertNodesFirstIteratorState::ZorbaApplyInsertNodesFirstIteratorState() {}
-
-// </ZorbaApplyInsertNodesFirstIterator>
-
-
-// <ZorbaApplyInsertNodesLastIterator>
-SERIALIZABLE_CLASS_VERSIONS(ZorbaApplyInsertNodesLastIterator)
-
-void ZorbaApplyInsertNodesLastIterator::serialize(::zorba::serialization::Archiver& ar)
-{
- serialize_baseclass(ar,
- (ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesLastIterator, ZorbaApplyInsertNodesLastIteratorState>*)this);
-}
-
-
-void ZorbaApplyInsertNodesLastIterator::accept(PlanIterVisitor& v) const
-{
- v.beginVisit(*this);
-
- std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
- std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
- for ( ; lIter != lEnd; ++lIter ){
- (*lIter)->accept(v);
- }
-
- v.endVisit(*this);
-}
-
-ZorbaApplyInsertNodesLastIterator::~ZorbaApplyInsertNodesLastIterator() {}
-
-ZorbaApplyInsertNodesLastIteratorState::ZorbaApplyInsertNodesLastIteratorState() {}
-
-// </ZorbaApplyInsertNodesLastIterator>
-
-
-// <ZorbaApplyInsertNodesBeforeIterator>
-SERIALIZABLE_CLASS_VERSIONS(ZorbaApplyInsertNodesBeforeIterator)
-
-void ZorbaApplyInsertNodesBeforeIterator::serialize(::zorba::serialization::Archiver& ar)
-{
- serialize_baseclass(ar,
- (ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesBeforeIterator, ZorbaApplyInsertNodesBeforeIteratorState>*)this);
-}
-
-
-void ZorbaApplyInsertNodesBeforeIterator::accept(PlanIterVisitor& v) const
-{
- v.beginVisit(*this);
-
- std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
- std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
- for ( ; lIter != lEnd; ++lIter ){
- (*lIter)->accept(v);
- }
-
- v.endVisit(*this);
-}
-
-ZorbaApplyInsertNodesBeforeIterator::~ZorbaApplyInsertNodesBeforeIterator() {}
-
-ZorbaApplyInsertNodesBeforeIteratorState::ZorbaApplyInsertNodesBeforeIteratorState() {}
-
-// </ZorbaApplyInsertNodesBeforeIterator>
-
-
-// <ZorbaApplyInsertNodesAfterIterator>
-SERIALIZABLE_CLASS_VERSIONS(ZorbaApplyInsertNodesAfterIterator)
-
-void ZorbaApplyInsertNodesAfterIterator::serialize(::zorba::serialization::Archiver& ar)
-{
- serialize_baseclass(ar,
- (ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesAfterIterator, ZorbaApplyInsertNodesAfterIteratorState>*)this);
-}
-
-
-void ZorbaApplyInsertNodesAfterIterator::accept(PlanIterVisitor& v) const
-{
- v.beginVisit(*this);
-
- std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
- std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
- for ( ; lIter != lEnd; ++lIter ){
- (*lIter)->accept(v);
- }
-
- v.endVisit(*this);
-}
-
-ZorbaApplyInsertNodesAfterIterator::~ZorbaApplyInsertNodesAfterIterator() {}
-
-ZorbaApplyInsertNodesAfterIteratorState::ZorbaApplyInsertNodesAfterIteratorState() {}
-
-// </ZorbaApplyInsertNodesAfterIterator>
-
-
-// <ZorbaDeleteNodesIterator>
-SERIALIZABLE_CLASS_VERSIONS(ZorbaDeleteNodesIterator)
-
-void ZorbaDeleteNodesIterator::serialize(::zorba::serialization::Archiver& ar)
-{
- serialize_baseclass(ar,
- (NaryBaseIterator<ZorbaDeleteNodesIterator, PlanIteratorState>*)this);
-
- ar & theIsDynamic;
-}
-
-
-void ZorbaDeleteNodesIterator::accept(PlanIterVisitor& v) const
-{
- v.beginVisit(*this);
-
- std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
- std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
- for ( ; lIter != lEnd; ++lIter ){
- (*lIter)->accept(v);
- }
-
- v.endVisit(*this);
-}
-
-ZorbaDeleteNodesIterator::~ZorbaDeleteNodesIterator() {}
-
-// </ZorbaDeleteNodesIterator>
-
-
-// <ZorbaDeleteNodesFirstIterator>
-SERIALIZABLE_CLASS_VERSIONS(ZorbaDeleteNodesFirstIterator)
-
-void ZorbaDeleteNodesFirstIterator::serialize(::zorba::serialization::Archiver& ar)
-{
- serialize_baseclass(ar,
- (NaryBaseIterator<ZorbaDeleteNodesFirstIterator, PlanIteratorState>*)this);
-
- ar & theIsDynamic;
-}
-
-
-void ZorbaDeleteNodesFirstIterator::accept(PlanIterVisitor& v) const
-{
- v.beginVisit(*this);
-
- std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
- std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
- for ( ; lIter != lEnd; ++lIter ){
- (*lIter)->accept(v);
- }
-
- v.endVisit(*this);
-}
-
-ZorbaDeleteNodesFirstIterator::~ZorbaDeleteNodesFirstIterator() {}
-
-// </ZorbaDeleteNodesFirstIterator>
-
-
-// <ZorbaDeleteNodesLastIterator>
-SERIALIZABLE_CLASS_VERSIONS(ZorbaDeleteNodesLastIterator)
-
-void ZorbaDeleteNodesLastIterator::serialize(::zorba::serialization::Archiver& ar)
-{
- serialize_baseclass(ar,
- (NaryBaseIterator<ZorbaDeleteNodesLastIterator, PlanIteratorState>*)this);
-
- ar & theIsDynamic;
-}
-
-
-void ZorbaDeleteNodesLastIterator::accept(PlanIterVisitor& v) const
-{
- v.beginVisit(*this);
-
- std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
- std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
- for ( ; lIter != lEnd; ++lIter ){
- (*lIter)->accept(v);
- }
-
- v.endVisit(*this);
-}
-
-ZorbaDeleteNodesLastIterator::~ZorbaDeleteNodesLastIterator() {}
-
-// </ZorbaDeleteNodesLastIterator>
-
-
-// <ZorbaEditNodesIterator>
-SERIALIZABLE_CLASS_VERSIONS(ZorbaEditNodesIterator)
-
-void ZorbaEditNodesIterator::serialize(::zorba::serialization::Archiver& ar)
-{
- serialize_baseclass(ar,
- (NaryBaseIterator<ZorbaEditNodesIterator, PlanIteratorState>*)this);
+// <ZorbaApplyInsertIterator>
+SERIALIZABLE_CLASS_VERSIONS(ZorbaApplyInsertIterator)
+
+void ZorbaApplyInsertIterator::serialize(::zorba::serialization::Archiver& ar)
+{
+ serialize_baseclass(ar,
+ (ZorbaCollectionIteratorHelper<ZorbaApplyInsertIterator, ZorbaApplyInsertIteratorState>*)this);
+}
+
+
+void ZorbaApplyInsertIterator::accept(PlanIterVisitor& v) const
+{
+ v.beginVisit(*this);
+
+ std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
+ std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
+ for ( ; lIter != lEnd; ++lIter ){
+ (*lIter)->accept(v);
+ }
+
+ v.endVisit(*this);
+}
+
+ZorbaApplyInsertIterator::~ZorbaApplyInsertIterator() {}
+
+ZorbaApplyInsertIteratorState::ZorbaApplyInsertIteratorState() {}
+
+// </ZorbaApplyInsertIterator>
+
+
+// <ZorbaInsertAfterIterator>
+SERIALIZABLE_CLASS_VERSIONS(ZorbaInsertAfterIterator)
+
+void ZorbaInsertAfterIterator::serialize(::zorba::serialization::Archiver& ar)
+{
+ serialize_baseclass(ar,
+ (ZorbaCollectionIteratorHelper<ZorbaInsertAfterIterator, PlanIteratorState>*)this);
+
+ ar & theIsDynamic;
+}
+
+
+void ZorbaInsertAfterIterator::accept(PlanIterVisitor& v) const
+{
+ v.beginVisit(*this);
+
+ std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
+ std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
+ for ( ; lIter != lEnd; ++lIter ){
+ (*lIter)->accept(v);
+ }
+
+ v.endVisit(*this);
+}
+
+ZorbaInsertAfterIterator::~ZorbaInsertAfterIterator() {}
+
+// </ZorbaInsertAfterIterator>
+
+
+// <ZorbaInsertBeforeIterator>
+SERIALIZABLE_CLASS_VERSIONS(ZorbaInsertBeforeIterator)
+
+void ZorbaInsertBeforeIterator::serialize(::zorba::serialization::Archiver& ar)
+{
+ serialize_baseclass(ar,
+ (ZorbaCollectionIteratorHelper<ZorbaInsertBeforeIterator, PlanIteratorState>*)this);
+}
+
+
+void ZorbaInsertBeforeIterator::accept(PlanIterVisitor& v) const
+{
+ v.beginVisit(*this);
+
+ std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
+ std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
+ for ( ; lIter != lEnd; ++lIter ){
+ (*lIter)->accept(v);
+ }
+
+ v.endVisit(*this);
+}
+
+ZorbaInsertBeforeIterator::~ZorbaInsertBeforeIterator() {}
+
+// </ZorbaInsertBeforeIterator>
+
+
+// <ZorbaInsertFirstIterator>
+SERIALIZABLE_CLASS_VERSIONS(ZorbaInsertFirstIterator)
+
+void ZorbaInsertFirstIterator::serialize(::zorba::serialization::Archiver& ar)
+{
+ serialize_baseclass(ar,
+ (ZorbaCollectionIteratorHelper<ZorbaInsertFirstIterator,PlanIteratorState>*)this);
+}
+
+
+void ZorbaInsertFirstIterator::accept(PlanIterVisitor& v) const
+{
+ v.beginVisit(*this);
+
+ std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
+ std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
+ for ( ; lIter != lEnd; ++lIter ){
+ (*lIter)->accept(v);
+ }
+
+ v.endVisit(*this);
+}
+
+ZorbaInsertFirstIterator::~ZorbaInsertFirstIterator() {}
+
+// </ZorbaInsertFirstIterator>
+
+
+// <ZorbaInsertLastIterator>
+SERIALIZABLE_CLASS_VERSIONS(ZorbaInsertLastIterator)
+
+void ZorbaInsertLastIterator::serialize(::zorba::serialization::Archiver& ar)
+{
+ serialize_baseclass(ar,
+ (ZorbaCollectionIteratorHelper<ZorbaInsertLastIterator, PlanIteratorState>*)this);
+}
+
+
+void ZorbaInsertLastIterator::accept(PlanIterVisitor& v) const
+{
+ v.beginVisit(*this);
+
+ std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
+ std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
+ for ( ; lIter != lEnd; ++lIter ){
+ (*lIter)->accept(v);
+ }
+
+ v.endVisit(*this);
+}
+
+ZorbaInsertLastIterator::~ZorbaInsertLastIterator() {}
+
+// </ZorbaInsertLastIterator>
+
+
+// <ZorbaApplyInsertFirstIterator>
+SERIALIZABLE_CLASS_VERSIONS(ZorbaApplyInsertFirstIterator)
+
+void ZorbaApplyInsertFirstIterator::serialize(::zorba::serialization::Archiver& ar)
+{
+ serialize_baseclass(ar,
+ (ZorbaCollectionIteratorHelper<ZorbaApplyInsertFirstIterator, ZorbaApplyInsertFirstIteratorState>*)this);
+}
+
+
+void ZorbaApplyInsertFirstIterator::accept(PlanIterVisitor& v) const
+{
+ v.beginVisit(*this);
+
+ std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
+ std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
+ for ( ; lIter != lEnd; ++lIter ){
+ (*lIter)->accept(v);
+ }
+
+ v.endVisit(*this);
+}
+
+ZorbaApplyInsertFirstIterator::~ZorbaApplyInsertFirstIterator() {}
+
+ZorbaApplyInsertFirstIteratorState::ZorbaApplyInsertFirstIteratorState() {}
+
+// </ZorbaApplyInsertFirstIterator>
+
+
+// <ZorbaApplyInsertLastIterator>
+SERIALIZABLE_CLASS_VERSIONS(ZorbaApplyInsertLastIterator)
+
+void ZorbaApplyInsertLastIterator::serialize(::zorba::serialization::Archiver& ar)
+{
+ serialize_baseclass(ar,
+ (ZorbaCollectionIteratorHelper<ZorbaApplyInsertLastIterator, ZorbaApplyInsertLastIteratorState>*)this);
+}
+
+
+void ZorbaApplyInsertLastIterator::accept(PlanIterVisitor& v) const
+{
+ v.beginVisit(*this);
+
+ std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
+ std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
+ for ( ; lIter != lEnd; ++lIter ){
+ (*lIter)->accept(v);
+ }
+
+ v.endVisit(*this);
+}
+
+ZorbaApplyInsertLastIterator::~ZorbaApplyInsertLastIterator() {}
+
+ZorbaApplyInsertLastIteratorState::ZorbaApplyInsertLastIteratorState() {}
+
+// </ZorbaApplyInsertLastIterator>
+
+
+// <ZorbaApplyInsertBeforeIterator>
+SERIALIZABLE_CLASS_VERSIONS(ZorbaApplyInsertBeforeIterator)
+
+void ZorbaApplyInsertBeforeIterator::serialize(::zorba::serialization::Archiver& ar)
+{
+ serialize_baseclass(ar,
+ (ZorbaCollectionIteratorHelper<ZorbaApplyInsertBeforeIterator, ZorbaApplyInsertBeforeIteratorState>*)this);
+}
+
+
+void ZorbaApplyInsertBeforeIterator::accept(PlanIterVisitor& v) const
+{
+ v.beginVisit(*this);
+
+ std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
+ std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
+ for ( ; lIter != lEnd; ++lIter ){
+ (*lIter)->accept(v);
+ }
+
+ v.endVisit(*this);
+}
+
+ZorbaApplyInsertBeforeIterator::~ZorbaApplyInsertBeforeIterator() {}
+
+ZorbaApplyInsertBeforeIteratorState::ZorbaApplyInsertBeforeIteratorState() {}
+
+// </ZorbaApplyInsertBeforeIterator>
+
+
+// <ZorbaApplyInsertAfterIterator>
+SERIALIZABLE_CLASS_VERSIONS(ZorbaApplyInsertAfterIterator)
+
+void ZorbaApplyInsertAfterIterator::serialize(::zorba::serialization::Archiver& ar)
+{
+ serialize_baseclass(ar,
+ (ZorbaCollectionIteratorHelper<ZorbaApplyInsertAfterIterator, ZorbaApplyInsertAfterIteratorState>*)this);
+}
+
+
+void ZorbaApplyInsertAfterIterator::accept(PlanIterVisitor& v) const
+{
+ v.beginVisit(*this);
+
+ std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
+ std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
+ for ( ; lIter != lEnd; ++lIter ){
+ (*lIter)->accept(v);
+ }
+
+ v.endVisit(*this);
+}
+
+ZorbaApplyInsertAfterIterator::~ZorbaApplyInsertAfterIterator() {}
+
+ZorbaApplyInsertAfterIteratorState::ZorbaApplyInsertAfterIteratorState() {}
+
+// </ZorbaApplyInsertAfterIterator>
+
+
+// <ZorbaDeleteIterator>
+SERIALIZABLE_CLASS_VERSIONS(ZorbaDeleteIterator)
+
+void ZorbaDeleteIterator::serialize(::zorba::serialization::Archiver& ar)
+{
+ serialize_baseclass(ar,
+ (NaryBaseIterator<ZorbaDeleteIterator, PlanIteratorState>*)this);
+
+ ar & theIsDynamic;
+}
+
+
+void ZorbaDeleteIterator::accept(PlanIterVisitor& v) const
+{
+ v.beginVisit(*this);
+
+ std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
+ std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
+ for ( ; lIter != lEnd; ++lIter ){
+ (*lIter)->accept(v);
+ }
+
+ v.endVisit(*this);
+}
+
+ZorbaDeleteIterator::~ZorbaDeleteIterator() {}
+
+// </ZorbaDeleteIterator>
+
+
+// <ZorbaDeleteFirstIterator>
+SERIALIZABLE_CLASS_VERSIONS(ZorbaDeleteFirstIterator)
+
+void ZorbaDeleteFirstIterator::serialize(::zorba::serialization::Archiver& ar)
+{
+ serialize_baseclass(ar,
+ (NaryBaseIterator<ZorbaDeleteFirstIterator, PlanIteratorState>*)this);
+
+ ar & theIsDynamic;
+}
+
+
+void ZorbaDeleteFirstIterator::accept(PlanIterVisitor& v) const
+{
+ v.beginVisit(*this);
+
+ std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
+ std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
+ for ( ; lIter != lEnd; ++lIter ){
+ (*lIter)->accept(v);
+ }
+
+ v.endVisit(*this);
+}
+
+ZorbaDeleteFirstIterator::~ZorbaDeleteFirstIterator() {}
+
+// </ZorbaDeleteFirstIterator>
+
+
+// <ZorbaDeleteLastIterator>
+SERIALIZABLE_CLASS_VERSIONS(ZorbaDeleteLastIterator)
+
+void ZorbaDeleteLastIterator::serialize(::zorba::serialization::Archiver& ar)
+{
+ serialize_baseclass(ar,
+ (NaryBaseIterator<ZorbaDeleteLastIterator, PlanIteratorState>*)this);
+
+ ar & theIsDynamic;
+}
+
+
+void ZorbaDeleteLastIterator::accept(PlanIterVisitor& v) const
+{
+ v.beginVisit(*this);
+
+ std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
+ std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
+ for ( ; lIter != lEnd; ++lIter ){
+ (*lIter)->accept(v);
+ }
+
+ v.endVisit(*this);
+}
+
+ZorbaDeleteLastIterator::~ZorbaDeleteLastIterator() {}
+
+// </ZorbaDeleteLastIterator>
+
+
+// <ZorbaEditIterator>
+SERIALIZABLE_CLASS_VERSIONS(ZorbaEditIterator)
+
+void ZorbaEditIterator::serialize(::zorba::serialization::Archiver& ar)
+{
+ serialize_baseclass(ar,
+ (NaryBaseIterator<ZorbaEditIterator, PlanIteratorState>*)this);
ar & theIsDynamic;
ar & theNeedToCopy;
}
-void ZorbaEditNodesIterator::accept(PlanIterVisitor& v) const
-{
- v.beginVisit(*this);
-
- std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
- std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
- for ( ; lIter != lEnd; ++lIter ){
- (*lIter)->accept(v);
- }
-
- v.endVisit(*this);
-}
-
-ZorbaEditNodesIterator::~ZorbaEditNodesIterator() {}
-
-// </ZorbaEditNodesIterator>
+void ZorbaEditIterator::accept(PlanIterVisitor& v) const
+{
+ v.beginVisit(*this);
+
+ std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
+ std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
+ for ( ; lIter != lEnd; ++lIter ){
+ (*lIter)->accept(v);
+ }
+
+ v.endVisit(*this);
+}
+
+ZorbaEditIterator::~ZorbaEditIterator() {}
+
+// </ZorbaEditIterator>
+
+
+// <ZorbaInsertIterator>
+SERIALIZABLE_CLASS_VERSIONS(ZorbaInsertIterator)
+
+void ZorbaInsertIterator::serialize(::zorba::serialization::Archiver& ar)
+{
+ serialize_baseclass(ar,
+ (ZorbaCollectionIteratorHelper<ZorbaInsertIterator, PlanIteratorState>*)this);
+}
+
+
+void ZorbaInsertIterator::accept(PlanIterVisitor& v) const
+{
+ v.beginVisit(*this);
+
+ std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
+ std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
+ for ( ; lIter != lEnd; ++lIter ){
+ (*lIter)->accept(v);
+ }
+
+ v.endVisit(*this);
+}
+
+ZorbaInsertIterator::~ZorbaInsertIterator() {}
+
+// </ZorbaInsertIterator>
// <ZorbaTruncateCollectionIterator>
=== modified file 'src/runtime/collections/pregenerated/collections.h'
--- src/runtime/collections/pregenerated/collections.h 2013-07-15 10:32:25 +0000
+++ src/runtime/collections/pregenerated/collections.h 2013-10-09 23:30:21 +0000
@@ -36,9 +36,7 @@
class StaticallyKnownCollection;
/**
*
- * zorba:create
- *
- * Author: Zorba Team
+ * Author:
*/
class ZorbaCreateCollectionIterator : public NaryBaseIterator<ZorbaCreateCollectionIterator, PlanIteratorState>
{
@@ -74,9 +72,7 @@
/**
*
- * zorba:delete
- *
- * Author: Zorba Team
+ * Author:
*/
class ZorbaDeleteCollectionIterator : public NaryBaseIterator<ZorbaDeleteCollectionIterator, PlanIteratorState>
{
@@ -110,9 +106,7 @@
/**
*
- * dc:is-available-collection
- *
- * Author: Zorba Team
+ * Author:
*/
class IsAvailableCollectionIterator : public NaryBaseIterator<IsAvailableCollectionIterator, PlanIteratorState>
{
@@ -146,9 +140,7 @@
/**
*
- * dc:available-collections
- *
- * Author: Zorba Team
+ * Author:
*/
class AvailableCollectionsIteratorState : public PlanIteratorState
{
@@ -195,15 +187,13 @@
/**
*
- * fn:collection
- *
- * Author: Zorba Team
+ * Author:
*/
class FnCollectionIteratorState : public PlanIteratorState
{
public:
- store::Iterator_t theIterator; //the current iterator
- bool theIteratorOpened; //flag indicating whether theIterator was opened
+ store::Iterator_t theIterator; //
+ bool theIteratorOpened; //
FnCollectionIteratorState();
@@ -244,9 +234,7 @@
/**
*
- * zorba:collection
- *
- * Author: Zorba Team
+ * Author:
*/
class ZorbaCollectionIteratorState : public PlanIteratorState
{
@@ -301,9 +289,7 @@
/**
*
- * zorba:collection-name
- *
- * Author: Zorba Team
+ * Author:
*/
class ZorbaCollectionNameIterator : public NaryBaseIterator<ZorbaCollectionNameIterator, PlanIteratorState>
{
@@ -333,9 +319,7 @@
/**
*
- * zorba:index-of
- *
- * Author: Zorba Team
+ * Author:
*/
class ZorbaIndexOfIterator : public NaryBaseIterator<ZorbaIndexOfIterator, PlanIteratorState>
{
@@ -369,597 +353,567 @@
/**
*
- * zorba:insert-nodes
- *
- * Author: Zorba Team
- */
-class ZorbaInsertNodesIterator : public ZorbaCollectionIteratorHelper<ZorbaInsertNodesIterator, PlanIteratorState>
-{
-public:
- SERIALIZABLE_CLASS(ZorbaInsertNodesIterator);
-
- SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaInsertNodesIterator,
- ZorbaCollectionIteratorHelper<ZorbaInsertNodesIterator, PlanIteratorState>);
-
- void serialize( ::zorba::serialization::Archiver& ar);
-
- ZorbaInsertNodesIterator(
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& children,
- bool isDynamic,
- bool needToCopy)
- :
- ZorbaCollectionIteratorHelper<ZorbaInsertNodesIterator, PlanIteratorState>(sctx, loc, children, isDynamic, needToCopy)
- {}
-
- virtual ~ZorbaInsertNodesIterator();
-
-public:
- const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
- void accept(PlanIterVisitor& v) const;
-
- bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
-};
-
-
-/**
- *
- * zorba:insert-nodes-first
- *
- * Author: Zorba Team
- */
-class ZorbaInsertNodesFirstIterator : public ZorbaCollectionIteratorHelper<ZorbaInsertNodesFirstIterator, PlanIteratorState>
-{
-public:
- SERIALIZABLE_CLASS(ZorbaInsertNodesFirstIterator);
-
- SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaInsertNodesFirstIterator,
- ZorbaCollectionIteratorHelper<ZorbaInsertNodesFirstIterator, PlanIteratorState>);
-
- void serialize( ::zorba::serialization::Archiver& ar);
-
- ZorbaInsertNodesFirstIterator(
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& children,
- bool isDynamic,
- bool needToCopy)
- :
- ZorbaCollectionIteratorHelper<ZorbaInsertNodesFirstIterator, PlanIteratorState>(sctx, loc, children, isDynamic, needToCopy)
- {}
-
- virtual ~ZorbaInsertNodesFirstIterator();
-
-public:
- const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
- void accept(PlanIterVisitor& v) const;
-
- bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
-};
-
-
-/**
- *
- * zorba:insert-nodes-last
- *
- * Author: Zorba Team
- */
-class ZorbaInsertNodesLastIterator : public ZorbaCollectionIteratorHelper<ZorbaInsertNodesLastIterator, PlanIteratorState>
-{
-public:
- SERIALIZABLE_CLASS(ZorbaInsertNodesLastIterator);
-
- SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaInsertNodesLastIterator,
- ZorbaCollectionIteratorHelper<ZorbaInsertNodesLastIterator, PlanIteratorState>);
-
- void serialize( ::zorba::serialization::Archiver& ar);
-
- ZorbaInsertNodesLastIterator(
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& children,
- bool isDynamic,
- bool needToCopy)
- :
- ZorbaCollectionIteratorHelper<ZorbaInsertNodesLastIterator, PlanIteratorState>(sctx, loc, children, isDynamic, needToCopy)
- {}
-
- virtual ~ZorbaInsertNodesLastIterator();
-
-public:
- const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
- void accept(PlanIterVisitor& v) const;
-
- bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
-};
-
-
-/**
- *
- * zorba:insert-nodes-before
- *
- * Author: Zorba Team
- */
-class ZorbaInsertNodesBeforeIterator : public ZorbaCollectionIteratorHelper<ZorbaInsertNodesBeforeIterator, PlanIteratorState>
-{
-public:
- SERIALIZABLE_CLASS(ZorbaInsertNodesBeforeIterator);
-
- SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaInsertNodesBeforeIterator,
- ZorbaCollectionIteratorHelper<ZorbaInsertNodesBeforeIterator, PlanIteratorState>);
-
- void serialize( ::zorba::serialization::Archiver& ar);
-
- ZorbaInsertNodesBeforeIterator(
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& children,
- bool isDynamic,
- bool needToCopy)
- :
- ZorbaCollectionIteratorHelper<ZorbaInsertNodesBeforeIterator, PlanIteratorState>(sctx, loc, children, isDynamic, needToCopy)
- {}
-
- virtual ~ZorbaInsertNodesBeforeIterator();
-
-public:
- const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
- void accept(PlanIterVisitor& v) const;
-
- bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
-};
-
-
-/**
- *
- * zorba:insert-nodes-after
- *
- * Author: Zorba Team
- */
-class ZorbaInsertNodesAfterIterator : public ZorbaCollectionIteratorHelper<ZorbaInsertNodesAfterIterator, PlanIteratorState>
-{
-protected:
- bool theIsDynamic; //
-public:
- SERIALIZABLE_CLASS(ZorbaInsertNodesAfterIterator);
-
- SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaInsertNodesAfterIterator,
- ZorbaCollectionIteratorHelper<ZorbaInsertNodesAfterIterator, PlanIteratorState>);
-
- void serialize( ::zorba::serialization::Archiver& ar);
-
- ZorbaInsertNodesAfterIterator(
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& children,
- bool isDynamic,
- bool needToCopy)
- :
- ZorbaCollectionIteratorHelper<ZorbaInsertNodesAfterIterator, PlanIteratorState>(sctx, loc, children, isDynamic, needToCopy),
- theIsDynamic(isDynamic)
- {}
-
- virtual ~ZorbaInsertNodesAfterIterator();
-
-public:
- const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
- void accept(PlanIterVisitor& v) const;
-
- bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
-};
-
-
-/**
- *
- * zorba:apply-insert-nodes
- *
- * Author: Zorba Team
- */
-class ZorbaApplyInsertNodesIteratorState : public PlanIteratorState
-{
-public:
- std::vector<store::Item_t> nodes; //the nodes that have been inserted
- std::vector<store::Item_t>::const_iterator iterator; //iterator over the nodes
-
- ZorbaApplyInsertNodesIteratorState();
-
- ~ZorbaApplyInsertNodesIteratorState();
-
- void init(PlanState&);
- void reset(PlanState&);
-};
-
-class ZorbaApplyInsertNodesIterator : public ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesIterator, ZorbaApplyInsertNodesIteratorState>
-{
-public:
- SERIALIZABLE_CLASS(ZorbaApplyInsertNodesIterator);
-
- SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaApplyInsertNodesIterator,
- ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesIterator, ZorbaApplyInsertNodesIteratorState>);
-
- void serialize( ::zorba::serialization::Archiver& ar);
-
- ZorbaApplyInsertNodesIterator(
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& children,
- bool isDynamic,
- bool needToCopy)
- :
- ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesIterator, ZorbaApplyInsertNodesIteratorState>(sctx, loc, children, isDynamic, needToCopy)
- {}
-
- virtual ~ZorbaApplyInsertNodesIterator();
-
-public:
- const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
- void accept(PlanIterVisitor& v) const;
-
- bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
-};
-
-
-/**
- *
- * zorba:apply-insertnodes-first
- *
- * Author: Zorba Team
- */
-class ZorbaApplyInsertNodesFirstIteratorState : public PlanIteratorState
-{
-public:
- std::vector<store::Item_t> nodes; //the nodes that have been inserted
- std::vector<store::Item_t>::const_iterator iterator; //iterator over the nodes
-
- ZorbaApplyInsertNodesFirstIteratorState();
-
- ~ZorbaApplyInsertNodesFirstIteratorState();
-
- void init(PlanState&);
- void reset(PlanState&);
-};
-
-class ZorbaApplyInsertNodesFirstIterator : public ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesFirstIterator, ZorbaApplyInsertNodesFirstIteratorState>
-{
-public:
- SERIALIZABLE_CLASS(ZorbaApplyInsertNodesFirstIterator);
-
- SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaApplyInsertNodesFirstIterator,
- ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesFirstIterator, ZorbaApplyInsertNodesFirstIteratorState>);
-
- void serialize( ::zorba::serialization::Archiver& ar);
-
- ZorbaApplyInsertNodesFirstIterator(
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& children,
- bool isDynamic,
- bool needToCopy)
- :
- ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesFirstIterator, ZorbaApplyInsertNodesFirstIteratorState>(sctx, loc, children, isDynamic, needToCopy)
- {}
-
- virtual ~ZorbaApplyInsertNodesFirstIterator();
-
-public:
- const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
- void accept(PlanIterVisitor& v) const;
-
- bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
-};
-
-
-/**
- *
- * zorba:apply-insertnodes-last
- *
- * Author: Zorba Team
- */
-class ZorbaApplyInsertNodesLastIteratorState : public PlanIteratorState
-{
-public:
- std::vector<store::Item_t> nodes; //the nodes that have been inserted
- std::vector<store::Item_t>::const_iterator iterator; //iterator over the nodes
-
- ZorbaApplyInsertNodesLastIteratorState();
-
- ~ZorbaApplyInsertNodesLastIteratorState();
-
- void init(PlanState&);
- void reset(PlanState&);
-};
-
-class ZorbaApplyInsertNodesLastIterator : public ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesLastIterator, ZorbaApplyInsertNodesLastIteratorState>
-{
-public:
- SERIALIZABLE_CLASS(ZorbaApplyInsertNodesLastIterator);
-
- SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaApplyInsertNodesLastIterator,
- ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesLastIterator, ZorbaApplyInsertNodesLastIteratorState>);
-
- void serialize( ::zorba::serialization::Archiver& ar);
-
- ZorbaApplyInsertNodesLastIterator(
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& children,
- bool isDynamic,
- bool needToCopy)
- :
- ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesLastIterator, ZorbaApplyInsertNodesLastIteratorState>(sctx, loc, children, isDynamic, needToCopy)
- {}
-
- virtual ~ZorbaApplyInsertNodesLastIterator();
-
-public:
- const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
- void accept(PlanIterVisitor& v) const;
-
- bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
-};
-
-
-/**
- *
- * zorba:apply-insert-nodes-before
- *
- * Author: Zorba Team
- */
-class ZorbaApplyInsertNodesBeforeIteratorState : public PlanIteratorState
-{
-public:
- std::vector<store::Item_t> nodes; //the nodes that have been inserted
- std::vector<store::Item_t>::const_iterator iterator; //iterator over the nodes
-
- ZorbaApplyInsertNodesBeforeIteratorState();
-
- ~ZorbaApplyInsertNodesBeforeIteratorState();
-
- void init(PlanState&);
- void reset(PlanState&);
-};
-
-class ZorbaApplyInsertNodesBeforeIterator : public ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesBeforeIterator, ZorbaApplyInsertNodesBeforeIteratorState>
-{
-public:
- SERIALIZABLE_CLASS(ZorbaApplyInsertNodesBeforeIterator);
-
- SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaApplyInsertNodesBeforeIterator,
- ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesBeforeIterator, ZorbaApplyInsertNodesBeforeIteratorState>);
-
- void serialize( ::zorba::serialization::Archiver& ar);
-
- ZorbaApplyInsertNodesBeforeIterator(
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& children,
- bool isDynamic,
- bool needToCopy)
- :
- ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesBeforeIterator, ZorbaApplyInsertNodesBeforeIteratorState>(sctx, loc, children, isDynamic, needToCopy)
- {}
-
- virtual ~ZorbaApplyInsertNodesBeforeIterator();
-
-public:
- const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
- void accept(PlanIterVisitor& v) const;
-
- bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
-};
-
-
-/**
- *
- * zorba:apply-insertnodes-after
- *
- * Author: Zorba Team
- */
-class ZorbaApplyInsertNodesAfterIteratorState : public PlanIteratorState
-{
-public:
- std::vector<store::Item_t> nodes; //the nodes that have been inserted
- std::vector<store::Item_t>::const_iterator iterator; //iterator over the nodes
-
- ZorbaApplyInsertNodesAfterIteratorState();
-
- ~ZorbaApplyInsertNodesAfterIteratorState();
-
- void init(PlanState&);
- void reset(PlanState&);
-};
-
-class ZorbaApplyInsertNodesAfterIterator : public ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesAfterIterator, ZorbaApplyInsertNodesAfterIteratorState>
-{
-public:
- SERIALIZABLE_CLASS(ZorbaApplyInsertNodesAfterIterator);
-
- SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaApplyInsertNodesAfterIterator,
- ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesAfterIterator, ZorbaApplyInsertNodesAfterIteratorState>);
-
- void serialize( ::zorba::serialization::Archiver& ar);
-
- ZorbaApplyInsertNodesAfterIterator(
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& children,
- bool isDynamic,
- bool needToCopy)
- :
- ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesAfterIterator, ZorbaApplyInsertNodesAfterIteratorState>(sctx, loc, children, isDynamic, needToCopy)
- {}
-
- virtual ~ZorbaApplyInsertNodesAfterIterator();
-
-public:
- const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
- void accept(PlanIterVisitor& v) const;
-
- bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
-};
-
-
-/**
- *
- * zorba:delete-nodes
- *
- * Author: Zorba Team
- */
-class ZorbaDeleteNodesIterator : public NaryBaseIterator<ZorbaDeleteNodesIterator, PlanIteratorState>
-{
-protected:
- bool theIsDynamic; //
-public:
- SERIALIZABLE_CLASS(ZorbaDeleteNodesIterator);
-
- SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaDeleteNodesIterator,
- NaryBaseIterator<ZorbaDeleteNodesIterator, PlanIteratorState>);
-
- void serialize( ::zorba::serialization::Archiver& ar);
-
- ZorbaDeleteNodesIterator(
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& children,
- bool isDynamic)
- :
- NaryBaseIterator<ZorbaDeleteNodesIterator, PlanIteratorState>(sctx, loc, children),
- theIsDynamic(isDynamic)
- {}
-
- virtual ~ZorbaDeleteNodesIterator();
-
-public:
- const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
- void accept(PlanIterVisitor& v) const;
-
- bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
-};
-
-
-/**
- *
- * zorba:delete-node-first
- *
- * Author: Zorba Team
- */
-class ZorbaDeleteNodesFirstIterator : public NaryBaseIterator<ZorbaDeleteNodesFirstIterator, PlanIteratorState>
-{
-protected:
- bool theIsDynamic; //
-public:
- SERIALIZABLE_CLASS(ZorbaDeleteNodesFirstIterator);
-
- SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaDeleteNodesFirstIterator,
- NaryBaseIterator<ZorbaDeleteNodesFirstIterator, PlanIteratorState>);
-
- void serialize( ::zorba::serialization::Archiver& ar);
-
- ZorbaDeleteNodesFirstIterator(
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& children,
- bool isDynamic)
- :
- NaryBaseIterator<ZorbaDeleteNodesFirstIterator, PlanIteratorState>(sctx, loc, children),
- theIsDynamic(isDynamic)
- {}
-
- virtual ~ZorbaDeleteNodesFirstIterator();
-
-public:
- const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
- void accept(PlanIterVisitor& v) const;
-
- bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
-};
-
-
-/**
- *
- * zorba:delete-node-last
- *
- * Author: Zorba Team
- */
-class ZorbaDeleteNodesLastIterator : public NaryBaseIterator<ZorbaDeleteNodesLastIterator, PlanIteratorState>
-{
-protected:
- bool theIsDynamic; //
-public:
- SERIALIZABLE_CLASS(ZorbaDeleteNodesLastIterator);
-
- SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaDeleteNodesLastIterator,
- NaryBaseIterator<ZorbaDeleteNodesLastIterator, PlanIteratorState>);
-
- void serialize( ::zorba::serialization::Archiver& ar);
-
- ZorbaDeleteNodesLastIterator(
- static_context* sctx,
- const QueryLoc& loc,
- std::vector<PlanIter_t>& children,
- bool isDynamic)
- :
- NaryBaseIterator<ZorbaDeleteNodesLastIterator, PlanIteratorState>(sctx, loc, children),
- theIsDynamic(isDynamic)
- {}
-
- virtual ~ZorbaDeleteNodesLastIterator();
-
-public:
- const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
- void accept(PlanIterVisitor& v) const;
-
- bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
-};
-
-
-/**
- *
- * zorba:edit
- *
- * Author: Zorba Team
- */
-class ZorbaEditNodesIterator : public NaryBaseIterator<ZorbaEditNodesIterator, PlanIteratorState>
+ * Author:
+ */
+class ZorbaApplyInsertIteratorState : public PlanIteratorState
+{
+public:
+ std::vector<store::Item_t> nodes; //the nodes that have been inserted
+ std::vector<store::Item_t>::const_iterator iterator; //iterator over the nodes
+
+ ZorbaApplyInsertIteratorState();
+
+ ~ZorbaApplyInsertIteratorState();
+
+ void init(PlanState&);
+ void reset(PlanState&);
+};
+
+class ZorbaApplyInsertIterator : public ZorbaCollectionIteratorHelper<ZorbaApplyInsertIterator, ZorbaApplyInsertIteratorState>
+{
+public:
+ SERIALIZABLE_CLASS(ZorbaApplyInsertIterator);
+
+ SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaApplyInsertIterator,
+ ZorbaCollectionIteratorHelper<ZorbaApplyInsertIterator, ZorbaApplyInsertIteratorState>);
+
+ void serialize( ::zorba::serialization::Archiver& ar);
+
+ ZorbaApplyInsertIterator(
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& children,
+ bool isDynamic,
+ bool needToCopy)
+ :
+ ZorbaCollectionIteratorHelper<ZorbaApplyInsertIterator, ZorbaApplyInsertIteratorState>(sctx, loc, children, isDynamic, needToCopy)
+ {}
+
+ virtual ~ZorbaApplyInsertIterator();
+
+public:
+ const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
+ void accept(PlanIterVisitor& v) const;
+
+ bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
+};
+
+
+/**
+ *
+ * Author:
+ */
+class ZorbaInsertAfterIterator : public ZorbaCollectionIteratorHelper<ZorbaInsertAfterIterator, PlanIteratorState>
+{
+protected:
+ bool theIsDynamic; //
+public:
+ SERIALIZABLE_CLASS(ZorbaInsertAfterIterator);
+
+ SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaInsertAfterIterator,
+ ZorbaCollectionIteratorHelper<ZorbaInsertAfterIterator, PlanIteratorState>);
+
+ void serialize( ::zorba::serialization::Archiver& ar);
+
+ ZorbaInsertAfterIterator(
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& children,
+ bool isDynamic,
+ bool needToCopy)
+ :
+ ZorbaCollectionIteratorHelper<ZorbaInsertAfterIterator, PlanIteratorState>(sctx, loc, children, isDynamic, needToCopy),
+ theIsDynamic(isDynamic)
+ {}
+
+ virtual ~ZorbaInsertAfterIterator();
+
+public:
+ const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
+ void accept(PlanIterVisitor& v) const;
+
+ bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
+};
+
+
+/**
+ *
+ * Author:
+ */
+class ZorbaInsertBeforeIterator : public ZorbaCollectionIteratorHelper<ZorbaInsertBeforeIterator, PlanIteratorState>
+{
+public:
+ SERIALIZABLE_CLASS(ZorbaInsertBeforeIterator);
+
+ SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaInsertBeforeIterator,
+ ZorbaCollectionIteratorHelper<ZorbaInsertBeforeIterator, PlanIteratorState>);
+
+ void serialize( ::zorba::serialization::Archiver& ar);
+
+ ZorbaInsertBeforeIterator(
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& children,
+ bool isDynamic,
+ bool needToCopy)
+ :
+ ZorbaCollectionIteratorHelper<ZorbaInsertBeforeIterator, PlanIteratorState>(sctx, loc, children, isDynamic, needToCopy)
+ {}
+
+ virtual ~ZorbaInsertBeforeIterator();
+
+public:
+ const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
+ void accept(PlanIterVisitor& v) const;
+
+ bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
+};
+
+
+/**
+ *
+ * Author:
+ */
+class ZorbaInsertFirstIterator : public ZorbaCollectionIteratorHelper<ZorbaInsertFirstIterator,PlanIteratorState>
+{
+public:
+ SERIALIZABLE_CLASS(ZorbaInsertFirstIterator);
+
+ SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaInsertFirstIterator,
+ ZorbaCollectionIteratorHelper<ZorbaInsertFirstIterator,PlanIteratorState>);
+
+ void serialize( ::zorba::serialization::Archiver& ar);
+
+ ZorbaInsertFirstIterator(
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& children,
+ bool isDynamic,
+ bool needToCopy)
+ :
+ ZorbaCollectionIteratorHelper<ZorbaInsertFirstIterator,PlanIteratorState>(sctx, loc, children, isDynamic, needToCopy)
+ {}
+
+ virtual ~ZorbaInsertFirstIterator();
+
+public:
+ const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
+ void accept(PlanIterVisitor& v) const;
+
+ bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
+};
+
+
+/**
+ *
+ * Author:
+ */
+class ZorbaInsertLastIterator : public ZorbaCollectionIteratorHelper<ZorbaInsertLastIterator, PlanIteratorState>
+{
+public:
+ SERIALIZABLE_CLASS(ZorbaInsertLastIterator);
+
+ SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaInsertLastIterator,
+ ZorbaCollectionIteratorHelper<ZorbaInsertLastIterator, PlanIteratorState>);
+
+ void serialize( ::zorba::serialization::Archiver& ar);
+
+ ZorbaInsertLastIterator(
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& children,
+ bool isDynamic,
+ bool needToCopy)
+ :
+ ZorbaCollectionIteratorHelper<ZorbaInsertLastIterator, PlanIteratorState>(sctx, loc, children, isDynamic, needToCopy)
+ {}
+
+ virtual ~ZorbaInsertLastIterator();
+
+public:
+ const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
+ void accept(PlanIterVisitor& v) const;
+
+ bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
+};
+
+
+/**
+ *
+ * Author:
+ */
+class ZorbaApplyInsertFirstIteratorState : public PlanIteratorState
+{
+public:
+ std::vector<store::Item_t> nodes; //the nodes that have been inserted
+ std::vector<store::Item_t>::const_iterator iterator; //iterator over the nodes
+
+ ZorbaApplyInsertFirstIteratorState();
+
+ ~ZorbaApplyInsertFirstIteratorState();
+
+ void init(PlanState&);
+ void reset(PlanState&);
+};
+
+class ZorbaApplyInsertFirstIterator : public ZorbaCollectionIteratorHelper<ZorbaApplyInsertFirstIterator, ZorbaApplyInsertFirstIteratorState>
+{
+public:
+ SERIALIZABLE_CLASS(ZorbaApplyInsertFirstIterator);
+
+ SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaApplyInsertFirstIterator,
+ ZorbaCollectionIteratorHelper<ZorbaApplyInsertFirstIterator, ZorbaApplyInsertFirstIteratorState>);
+
+ void serialize( ::zorba::serialization::Archiver& ar);
+
+ ZorbaApplyInsertFirstIterator(
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& children,
+ bool isDynamic,
+ bool needToCopy)
+ :
+ ZorbaCollectionIteratorHelper<ZorbaApplyInsertFirstIterator, ZorbaApplyInsertFirstIteratorState>(sctx, loc, children, isDynamic, needToCopy)
+ {}
+
+ virtual ~ZorbaApplyInsertFirstIterator();
+
+public:
+ const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
+ void accept(PlanIterVisitor& v) const;
+
+ bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
+};
+
+
+/**
+ *
+ * Author:
+ */
+class ZorbaApplyInsertLastIteratorState : public PlanIteratorState
+{
+public:
+ std::vector<store::Item_t> nodes; //the nodes that have been inserted
+ std::vector<store::Item_t>::const_iterator iterator; //iterator over the nodes
+
+ ZorbaApplyInsertLastIteratorState();
+
+ ~ZorbaApplyInsertLastIteratorState();
+
+ void init(PlanState&);
+ void reset(PlanState&);
+};
+
+class ZorbaApplyInsertLastIterator : public ZorbaCollectionIteratorHelper<ZorbaApplyInsertLastIterator, ZorbaApplyInsertLastIteratorState>
+{
+public:
+ SERIALIZABLE_CLASS(ZorbaApplyInsertLastIterator);
+
+ SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaApplyInsertLastIterator,
+ ZorbaCollectionIteratorHelper<ZorbaApplyInsertLastIterator, ZorbaApplyInsertLastIteratorState>);
+
+ void serialize( ::zorba::serialization::Archiver& ar);
+
+ ZorbaApplyInsertLastIterator(
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& children,
+ bool isDynamic,
+ bool needToCopy)
+ :
+ ZorbaCollectionIteratorHelper<ZorbaApplyInsertLastIterator, ZorbaApplyInsertLastIteratorState>(sctx, loc, children, isDynamic, needToCopy)
+ {}
+
+ virtual ~ZorbaApplyInsertLastIterator();
+
+public:
+ const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
+ void accept(PlanIterVisitor& v) const;
+
+ bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
+};
+
+
+/**
+ *
+ * Author:
+ */
+class ZorbaApplyInsertBeforeIteratorState : public PlanIteratorState
+{
+public:
+ std::vector<store::Item_t> nodes; //the nodes that have been inserted
+ std::vector<store::Item_t>::const_iterator iterator; //iterator over the nodes
+
+ ZorbaApplyInsertBeforeIteratorState();
+
+ ~ZorbaApplyInsertBeforeIteratorState();
+
+ void init(PlanState&);
+ void reset(PlanState&);
+};
+
+class ZorbaApplyInsertBeforeIterator : public ZorbaCollectionIteratorHelper<ZorbaApplyInsertBeforeIterator, ZorbaApplyInsertBeforeIteratorState>
+{
+public:
+ SERIALIZABLE_CLASS(ZorbaApplyInsertBeforeIterator);
+
+ SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaApplyInsertBeforeIterator,
+ ZorbaCollectionIteratorHelper<ZorbaApplyInsertBeforeIterator, ZorbaApplyInsertBeforeIteratorState>);
+
+ void serialize( ::zorba::serialization::Archiver& ar);
+
+ ZorbaApplyInsertBeforeIterator(
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& children,
+ bool isDynamic,
+ bool needToCopy)
+ :
+ ZorbaCollectionIteratorHelper<ZorbaApplyInsertBeforeIterator, ZorbaApplyInsertBeforeIteratorState>(sctx, loc, children, isDynamic, needToCopy)
+ {}
+
+ virtual ~ZorbaApplyInsertBeforeIterator();
+
+public:
+ const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
+ void accept(PlanIterVisitor& v) const;
+
+ bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
+};
+
+
+/**
+ *
+ * Author:
+ */
+class ZorbaApplyInsertAfterIteratorState : public PlanIteratorState
+{
+public:
+ std::vector<store::Item_t> nodes; //the nodes that have been inserted
+ std::vector<store::Item_t>::const_iterator iterator; //iterator over the nodes
+
+ ZorbaApplyInsertAfterIteratorState();
+
+ ~ZorbaApplyInsertAfterIteratorState();
+
+ void init(PlanState&);
+ void reset(PlanState&);
+};
+
+class ZorbaApplyInsertAfterIterator : public ZorbaCollectionIteratorHelper<ZorbaApplyInsertAfterIterator, ZorbaApplyInsertAfterIteratorState>
+{
+public:
+ SERIALIZABLE_CLASS(ZorbaApplyInsertAfterIterator);
+
+ SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaApplyInsertAfterIterator,
+ ZorbaCollectionIteratorHelper<ZorbaApplyInsertAfterIterator, ZorbaApplyInsertAfterIteratorState>);
+
+ void serialize( ::zorba::serialization::Archiver& ar);
+
+ ZorbaApplyInsertAfterIterator(
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& children,
+ bool isDynamic,
+ bool needToCopy)
+ :
+ ZorbaCollectionIteratorHelper<ZorbaApplyInsertAfterIterator, ZorbaApplyInsertAfterIteratorState>(sctx, loc, children, isDynamic, needToCopy)
+ {}
+
+ virtual ~ZorbaApplyInsertAfterIterator();
+
+public:
+ const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
+ void accept(PlanIterVisitor& v) const;
+
+ bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
+};
+
+
+/**
+ *
+ * Author:
+ */
+class ZorbaDeleteIterator : public NaryBaseIterator<ZorbaDeleteIterator, PlanIteratorState>
+{
+protected:
+ bool theIsDynamic; //
+public:
+ SERIALIZABLE_CLASS(ZorbaDeleteIterator);
+
+ SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaDeleteIterator,
+ NaryBaseIterator<ZorbaDeleteIterator, PlanIteratorState>);
+
+ void serialize( ::zorba::serialization::Archiver& ar);
+
+ ZorbaDeleteIterator(
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& children,
+ bool isDynamic)
+ :
+ NaryBaseIterator<ZorbaDeleteIterator, PlanIteratorState>(sctx, loc, children),
+ theIsDynamic(isDynamic)
+ {}
+
+ virtual ~ZorbaDeleteIterator();
+
+public:
+ const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
+ void accept(PlanIterVisitor& v) const;
+
+ bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
+};
+
+
+/**
+ *
+ * Author:
+ */
+class ZorbaDeleteFirstIterator : public NaryBaseIterator<ZorbaDeleteFirstIterator, PlanIteratorState>
+{
+protected:
+ bool theIsDynamic; //
+public:
+ SERIALIZABLE_CLASS(ZorbaDeleteFirstIterator);
+
+ SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaDeleteFirstIterator,
+ NaryBaseIterator<ZorbaDeleteFirstIterator, PlanIteratorState>);
+
+ void serialize( ::zorba::serialization::Archiver& ar);
+
+ ZorbaDeleteFirstIterator(
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& children,
+ bool isDynamic)
+ :
+ NaryBaseIterator<ZorbaDeleteFirstIterator, PlanIteratorState>(sctx, loc, children),
+ theIsDynamic(isDynamic)
+ {}
+
+ virtual ~ZorbaDeleteFirstIterator();
+
+public:
+ const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
+ void accept(PlanIterVisitor& v) const;
+
+ bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
+};
+
+
+/**
+ *
+ * Author:
+ */
+class ZorbaDeleteLastIterator : public NaryBaseIterator<ZorbaDeleteLastIterator, PlanIteratorState>
+{
+protected:
+ bool theIsDynamic; //
+public:
+ SERIALIZABLE_CLASS(ZorbaDeleteLastIterator);
+
+ SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaDeleteLastIterator,
+ NaryBaseIterator<ZorbaDeleteLastIterator, PlanIteratorState>);
+
+ void serialize( ::zorba::serialization::Archiver& ar);
+
+ ZorbaDeleteLastIterator(
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& children,
+ bool isDynamic)
+ :
+ NaryBaseIterator<ZorbaDeleteLastIterator, PlanIteratorState>(sctx, loc, children),
+ theIsDynamic(isDynamic)
+ {}
+
+ virtual ~ZorbaDeleteLastIterator();
+
+public:
+ const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
+ void accept(PlanIterVisitor& v) const;
+
+ bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
+};
+
+
+/**
+ *
+ * Author:
+ */
+class ZorbaEditIterator : public NaryBaseIterator<ZorbaEditIterator, PlanIteratorState>
{
protected:
bool theIsDynamic; //
bool theNeedToCopy; //
public:
- SERIALIZABLE_CLASS(ZorbaEditNodesIterator);
+ SERIALIZABLE_CLASS(ZorbaEditIterator);
- SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaEditNodesIterator,
- NaryBaseIterator<ZorbaEditNodesIterator, PlanIteratorState>);
+ SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaEditIterator,
+ NaryBaseIterator<ZorbaEditIterator, PlanIteratorState>);
void serialize( ::zorba::serialization::Archiver& ar);
- ZorbaEditNodesIterator(
+ ZorbaEditIterator(
static_context* sctx,
const QueryLoc& loc,
std::vector<PlanIter_t>& children,
bool isDynamic,
bool needToCopy)
:
- NaryBaseIterator<ZorbaEditNodesIterator, PlanIteratorState>(sctx, loc, children),
+ NaryBaseIterator<ZorbaEditIterator, PlanIteratorState>(sctx, loc, children),
theIsDynamic(isDynamic),
theNeedToCopy(needToCopy)
{}
- virtual ~ZorbaEditNodesIterator();
-
-public:
- const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
- void accept(PlanIterVisitor& v) const;
-
- bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
-};
-
-
-/**
- *
- * zorba:truncate
- *
- * Author: Zorba Team
+ virtual ~ZorbaEditIterator();
+
+public:
+ const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
+ void accept(PlanIterVisitor& v) const;
+
+ bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
+};
+
+
+/**
+ *
+ * Author:
+ */
+class ZorbaInsertIterator : public ZorbaCollectionIteratorHelper<ZorbaInsertIterator, PlanIteratorState>
+{
+public:
+ SERIALIZABLE_CLASS(ZorbaInsertIterator);
+
+ SERIALIZABLE_CLASS_CONSTRUCTOR2T(ZorbaInsertIterator,
+ ZorbaCollectionIteratorHelper<ZorbaInsertIterator, PlanIteratorState>);
+
+ void serialize( ::zorba::serialization::Archiver& ar);
+
+ ZorbaInsertIterator(
+ static_context* sctx,
+ const QueryLoc& loc,
+ std::vector<PlanIter_t>& children,
+ bool isDynamic,
+ bool needToCopy)
+ :
+ ZorbaCollectionIteratorHelper<ZorbaInsertIterator, PlanIteratorState>(sctx, loc, children, isDynamic, needToCopy)
+ {}
+
+ virtual ~ZorbaInsertIterator();
+
+public:
+ const StaticallyKnownCollection* getCollection(const store::Item_t& name, store::Collection_t& coll) const;
+ void accept(PlanIterVisitor& v) const;
+
+ bool nextImpl(store::Item_t& result, PlanState& aPlanState) const;
+};
+
+
+/**
+ *
+ * Author:
*/
class ZorbaTruncateCollectionIterator : public NaryBaseIterator<ZorbaTruncateCollectionIterator, PlanIteratorState>
{
@@ -995,9 +949,7 @@
/**
*
- * dc:is-available-index
- *
- * Author: Zorba Team
+ * Author:
*/
class IsAvailableIndexIterator : public NaryBaseIterator<IsAvailableIndexIterator, PlanIteratorState>
{
@@ -1027,9 +979,7 @@
/**
*
- * dc:available-indexes
- *
- * Author: Zorba Team
+ * Author:
*/
class AvailableIndexesIteratorState : public PlanIteratorState
{
@@ -1072,9 +1022,7 @@
/**
*
- * dc:is-activated-integrity-constraint
- *
- * Author: Zorba Team
+ * Author:
*/
class IsActivatedICIterator : public NaryBaseIterator<IsActivatedICIterator, PlanIteratorState>
{
@@ -1104,9 +1052,7 @@
/**
*
- * dc:activated-integrity-constraints
- *
- * Author: Zorba Team
+ * Author:
*/
class ActivatedICsIteratorState : public PlanIteratorState
{
@@ -1149,9 +1095,7 @@
/**
*
- * sc:is-declared-collection
- *
- * Author: Zorba Team
+ * Author:
*/
class IsDeclaredCollectionIterator : public NaryBaseIterator<IsDeclaredCollectionIterator, PlanIteratorState>
{
@@ -1181,9 +1125,7 @@
/**
*
- * sc:declared-collections
- *
- * Author: Zorba Team
+ * Author:
*/
class DeclaredCollectionsIteratorState : public PlanIteratorState
{
@@ -1226,9 +1168,7 @@
/**
*
- * sc:is-declared-index
- *
- * Author: Zorba Team
+ * Author:
*/
class IsDeclaredIndexIterator : public NaryBaseIterator<IsDeclaredIndexIterator, PlanIteratorState>
{
@@ -1258,14 +1198,12 @@
/**
*
- * sc:declared-indexes
- *
- * Author: Zorba Team
+ * Author:
*/
class DeclaredIndexesIteratorState : public PlanIteratorState
{
public:
- store::Iterator_t nameItState; //the current iterator
+ store::Iterator_t nameItState; //
DeclaredIndexesIteratorState();
@@ -1303,9 +1241,7 @@
/**
*
- * sc:is-declared-integrity-constraint
- *
- * Author: Zorba Team
+ * Author:
*/
class IsDeclaredICIterator : public NaryBaseIterator<IsDeclaredICIterator, PlanIteratorState>
{
@@ -1335,9 +1271,7 @@
/**
*
- * sc:declared-integrity-constrints
- *
- * Author: Zorba Team
+ * Author:
*/
class DeclaredICsIteratorState : public PlanIteratorState
{
@@ -1380,16 +1314,13 @@
/**
*
- * Returns a sequence of xs:anyURI values representing the document URIs of the
- * documents in a collection.
- *
- * Author: Zorba Team
+ * Author:
*/
class FnURICollectionIteratorState : public PlanIteratorState
{
public:
- store::Iterator_t theIterator; //the current iterator
- bool theIteratorOpened; //flag indicating whether theIterator was opened
+ store::Iterator_t theIterator; //
+ bool theIteratorOpened; //
FnURICollectionIteratorState();
=== modified file 'src/runtime/pregenerated/iterator_enum.h'
--- src/runtime/pregenerated/iterator_enum.h 2013-10-01 23:33:19 +0000
+++ src/runtime/pregenerated/iterator_enum.h 2013-10-09 23:30:21 +0000
@@ -41,20 +41,20 @@
TYPE_ZorbaCollectionIterator,
TYPE_ZorbaCollectionNameIterator,
TYPE_ZorbaIndexOfIterator,
- TYPE_ZorbaInsertNodesIterator,
- TYPE_ZorbaInsertNodesFirstIterator,
- TYPE_ZorbaInsertNodesLastIterator,
- TYPE_ZorbaInsertNodesBeforeIterator,
- TYPE_ZorbaInsertNodesAfterIterator,
- TYPE_ZorbaApplyInsertNodesIterator,
- TYPE_ZorbaApplyInsertNodesFirstIterator,
- TYPE_ZorbaApplyInsertNodesLastIterator,
- TYPE_ZorbaApplyInsertNodesBeforeIterator,
- TYPE_ZorbaApplyInsertNodesAfterIterator,
- TYPE_ZorbaDeleteNodesIterator,
- TYPE_ZorbaDeleteNodesFirstIterator,
- TYPE_ZorbaDeleteNodesLastIterator,
- TYPE_ZorbaEditNodesIterator,
+ TYPE_ZorbaApplyInsertIterator,
+ TYPE_ZorbaInsertAfterIterator,
+ TYPE_ZorbaInsertBeforeIterator,
+ TYPE_ZorbaInsertFirstIterator,
+ TYPE_ZorbaInsertLastIterator,
+ TYPE_ZorbaApplyInsertFirstIterator,
+ TYPE_ZorbaApplyInsertLastIterator,
+ TYPE_ZorbaApplyInsertBeforeIterator,
+ TYPE_ZorbaApplyInsertAfterIterator,
+ TYPE_ZorbaDeleteIterator,
+ TYPE_ZorbaDeleteFirstIterator,
+ TYPE_ZorbaDeleteLastIterator,
+ TYPE_ZorbaEditIterator,
+ TYPE_ZorbaInsertIterator,
TYPE_ZorbaTruncateCollectionIterator,
TYPE_IsAvailableIndexIterator,
TYPE_AvailableIndexesIterator,
@@ -328,11 +328,11 @@
TYPE_FnUnparsedTextIterator,
TYPE_FnUnparsedTextAvailableIterator,
TYPE_FnUnparsedTextLinesIterator,
+ TYPE_AvailableDocumentsIterator,
+ TYPE_IsAvailableDocumentIterator,
TYPE_PutDocumentIterator,
TYPE_RemoveDocumentIterator,
TYPE_RetrieveDocumentIterator,
- TYPE_AvailableDocumentsIterator,
- TYPE_IsAvailableDocumentIterator,
TYPE_MapCreateIterator,
TYPE_MapDropIterator,
TYPE_MapGetIterator,
=== modified file 'src/runtime/spec/collections/collections.xml'
--- src/runtime/spec/collections/collections.xml 2013-07-15 10:32:25 +0000
+++ src/runtime/spec/collections/collections.xml 2013-10-09 23:30:21 +0000
@@ -1,1611 +1,1209 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/////////////////////////////////////////////////////////////////////////////////
-// //
-// //
-/////////////////////////////////////////////////////////////////////////////////
--->
<zorba:iterators
xmlns:zorba="http://www.zorba-xquery.com";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.zorba-xquery.com ../runtime.xsd">
<zorba:source>
- <zorba:include form="Quoted">store/api/iterator.h</zorba:include>
+ <zorba:include form="Quoted">store/api/iterator.h</zorba:include>
</zorba:source>
<zorba:header>
- <zorba:fwd-decl ns="zorba">StaticallyKnownCollection</zorba:fwd-decl>
- <zorba:include form="Quoted">runtime/collections/collections_base.h</zorba:include>
+ <zorba:fwd-decl ns="zorba">StaticallyKnownCollection</zorba:fwd-decl>
+ <zorba:include form="Quoted">runtime/collections/collections_base.h</zorba:include>
</zorba:header>
-
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
-<zorba:iterator name="ZorbaCreateCollectionIterator" >
-
- <zorba:description author="Zorba Team">
- zorba:create
- </zorba:description>
-
- <zorba:function generateCodegen="false">
-
- <zorba:signature localname="create" prefix="static-collections-ddl">
- <zorba:param>xs:QName</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="create" prefix="static-collections-ddl">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>structured-item()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="create" prefix="dynamic-collections-ddl">
- <zorba:param>xs:QName</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="create" prefix="dynamic-collections-ddl">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>structured-item()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:methods>
- <zorba:getScriptingKind returnValue="UPDATING_EXPR"/>
- <zorba:accessesDynCtx returnValue="true"/>
- <zorba:mustCopyInputNodes producer="1"/>
- </zorba:methods>
-
- </zorba:function>
-
- <zorba:constructor>
- <zorba:parameter type="bool" name="isDynamic" />
- </zorba:constructor>
-
- <zorba:method const="true"
- name="getCollection"
- return="const StaticallyKnownCollection*">
- <zorba:param type="const store::Item_t&" name="name"/>
- <zorba:param type="store::Collection_t&" name="coll"/>
- </zorba:method>
-
- <zorba:member type="bool" name="theIsDynamic"/>
-
-</zorba:iterator>
-
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
-<zorba:iterator name="ZorbaDeleteCollectionIterator" >
-
- <zorba:description author="Zorba Team">
- zorba:delete
- </zorba:description>
-
- <zorba:function generateCodegen="false">
-
- <zorba:signature localname="delete" prefix="static-collections-ddl">
- <zorba:param>xs:QName</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="delete" prefix="dynamic-collections-ddl">
- <zorba:param>xs:QName</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:methods>
- <zorba:getScriptingKind returnValue="UPDATING_EXPR"/>
- <zorba:accessesDynCtx returnValue="true"/>
- <zorba:mustCopyInputNodes value="false"/>
- </zorba:methods>
-
- </zorba:function>
-
- <zorba:constructor>
- <zorba:parameter type="bool" name="isDynamic" />
- </zorba:constructor>
-
- <zorba:member type="bool" name="theIsDynamic"/>
-
-</zorba:iterator>
-
-
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
+<!--========================================================================-->
+
+<zorba:iterator name="ZorbaCreateCollectionIterator">
+
+ <zorba:function generateCodegen="false">
+
+ <zorba:signature localname="create"
+ prefix="zorba-store-static-collections-ddl">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:output>empty-sequence()</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="create"
+ prefix="zorba-store-static-collections-ddl">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>structured-item()*</zorba:param>
+ <zorba:output>empty-sequence()</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="create"
+ prefix="zorba-store-dynamic-collections-ddl">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:output>empty-sequence()</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="create"
+ prefix="zorba-store-dynamic-collections-ddl">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>structured-item()*</zorba:param>
+ <zorba:output>empty-sequence()</zorba:output>
+ </zorba:signature>
+
+ <zorba:methods>
+ <zorba:getScriptingKind returnValue="UPDATING_EXPR"/>
+ <zorba:accessesDynCtx returnValue="true"/>
+ <zorba:mustCopyInputNodes producer="1"/>
+ </zorba:methods>
+
+ </zorba:function>
+
+ <zorba:constructor>
+ <zorba:parameter type="bool" name="isDynamic" />
+ </zorba:constructor>
+
+ <zorba:method const="true"
+ name="getCollection"
+ return="const StaticallyKnownCollection*">
+ <zorba:param type="const store::Item_t&" name="name"/>
+ <zorba:param type="store::Collection_t&" name="coll"/>
+ </zorba:method>
+
+ <zorba:member type="bool" name="theIsDynamic"/>
+
+</zorba:iterator>
+
+<!--========================================================================-->
+
+<zorba:iterator name="ZorbaDeleteCollectionIterator">
+ <zorba:function generateCodegen="false">
+
+ <zorba:signature localname="delete"
+ prefix="zorba-store-static-collections-ddl">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:output>empty-sequence()</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="delete"
+ prefix="zorba-store-dynamic-collections-ddl">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:output>empty-sequence()</zorba:output>
+ </zorba:signature>
+
+ <zorba:methods>
+ <zorba:getScriptingKind returnValue="UPDATING_EXPR"/>
+ <zorba:accessesDynCtx returnValue="true"/>
+ <zorba:mustCopyInputNodes value="false"/>
+ </zorba:methods>
+
+ </zorba:function>
+
+ <zorba:constructor>
+ <zorba:parameter type="bool" name="isDynamic" />
+ </zorba:constructor>
+
+ <zorba:member type="bool" name="theIsDynamic"/>
+
+</zorba:iterator>
+
+<!--========================================================================-->
+
<zorba:iterator name="IsAvailableCollectionIterator">
-
- <zorba:description author="Zorba Team">
- dc:is-available-collection
- </zorba:description>
-
- <zorba:function generateCodegen="false">
-
- <zorba:signature localname="is-available-collection"
- prefix="static-collections-ddl">
- <zorba:param>xs:QName</zorba:param>
- <zorba:output>xs:boolean</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="is-available-collection"
- prefix="dynamic-collections-ddl">
- <zorba:param>xs:QName</zorba:param>
- <zorba:output>xs:boolean</zorba:output>
- </zorba:signature>
-
- <zorba:methods>
- <zorba:accessesDynCtx returnValue="true"/>
- </zorba:methods>
- </zorba:function>
-
- <zorba:constructor>
- <zorba:parameter type="bool" name="isDynamic"/>
- </zorba:constructor>
-
- <zorba:member type="bool" name="theIsDynamic"/>
-
+ <zorba:function generateCodegen="false">
+
+ <zorba:signature localname="is-available-collection"
+ prefix="zorba-store-static-collections-ddl">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:output>xs:boolean</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="is-available-collection"
+ prefix="zorba-store-dynamic-collections-ddl">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:output>xs:boolean</zorba:output>
+ </zorba:signature>
+
+ <zorba:methods>
+ <zorba:accessesDynCtx returnValue="true"/>
+ </zorba:methods>
+ </zorba:function>
+
+ <zorba:constructor>
+ <zorba:parameter type="bool" name="isDynamic"/>
+ </zorba:constructor>
+
+ <zorba:member type="bool" name="theIsDynamic"/>
</zorba:iterator>
+<!--========================================================================-->
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
<zorba:iterator name="AvailableCollectionsIterator">
-
- <zorba:description author="Zorba Team">
- dc:available-collections
- </zorba:description>
-
- <zorba:function generateCodegen="false">
-
- <zorba:signature localname="available-collections"
- prefix="static-collections-ddl">
- <zorba:output>xs:QName*</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="available-collections"
- prefix="dynamic-collections-ddl">
- <zorba:output>xs:QName*</zorba:output>
- </zorba:signature>
-
- <zorba:methods>
- <zorba:accessesDynCtx returnValue="true"/>
- </zorba:methods>
- </zorba:function>
-
- <zorba:constructor>
- <zorba:parameter type="bool" name="isDynamic"/>
- </zorba:constructor>
-
- <zorba:member type="bool" name="theIsDynamic"/>
-
- <zorba:state generateInit="false" generateReset="false" generateDestructor="false">
- <zorba:member type="store::Iterator_t" name="nameItState"/>
- </zorba:state>
+ <zorba:function generateCodegen="false">
+
+ <zorba:signature localname="available-collections"
+ prefix="zorba-store-static-collections-ddl">
+ <zorba:output>xs:QName*</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="available-collections"
+ prefix="zorba-store-dynamic-collections-ddl">
+ <zorba:output>xs:QName*</zorba:output>
+ </zorba:signature>
+
+ <zorba:methods>
+ <zorba:accessesDynCtx returnValue="true"/>
+ </zorba:methods>
+ </zorba:function>
+
+ <zorba:constructor>
+ <zorba:parameter type="bool" name="isDynamic"/>
+ </zorba:constructor>
+
+ <zorba:member type="bool" name="theIsDynamic"/>
+
+ <zorba:state generateInit="false" generateReset="false" generateDestructor="false">
+ <zorba:member type="store::Iterator_t" name="nameItState"/>
+ </zorba:state>
</zorba:iterator>
+<!--========================================================================-->
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
<zorba:iterator name="FnCollectionIterator">
-
- <zorba:description author="Zorba Team">
- fn:collection
- </zorba:description>
-
- <zorba:function>
-
- <zorba:signature localname="collection" prefix="fn">
- <zorba:output>node()*</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="collection" prefix="fn">
- <zorba:param>xs:string?</zorba:param>
- <zorba:output>node()*</zorba:output>
- </zorba:signature>
-
- <zorba:methods>
- <zorba:accessesDynCtx returnValue="true"/>
- <zorba:isSource returnValue="true"/>
- </zorba:methods>
-
- </zorba:function>
-
- <zorba:state generateInit="false" generateReset="false" generateDestructor="false">
- <zorba:member type="store::Iterator_t" name="theIterator"
- brief="the current iterator"/>
- <zorba:member type="bool" name="theIteratorOpened" defaultValue="false"
- brief="flag indicating whether theIterator was opened"/>
- </zorba:state>
-
- <zorba:method name="count" const="true" return="bool">
- <zorba:param name="result" type="store::Item_t&"/>
- <zorba:param name="planState" type="PlanState&"/>
- </zorba:method>
-
- <zorba:method name="getCollection" const="true" return="store::Collection_t">
- <zorba:param name="planState" type="PlanState&"/>
- </zorba:method>
+ <zorba:function>
+
+ <zorba:signature localname="collection" prefix="fn">
+ <zorba:output>node()*</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="collection" prefix="fn">
+ <zorba:param>xs:string?</zorba:param>
+ <zorba:output>node()*</zorba:output>
+ </zorba:signature>
+
+ <zorba:methods>
+ <zorba:accessesDynCtx returnValue="true"/>
+ <zorba:isSource returnValue="true"/>
+ </zorba:methods>
+
+ </zorba:function>
+
+ <zorba:state generateInit="false" generateReset="false" generateDestructor="false">
+ <zorba:member type="store::Iterator_t" name="theIterator"/>
+ <zorba:member type="bool" name="theIteratorOpened" defaultValue="false"/>
+ </zorba:state>
+
+ <zorba:method name="count" const="true" return="bool">
+ <zorba:param name="result" type="store::Item_t&"/>
+ <zorba:param name="planState" type="PlanState&"/>
+ </zorba:method>
+
+ <zorba:method name="getCollection" const="true" return="store::Collection_t">
+ <zorba:param name="planState" type="PlanState&"/>
+ </zorba:method>
</zorba:iterator>
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
+<!--========================================================================-->
+
<zorba:iterator name="ZorbaCollectionIterator">
-
- <zorba:description author="Zorba Team">
- zorba:collection
- </zorba:description>
-
- <zorba:function generateCodegen="false">
-
- <zorba:signature localname="collection" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:output>structured-item()*</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="collection" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>xs:integer</zorba:param><!-- nodes to skip -->
- <zorba:output>structured-item()*</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="collection"
- prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>xs:anyURI</zorba:param><!-- start ref -->
- <zorba:param>xs:integer</zorba:param><!-- nodes to skip -->
- <zorba:output>structured-item()*</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="collection" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:output>structured-item()*</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="collection" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>xs:integer</zorba:param><!-- start to skip -->
- <zorba:output>structured-item()*</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="collection"
- prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>xs:anyURI</zorba:param><!-- node ref-->
- <zorba:param>xs:integer</zorba:param><!-- nodes to skip -->
- <zorba:output>structured-item()*</zorba:output>
- </zorba:signature>
-
- <zorba:methods>
- <zorba:accessesDynCtx returnValue="true"/>
- <zorba:getReturnType/>
- <zorba:isSource returnValue="true"/>
- <zorba:producesDistinctNodes returnValue="YES"/>
- <zorba:producesSortedNodes returnValue="YES"/>
- </zorba:methods>
-
- </zorba:function>
-
- <zorba:constructor>
- <zorba:parameter type="bool" name="isDynamic"/>
- </zorba:constructor>
-
- <zorba:member type="bool" name="theIsDynamic" getterName="isDynamic"/>
-
- <zorba:method const="true" name="isCountOptimizable" return="bool" />
-
- <zorba:method name="count" const="true" return="bool">
- <zorba:param name="result" type="store::Item_t&"/>
- <zorba:param name="planState" type="PlanState&"/>
- </zorba:method>
-
- <zorba:method name="skip" const="true" return="bool">
- <zorba:param name="count" type="int64_t"/>
- <zorba:param name="planState" type="PlanState&"/>
- </zorba:method>
-
- <zorba:method name="initCollection" const="true" return="void">
- <zorba:param name="planState" type="PlanState&"/>
- <zorba:param name="skipCount" type="int64_t"/>
- </zorba:method>
-
- <zorba:state generateInit="false" generateReset="false" generateDestructor="false">
- <zorba:member type="store::Iterator_t" name="theIterator"/>
- <zorba:member type="bool" name="theIteratorOpened" defaultValue="false"/>
- </zorba:state>
-
-</zorba:iterator>
-
-
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
-<zorba:iterator name="ZorbaCollectionNameIterator" >
-
- <zorba:description author="Zorba Team">
- zorba:collection-name
- </zorba:description>
-
- <zorba:function>
-
- <zorba:signature localname="collection-name" prefix="static-collections-dml">
- <zorba:param>structured-item()</zorba:param>
- <zorba:output>xs:QName</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="collection-name" prefix="dynamic-collections-dml">
- <zorba:param>structured-item()</zorba:param>
- <zorba:output>xs:QName</zorba:output>
- </zorba:signature>
-
- <zorba:methods>
- <zorba:accessesDynCtx returnValue="true"/>
- <zorba:mustCopyInputNodes value="false"/>
- </zorba:methods>
-
- </zorba:function>
-
-</zorba:iterator>
-
-
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
-<zorba:iterator name="ZorbaIndexOfIterator" >
-
- <zorba:description author="Zorba Team">
- zorba:index-of
- </zorba:description>
-
- <zorba:function generateCodegen="false">
-
- <zorba:signature localname="index-of" prefix="static-collections-dml">
- <zorba:param>structured-item()</zorba:param>
- <zorba:output>xs:integer</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="index-of" prefix="dynamic-collections-dml">
- <zorba:param>structured-item()</zorba:param>
- <zorba:output>xs:integer</zorba:output>
- </zorba:signature>
-
- <zorba:methods>
- <zorba:accessesDynCtx returnValue="true"/>
- <zorba:mustCopyInputNodes value="false"/>
- </zorba:methods>
-
- </zorba:function>
-
- <zorba:constructor>
- <zorba:parameter type="bool" name="isDynamic"/>
- </zorba:constructor>
-
- <zorba:member type="bool" name="theIsDynamic"/>
-
-</zorba:iterator>
-
-
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
-<zorba:iterator name="ZorbaInsertNodesIterator"
- base="ZorbaCollectionIteratorHelper<ZorbaInsertNodesIterator, PlanIteratorState>"
- generateVisitor="false">
-
- <zorba:description author="Zorba Team">
- zorba:insert-nodes
- </zorba:description>
-
- <zorba:function generateCodegen="false">
-
- <zorba:signature localname="insert-nodes" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>node()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="insert" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>structured-item()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <!-- not available because dynamic collections are always ordered
- <zorba:signature localname="insert-nodes" prefix="zorba-store-collections">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>node()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
- -->
-
- <zorba:methods>
- <zorba:getScriptingKind returnValue="UPDATING_EXPR"/>
- <zorba:accessesDynCtx returnValue="true"/>
- <zorba:mustCopyInputNodes producer="1"/>
- <zorba:processPragma/>
- </zorba:methods>
-
- </zorba:function>
-
- <zorba:constructor>
- <zorba:parameter type="bool" name="isDynamic" base="true"/>
- <zorba:parameter type="bool" name="needToCopy" base="true"/>
- </zorba:constructor>
-
- <zorba:method const="true" name="getCollection"
- return="const StaticallyKnownCollection*">
- <zorba:param type="const store::Item_t&" name="name"/>
- <zorba:param type="store::Collection_t&" name="coll"/>
- </zorba:method>
-
-</zorba:iterator>
-
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
-<zorba:iterator name="ZorbaInsertNodesFirstIterator"
- base="ZorbaCollectionIteratorHelper<ZorbaInsertNodesFirstIterator, PlanIteratorState>"
- generateVisitor="false">
-
- <zorba:description author="Zorba Team">
- zorba:insert-nodes-first
- </zorba:description>
-
- <zorba:function generateCodegen="false">
-
- <zorba:signature localname="insert-nodes-first" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>node()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="insert-nodes-first" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>node()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="insert-first" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>structured-item()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="insert-first" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>structured-item()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
-
- <zorba:methods>
- <zorba:getScriptingKind returnValue="UPDATING_EXPR"/>
- <zorba:accessesDynCtx returnValue="true"/>
- <zorba:mustCopyInputNodes producer="1"/>
- <zorba:processPragma/>
- </zorba:methods>
-
- </zorba:function>
-
- <zorba:constructor>
- <zorba:parameter type="bool" name="isDynamic" base="true"/>
- <zorba:parameter type="bool" name="needToCopy" base="true"/>
- </zorba:constructor>
-
- <zorba:method const="true" name="getCollection"
- return="const StaticallyKnownCollection*">
- <zorba:param type="const store::Item_t&" name="name"/>
- <zorba:param type="store::Collection_t&" name="coll"/>
- </zorba:method>
-
-</zorba:iterator>
-
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
-<zorba:iterator name="ZorbaInsertNodesLastIterator"
- base="ZorbaCollectionIteratorHelper<ZorbaInsertNodesLastIterator, PlanIteratorState>"
- generateVisitor="false">
-
- <zorba:description author="Zorba Team">
- zorba:insert-nodes-last
- </zorba:description>
-
- <zorba:function generateCodegen="false">
-
- <zorba:signature localname="insert-nodes-last" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>node()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="insert-nodes-last" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>node()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="insert-last" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>structured-item()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="insert-last" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>structured-item()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:methods>
- <zorba:getScriptingKind returnValue="UPDATING_EXPR"/>
- <zorba:accessesDynCtx returnValue="true"/>
- <zorba:mustCopyInputNodes producer="1"/>
- <zorba:processPragma/>
- </zorba:methods>
-
- </zorba:function>
-
- <zorba:constructor>
- <zorba:parameter type="bool" name="isDynamic" base="true"/>
- <zorba:parameter type="bool" name="needToCopy" base="true"/>
- </zorba:constructor>
-
- <zorba:method const="true" name="getCollection"
- return="const StaticallyKnownCollection*">
- <zorba:param type="const store::Item_t&" name="name"/>
- <zorba:param type="store::Collection_t&" name="coll"/>
- </zorba:method>
-
-</zorba:iterator>
-
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
-<zorba:iterator name="ZorbaInsertNodesBeforeIterator"
- base="ZorbaCollectionIteratorHelper<ZorbaInsertNodesBeforeIterator, PlanIteratorState>"
- generateVisitor="false">
-
- <zorba:description author="Zorba Team">
- zorba:insert-nodes-before
- </zorba:description>
-
- <zorba:function generateCodegen="false">
-
- <zorba:signature localname="insert-nodes-before" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>node()</zorba:param>
- <zorba:param>node()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="insert-nodes-before" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>node()</zorba:param>
- <zorba:param>node()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="insert-before" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>structured-item()</zorba:param>
- <zorba:param>structured-item()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="insert-before" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>structured-item()</zorba:param>
- <zorba:param>structured-item()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:methods>
- <zorba:getScriptingKind returnValue="UPDATING_EXPR"/>
- <zorba:accessesDynCtx returnValue="true"/>
- <zorba:mustCopyInputNodes producer="2"/>
- <zorba:processPragma/>
- </zorba:methods>
-
- </zorba:function>
-
- <zorba:constructor>
- <zorba:parameter type="bool" name="isDynamic" base="true"/>
- <zorba:parameter type="bool" name="needToCopy" base="true"/>
- </zorba:constructor>
-
- <zorba:method const="true" name="getCollection"
- return="const StaticallyKnownCollection*">
- <zorba:param type="const store::Item_t&" name="name"/>
- <zorba:param type="store::Collection_t&" name="coll"/>
- </zorba:method>
-
-</zorba:iterator>
-
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
-<zorba:iterator name="ZorbaInsertNodesAfterIterator"
- base="ZorbaCollectionIteratorHelper<ZorbaInsertNodesAfterIterator, PlanIteratorState>"
- generateVisitor="false">
-
- <zorba:description author="Zorba Team">
- zorba:insert-nodes-after
- </zorba:description>
-
- <zorba:function generateCodegen="false">
-
- <zorba:signature localname="insert-nodes-after" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>node()</zorba:param>
- <zorba:param>node()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="insert-nodes-after" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>node()</zorba:param>
- <zorba:param>node()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="insert-after" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>structured-item()</zorba:param>
- <zorba:param>structured-item()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="insert-after" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>structured-item()</zorba:param>
- <zorba:param>structured-item()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:methods>
- <zorba:getScriptingKind returnValue="UPDATING_EXPR"/>
- <zorba:accessesDynCtx returnValue="true"/>
- <zorba:mustCopyInputNodes producer="2"/>
- <zorba:processPragma/>
- </zorba:methods>
-
- </zorba:function>
-
- <zorba:constructor>
- <zorba:parameter type="bool" name="isDynamic" base="true"/>
- <zorba:parameter type="bool" name="needToCopy" base="true"/>
- </zorba:constructor>
-
- <zorba:member type="bool" name="theIsDynamic"/>
-
- <zorba:method const="true" name="getCollection"
- return="const StaticallyKnownCollection*">
- <zorba:param type="const store::Item_t&" name="name"/>
- <zorba:param type="store::Collection_t&" name="coll"/>
- </zorba:method>
-
-</zorba:iterator>
-
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
-<zorba:iterator name="ZorbaApplyInsertNodesIterator"
- base="ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesIterator, ZorbaApplyInsertNodesIteratorState>"
- generateVisitor="false">
-
- <zorba:description author="Zorba Team">
- zorba:apply-insert-nodes
- </zorba:description>
-
- <zorba:function generateCodegen="false">
-
- <zorba:signature localname="apply-insert-nodes" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>node()*</zorba:param>
- <zorba:output>node()*</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="apply-insert" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>structured-item()*</zorba:param>
- <zorba:output>structured-item()*</zorba:output>
- </zorba:signature>
-
- <!-- not available because dynamic collections are always ordered
- <zorba:signature localname="apply-insert-nodes" prefix="zorba-store-collections">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>node()*</zorba:param>
- <zorba:output>node()*</zorba:output>
- </zorba:signature>
- -->
-
- <zorba:methods>
- <zorba:getScriptingKind returnValue="APPLYING_EXPR"/>
- <zorba:accessesDynCtx returnValue="true"/>
- <zorba:propagatesInputNodes/>
- <zorba:mustCopyInputNodes producer="1"/>
- <zorba:processPragma/>
- </zorba:methods>
-
- </zorba:function>
-
- <zorba:constructor>
- <zorba:parameter type="bool" name="isDynamic" base="true"/>
- <zorba:parameter type="bool" name="needToCopy" base="true"/>
- </zorba:constructor>
-
- <zorba:method const="true" name="getCollection"
- return="const StaticallyKnownCollection*">
- <zorba:param type="const store::Item_t&" name="name"/>
- <zorba:param type="store::Collection_t&" name="coll"/>
- </zorba:method>
-
- <zorba:state generateInit="false" generateReset="false" generateDestructor="false">
- <zorba:member type="std::vector<store::Item_t>" name="nodes"
- brief="the nodes that have been inserted"/>
- <zorba:member type="std::vector<store::Item_t>::const_iterator" name="iterator"
- brief="iterator over the nodes"/>
- </zorba:state>
-
-</zorba:iterator>
-
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
-<zorba:iterator name="ZorbaApplyInsertNodesFirstIterator"
- base="ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesFirstIterator, ZorbaApplyInsertNodesFirstIteratorState>"
- generateVisitor="false">
-
- <zorba:description author="Zorba Team">
- zorba:apply-insertnodes-first
- </zorba:description>
-
- <zorba:function generateCodegen="false">
-
- <zorba:signature localname="apply-insert-nodes-first"
- prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>node()*</zorba:param>
- <zorba:output>node()*</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="apply-insert-nodes-first"
- prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>node()*</zorba:param>
- <zorba:output>node()*</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="apply-insert-first" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>structured-item()*</zorba:param>
- <zorba:output>structured-item()*</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="apply-insert-first" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>structured-item()*</zorba:param>
- <zorba:output>structured-item()*</zorba:output>
- </zorba:signature>
-
- <zorba:methods>
- <zorba:getScriptingKind returnValue="APPLYING_EXPR"/>
- <zorba:accessesDynCtx returnValue="true"/>
- <zorba:propagatesInputNodes/>
- <zorba:mustCopyInputNodes producer="1"/>
- <zorba:processPragma/>
- </zorba:methods>
-
- </zorba:function>
-
- <zorba:constructor>
- <zorba:parameter type="bool" name="isDynamic" base="true"/>
- <zorba:parameter type="bool" name="needToCopy" base="true"/>
- </zorba:constructor>
-
- <zorba:method const="true" name="getCollection"
- return="const StaticallyKnownCollection*">
- <zorba:param type="const store::Item_t&" name="name"/>
- <zorba:param type="store::Collection_t&" name="coll"/>
- </zorba:method>
-
- <zorba:state generateInit="false" generateReset="false" generateDestructor="false">
- <zorba:member type="std::vector<store::Item_t>" name="nodes"
- brief="the nodes that have been inserted"/>
- <zorba:member type="std::vector<store::Item_t>::const_iterator" name="iterator"
- brief="iterator over the nodes"/>
- </zorba:state>
-
-</zorba:iterator>
-
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
-<zorba:iterator name="ZorbaApplyInsertNodesLastIterator"
- base="ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesLastIterator, ZorbaApplyInsertNodesLastIteratorState>"
- generateVisitor="false">
-
- <zorba:description author="Zorba Team">
- zorba:apply-insertnodes-last
- </zorba:description>
-
- <zorba:function generateCodegen="false">
-
- <zorba:signature localname="apply-insert-nodes-last"
- prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>node()*</zorba:param>
- <zorba:output>node()*</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="apply-insert-nodes-last"
- prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>node()*</zorba:param>
- <zorba:output>node()*</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="apply-insert-last" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>structured-item()*</zorba:param>
- <zorba:output>structured-item()*</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="apply-insert-last" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>structured-item()*</zorba:param>
- <zorba:output>structured-item()*</zorba:output>
- </zorba:signature>
-
- <zorba:methods>
- <zorba:getScriptingKind returnValue="APPLYING_EXPR"/>
- <zorba:accessesDynCtx returnValue="true"/>
- <zorba:propagatesInputNodes/>
- <zorba:mustCopyInputNodes producer="1"/>
- <zorba:processPragma/>
- </zorba:methods>
-
- </zorba:function>
-
- <zorba:constructor>
- <zorba:parameter type="bool" name="isDynamic" base="true"/>
- <zorba:parameter type="bool" name="needToCopy" base="true"/>
- </zorba:constructor>
-
- <zorba:method const="true" name="getCollection"
- return="const StaticallyKnownCollection*">
- <zorba:param type="const store::Item_t&" name="name"/>
- <zorba:param type="store::Collection_t&" name="coll"/>
- </zorba:method>
-
- <zorba:state generateInit="false" generateReset="false" generateDestructor="false">
- <zorba:member type="std::vector<store::Item_t>" name="nodes"
- brief="the nodes that have been inserted"/>
- <zorba:member type="std::vector<store::Item_t>::const_iterator" name="iterator"
- brief="iterator over the nodes"/>
- </zorba:state>
-
-</zorba:iterator>
-
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
-<zorba:iterator name="ZorbaApplyInsertNodesBeforeIterator"
- base="ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesBeforeIterator, ZorbaApplyInsertNodesBeforeIteratorState>"
- generateVisitor="false">
-
- <zorba:description author="Zorba Team">
- zorba:apply-insert-nodes-before
- </zorba:description>
-
- <zorba:function generateCodegen="false">
-
- <zorba:signature localname="apply-insert-nodes-before"
- prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>node()</zorba:param>
- <zorba:param>node()*</zorba:param>
- <zorba:output>node()*</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="apply-insert-nodes-before"
- prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>node()</zorba:param>
- <zorba:param>node()*</zorba:param>
- <zorba:output>node()*</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="apply-insert-before" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>structured-item()</zorba:param>
- <zorba:param>structured-item()*</zorba:param>
- <zorba:output>structured-item()*</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="apply-insert-before" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>structured-item()</zorba:param>
- <zorba:param>structured-item()*</zorba:param>
- <zorba:output>structured-item()*</zorba:output>
- </zorba:signature>
-
- <zorba:methods>
- <zorba:getScriptingKind returnValue="APPLYING_EXPR"/>
- <zorba:accessesDynCtx returnValue="true"/>
- <zorba:propagatesInputNodes/>
- <zorba:mustCopyInputNodes producer="2"/>
- <zorba:processPragma/>
- </zorba:methods>
-
- </zorba:function>
-
- <zorba:constructor>
- <zorba:parameter type="bool" name="isDynamic" base="true"/>
- <zorba:parameter type="bool" name="needToCopy" base="true"/>
- </zorba:constructor>
-
- <zorba:method const="true" name="getCollection"
- return="const StaticallyKnownCollection*">
- <zorba:param type="const store::Item_t&" name="name"/>
- <zorba:param type="store::Collection_t&" name="coll"/>
- </zorba:method>
-
- <zorba:state generateInit="false" generateReset="false" generateDestructor="false">
- <zorba:member type="std::vector<store::Item_t>" name="nodes"
- brief="the nodes that have been inserted"/>
- <zorba:member type="std::vector<store::Item_t>::const_iterator" name="iterator"
- brief="iterator over the nodes"/>
- </zorba:state>
-
-</zorba:iterator>
-
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
-<zorba:iterator name="ZorbaApplyInsertNodesAfterIterator"
- base="ZorbaCollectionIteratorHelper<ZorbaApplyInsertNodesAfterIterator, ZorbaApplyInsertNodesAfterIteratorState>"
- generateVisitor="false">
-
- <zorba:description author="Zorba Team">
- zorba:apply-insertnodes-after
- </zorba:description>
-
- <zorba:function generateCodegen="false">
-
- <zorba:signature localname="apply-insert-nodes-after"
- prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>node()</zorba:param>
- <zorba:param>node()*</zorba:param>
- <zorba:output>node()*</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="apply-insert-nodes-after"
- prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>node()</zorba:param>
- <zorba:param>node()*</zorba:param>
- <zorba:output>node()*</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="apply-insert-after" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>structured-item()</zorba:param>
- <zorba:param>structured-item()*</zorba:param>
- <zorba:output>structured-item()*</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="apply-insert-after" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>structured-item()</zorba:param>
- <zorba:param>structured-item()*</zorba:param>
- <zorba:output>structured-item()*</zorba:output>
- </zorba:signature>
-
- <zorba:methods>
- <zorba:getScriptingKind returnValue="APPLYING_EXPR"/>
- <zorba:accessesDynCtx returnValue="true"/>
- <zorba:propagatesInputNodes/>
- <zorba:mustCopyInputNodes producer="2"/>
- <zorba:processPragma/>
- </zorba:methods>
-
- </zorba:function>
-
- <zorba:constructor>
- <zorba:parameter type="bool" name="isDynamic" base="true"/>
- <zorba:parameter type="bool" name="needToCopy" base="true"/>
- </zorba:constructor>
-
- <zorba:method const="true" name="getCollection"
- return="const StaticallyKnownCollection*">
- <zorba:param type="const store::Item_t&" name="name"/>
- <zorba:param type="store::Collection_t&" name="coll"/>
- </zorba:method>
-
- <zorba:state generateInit="false" generateReset="false" generateDestructor="false">
- <zorba:member type="std::vector<store::Item_t>" name="nodes"
- brief="the nodes that have been inserted"/>
- <zorba:member type="std::vector<store::Item_t>::const_iterator" name="iterator"
- brief="iterator over the nodes"/>
- </zorba:state>
-
-</zorba:iterator>
-
-
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
-<zorba:iterator name="ZorbaDeleteNodesIterator" >
-
- <zorba:description author="Zorba Team">
- zorba:delete-nodes
- </zorba:description>
-
- <zorba:function generateCodegen="false">
-
- <zorba:signature localname="delete-nodes" prefix="static-collections-dml">
- <zorba:param>node()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="delete-nodes" prefix="dynamic-collections-dml">
- <zorba:param>node()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="delete" prefix="static-collections-dml">
- <zorba:param>structured-item()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="delete" prefix="dynamic-collections-dml">
- <zorba:param>structured-item()*</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:methods>
- <zorba:getScriptingKind returnValue="UPDATING_EXPR"/>
- <zorba:accessesDynCtx returnValue="true"/>
- <zorba:ignoresSortedNodes/>
- <zorba:ignoresDuplicateNodes/>
- <zorba:mustCopyInputNodes producer="0"/>
- </zorba:methods>
-
- </zorba:function>
-
- <zorba:constructor>
- <zorba:parameter type="bool" name="isDynamic"/>
- </zorba:constructor>
-
- <zorba:member type="bool" name="theIsDynamic"/>
-
- <zorba:method const="true" name="getCollection" return="const StaticallyKnownCollection*">
- <zorba:param type="const store::Item_t&" name="name"/>
- <zorba:param type="store::Collection_t&" name="coll"/>
- </zorba:method>
-</zorba:iterator>
-
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
-<zorba:iterator name="ZorbaDeleteNodesFirstIterator" >
-
- <zorba:description author="Zorba Team">
- zorba:delete-node-first
- </zorba:description>
-
- <zorba:function generateCodegen="false">
-
- <zorba:signature localname="delete-node-first" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="delete-nodes-first" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>xs:integer</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="delete-node-first" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="delete-nodes-first" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>xs:integer</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="delete-first" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="delete-first" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>xs:integer</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="delete-first" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="delete-first" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>xs:integer</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:methods>
- <zorba:getScriptingKind returnValue="UPDATING_EXPR"/>
- <zorba:accessesDynCtx returnValue="true"/>
- <zorba:mustCopyInputNodes value="false"/>
- </zorba:methods>
-
- </zorba:function>
-
- <zorba:constructor>
- <zorba:parameter type="bool" name="isDynamic"/>
- </zorba:constructor>
-
- <zorba:member type="bool" name="theIsDynamic"/>
-
- <zorba:method const="true" name="getCollection" return="const StaticallyKnownCollection*">
- <zorba:param type="const store::Item_t&" name="name"/>
- <zorba:param type="store::Collection_t&" name="coll"/>
- </zorba:method>
-</zorba:iterator>
-
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
-<zorba:iterator name="ZorbaDeleteNodesLastIterator" >
-
- <zorba:description author="Zorba Team">
- zorba:delete-node-last
- </zorba:description>
-
- <zorba:function generateCodegen="false">
-
- <zorba:signature localname="delete-node-last" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="delete-nodes-last" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>xs:integer</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="delete-node-last" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="delete-nodes-last" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>xs:integer</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="delete-last" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="delete-last" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>xs:integer</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="delete-last" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="delete-last" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:param>xs:integer</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:methods>
- <zorba:getScriptingKind returnValue="UPDATING_EXPR"/>
- <zorba:accessesDynCtx returnValue="true"/>
- <zorba:mustCopyInputNodes value="false"/>
- </zorba:methods>
-
- </zorba:function>
-
- <zorba:constructor>
- <zorba:parameter type="bool" name="isDynamic"/>
- </zorba:constructor>
-
- <zorba:member type="bool" name="theIsDynamic"/>
-
- <zorba:method const="true"
- name="getCollection"
- return="const StaticallyKnownCollection*">
- <zorba:param type="const store::Item_t&" name="name"/>
- <zorba:param type="store::Collection_t&" name="coll"/>
- </zorba:method>
-</zorba:iterator>
-
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
- <zorba:iterator name="ZorbaEditNodesIterator">
-
- <zorba:description author="Zorba Team">
- zorba:edit
- </zorba:description>
-
- <zorba:function generateCodegen="false">
-
- <zorba:signature localname="edit" prefix="static-collections-dml">
- <zorba:param>structured-item()</zorba:param>
- <zorba:param>structured-item()</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="edit" prefix="dynamic-collections-dml">
- <zorba:param>structured-item()</zorba:param>
- <zorba:param>structured-item()</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:methods>
- <zorba:getScriptingKind returnValue="UPDATING_EXPR"/>
- <zorba:accessesDynCtx returnValue="true"/>
- <zorba:mustCopyInputNodes producer="1"/>
- <zorba:processPragma/>
- </zorba:methods>
-
- </zorba:function>
-
- <zorba:constructor>
- <zorba:parameter type="bool" name="isDynamic" base="true"/>
- <zorba:parameter type="bool" name="needToCopy" base="true"/>
- </zorba:constructor>
-
- <zorba:member type="bool" name="theIsDynamic"/>
- <zorba:member type="bool" name="theNeedToCopy"/>
-
- <zorba:method
- const="true"
- name="getCollection"
- return="const StaticallyKnownCollection*">
- <zorba:param type="const store::Item_t&" name="name"/>
- <zorba:param type="store::Collection_t&" name="coll"/>
- </zorba:method>
- </zorba:iterator>
-
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
-<zorba:iterator name="ZorbaTruncateCollectionIterator" >
-
- <zorba:description author="Zorba Team">
- zorba:truncate
- </zorba:description>
-
- <zorba:function generateCodegen="false">
-
- <zorba:signature localname="truncate" prefix="static-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:signature localname="truncate" prefix="dynamic-collections-dml">
- <zorba:param>xs:QName</zorba:param>
- <zorba:output>empty-sequence()</zorba:output>
- </zorba:signature>
-
- <zorba:methods>
- <zorba:getScriptingKind returnValue="UPDATING_EXPR"/>
- <zorba:accessesDynCtx returnValue="true"/>
- </zorba:methods>
-
- </zorba:function>
-
- <zorba:constructor>
- <zorba:parameter type="bool" name="isDynamic" />
- </zorba:constructor>
-
- <zorba:member type="bool" name="theIsDynamic"/>
-
- <zorba:method const="true"
- name="getCollection"
- return="const StaticallyKnownCollection*">
- <zorba:param type="const store::Item_t&" name="name"/>
- <zorba:param type="store::Collection_t&" name="coll"/>
- </zorba:method>
-</zorba:iterator>
-
-
-<!--
-/*******************************************************************************
-********************************************************************************/
--->
+ <zorba:function generateCodegen="false">
+
+ <zorba:signature localname="collection"
+ prefix="zorba-store-static-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:output>structured-item()*</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="collection"
+ prefix="zorba-store-static-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>xs:integer</zorba:param><!-- nodes to skip -->
+ <zorba:output>structured-item()*</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="collection"
+ prefix="zorba-store-static-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>xs:anyURI</zorba:param><!-- start ref -->
+ <zorba:param>xs:integer</zorba:param><!-- nodes to skip -->
+ <zorba:output>structured-item()*</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="collection"
+ prefix="zorba-store-dynamic-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:output>structured-item()*</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="collection"
+ prefix="zorba-store-dynamic-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>xs:integer</zorba:param><!-- start to skip -->
+ <zorba:output>structured-item()*</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="collection"
+ prefix="zorba-store-dynamic-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>xs:anyURI</zorba:param><!-- node ref-->
+ <zorba:param>xs:integer</zorba:param><!-- nodes to skip -->
+ <zorba:output>structured-item()*</zorba:output>
+ </zorba:signature>
+
+ <zorba:methods>
+ <zorba:accessesDynCtx returnValue="true"/>
+ <zorba:getReturnType/>
+ <zorba:isSource returnValue="true"/>
+ <zorba:producesDistinctNodes returnValue="YES"/>
+ <zorba:producesSortedNodes returnValue="YES"/>
+ </zorba:methods>
+
+ </zorba:function>
+
+ <zorba:constructor>
+ <zorba:parameter type="bool" name="isDynamic"/>
+ </zorba:constructor>
+
+ <zorba:member type="bool" name="theIsDynamic" getterName="isDynamic"/>
+
+ <zorba:method const="true" name="isCountOptimizable" return="bool" />
+
+ <zorba:method name="count" const="true" return="bool">
+ <zorba:param name="result" type="store::Item_t&"/>
+ <zorba:param name="planState" type="PlanState&"/>
+ </zorba:method>
+
+ <zorba:method name="skip" const="true" return="bool">
+ <zorba:param name="count" type="int64_t"/>
+ <zorba:param name="planState" type="PlanState&"/>
+ </zorba:method>
+
+ <zorba:method name="initCollection" const="true" return="void">
+ <zorba:param name="planState" type="PlanState&"/>
+ <zorba:param name="skipCount" type="int64_t"/>
+ </zorba:method>
+
+ <zorba:state generateInit="false" generateReset="false" generateDestructor="false">
+ <zorba:member type="store::Iterator_t" name="theIterator"/>
+ <zorba:member type="bool" name="theIteratorOpened" defaultValue="false"/>
+ </zorba:state>
+
+</zorba:iterator>
+
+<!--========================================================================-->
+
+<zorba:iterator name="ZorbaCollectionNameIterator">
+ <zorba:function>
+
+ <zorba:signature localname="collection-name"
+ prefix="zorba-store-static-collections-dml">
+ <zorba:param>structured-item()</zorba:param>
+ <zorba:output>xs:QName</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="collection-name"
+ prefix="zorba-store-dynamic-collections-dml">
+ <zorba:param>structured-item()</zorba:param>
+ <zorba:output>xs:QName</zorba:output>
+ </zorba:signature>
+
+ <zorba:methods>
+ <zorba:accessesDynCtx returnValue="true"/>
+ <zorba:mustCopyInputNodes value="false"/>
+ </zorba:methods>
+
+ </zorba:function>
+</zorba:iterator>
+
+<!--========================================================================-->
+
+<zorba:iterator name="ZorbaIndexOfIterator">
+ <zorba:function generateCodegen="false">
+
+ <zorba:signature localname="index-of"
+ prefix="zorba-store-static-collections-dml">
+ <zorba:param>structured-item()</zorba:param>
+ <zorba:output>xs:integer</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="index-of"
+ prefix="zorba-store-dynamic-collections-dml">
+ <zorba:param>structured-item()</zorba:param>
+ <zorba:output>xs:integer</zorba:output>
+ </zorba:signature>
+
+ <zorba:methods>
+ <zorba:accessesDynCtx returnValue="true"/>
+ <zorba:mustCopyInputNodes value="false"/>
+ </zorba:methods>
+
+ </zorba:function>
+
+ <zorba:constructor>
+ <zorba:parameter type="bool" name="isDynamic"/>
+ </zorba:constructor>
+
+ <zorba:member type="bool" name="theIsDynamic"/>
+</zorba:iterator>
+
+<!--========================================================================-->
+
+<zorba:iterator name="ZorbaApplyInsertIterator"
+ base="ZorbaCollectionIteratorHelper<ZorbaApplyInsertIterator, ZorbaApplyInsertIteratorState>"
+ generateVisitor="false">
+
+ <zorba:function generateCodegen="false">
+
+ <zorba:signature localname="apply-insert"
+ prefix="zorba-store-static-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>structured-item()*</zorba:param>
+ <zorba:output>structured-item()*</zorba:output>
+ </zorba:signature>
+
+ <zorba:methods>
+ <zorba:getScriptingKind returnValue="APPLYING_EXPR"/>
+ <zorba:accessesDynCtx returnValue="true"/>
+ <zorba:propagatesInputNodes/>
+ <zorba:mustCopyInputNodes producer="1"/>
+ <zorba:processPragma/>
+ </zorba:methods>
+
+ </zorba:function>
+
+ <zorba:constructor>
+ <zorba:parameter type="bool" name="isDynamic" base="true"/>
+ <zorba:parameter type="bool" name="needToCopy" base="true"/>
+ </zorba:constructor>
+
+ <zorba:method const="true" name="getCollection"
+ return="const StaticallyKnownCollection*">
+ <zorba:param type="const store::Item_t&" name="name"/>
+ <zorba:param type="store::Collection_t&" name="coll"/>
+ </zorba:method>
+
+ <zorba:state generateInit="false" generateReset="false" generateDestructor="false">
+ <zorba:member type="std::vector<store::Item_t>" name="nodes"
+ brief="the nodes that have been inserted"/>
+ <zorba:member type="std::vector<store::Item_t>::const_iterator" name="iterator"
+ brief="iterator over the nodes"/>
+ </zorba:state>
+
+</zorba:iterator>
+
+<!--========================================================================-->
+
+<zorba:iterator name="ZorbaInsertAfterIterator"
+ base="ZorbaCollectionIteratorHelper<ZorbaInsertAfterIterator, PlanIteratorState>"
+ generateVisitor="false">
+
+ <zorba:function generateCodegen="false">
+
+ <zorba:signature localname="insert-after"
+ prefix="zorba-store-static-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>structured-item()</zorba:param>
+ <zorba:param>structured-item()*</zorba:param>
+ <zorba:output>empty-sequence()</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="insert-after"
+ prefix="zorba-store-dynamic-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>structured-item()</zorba:param>
+ <zorba:param>structured-item()*</zorba:param>
+ <zorba:output>empty-sequence()</zorba:output>
+ </zorba:signature>
+
+ <zorba:methods>
+ <zorba:getScriptingKind returnValue="UPDATING_EXPR"/>
+ <zorba:accessesDynCtx returnValue="true"/>
+ <zorba:mustCopyInputNodes producer="2"/>
+ <zorba:processPragma/>
+ </zorba:methods>
+
+ </zorba:function>
+
+ <zorba:constructor>
+ <zorba:parameter type="bool" name="isDynamic" base="true"/>
+ <zorba:parameter type="bool" name="needToCopy" base="true"/>
+ </zorba:constructor>
+
+ <zorba:member type="bool" name="theIsDynamic"/>
+
+ <zorba:method const="true" name="getCollection"
+ return="const StaticallyKnownCollection*">
+ <zorba:param type="const store::Item_t&" name="name"/>
+ <zorba:param type="store::Collection_t&" name="coll"/>
+ </zorba:method>
+
+</zorba:iterator>
+
+<!--========================================================================-->
+
+<zorba:iterator name="ZorbaInsertBeforeIterator"
+ base="ZorbaCollectionIteratorHelper<ZorbaInsertBeforeIterator, PlanIteratorState>"
+generateVisitor="false">
+
+ <zorba:function generateCodegen="false">
+
+ <zorba:signature localname="insert-before"
+ prefix="zorba-store-static-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>structured-item()</zorba:param>
+ <zorba:param>structured-item()*</zorba:param>
+ <zorba:output>empty-sequence()</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="insert-before"
+ prefix="zorba-store-dynamic-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>structured-item()</zorba:param>
+ <zorba:param>structured-item()*</zorba:param>
+ <zorba:output>empty-sequence()</zorba:output>
+ </zorba:signature>
+
+ <zorba:methods>
+ <zorba:getScriptingKind returnValue="UPDATING_EXPR"/>
+ <zorba:accessesDynCtx returnValue="true"/>
+ <zorba:mustCopyInputNodes producer="2"/>
+ <zorba:processPragma/>
+ </zorba:methods>
+
+ </zorba:function>
+
+ <zorba:constructor>
+ <zorba:parameter type="bool" name="isDynamic" base="true"/>
+ <zorba:parameter type="bool" name="needToCopy" base="true"/>
+ </zorba:constructor>
+
+ <zorba:method const="true" name="getCollection"
+ return="const StaticallyKnownCollection*">
+ <zorba:param type="const store::Item_t&" name="name"/>
+ <zorba:param type="store::Collection_t&" name="coll"/>
+ </zorba:method>
+
+</zorba:iterator>
+
+<!--========================================================================-->
+
+<zorba:iterator name="ZorbaInsertFirstIterator"
+ base="ZorbaCollectionIteratorHelper<ZorbaInsertFirstIterator,PlanIteratorState>"
+ generateVisitor="false">
+
+ <zorba:function generateCodegen="false">
+
+ <zorba:signature localname="insert-first"
+ prefix="zorba-store-static-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>structured-item()*</zorba:param>
+ <zorba:output>empty-sequence()</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="insert-first"
+ prefix="zorba-store-dynamic-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>structured-item()*</zorba:param>
+ <zorba:output>empty-sequence()</zorba:output>
+ </zorba:signature>
+
+ <zorba:methods>
+ <zorba:getScriptingKind returnValue="UPDATING_EXPR"/>
+ <zorba:accessesDynCtx returnValue="true"/>
+ <zorba:mustCopyInputNodes producer="1"/>
+ <zorba:processPragma/>
+ </zorba:methods>
+
+ </zorba:function>
+
+ <zorba:constructor>
+ <zorba:parameter type="bool" name="isDynamic" base="true"/>
+ <zorba:parameter type="bool" name="needToCopy" base="true"/>
+ </zorba:constructor>
+
+ <zorba:method const="true" name="getCollection"
+ return="const StaticallyKnownCollection*">
+ <zorba:param type="const store::Item_t&" name="name"/>
+ <zorba:param type="store::Collection_t&" name="coll"/>
+ </zorba:method>
+
+</zorba:iterator>
+
+<!--========================================================================-->
+
+<zorba:iterator name="ZorbaInsertLastIterator"
+base="ZorbaCollectionIteratorHelper<ZorbaInsertLastIterator, PlanIteratorState>"
+generateVisitor="false">
+
+ <zorba:function generateCodegen="false">
+
+ <zorba:signature localname="insert-last"
+ prefix="zorba-store-static-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>structured-item()*</zorba:param>
+ <zorba:output>empty-sequence()</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="insert-last"
+ prefix="zorba-store-dynamic-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>structured-item()*</zorba:param>
+ <zorba:output>empty-sequence()</zorba:output>
+ </zorba:signature>
+
+ <zorba:methods>
+ <zorba:getScriptingKind returnValue="UPDATING_EXPR"/>
+ <zorba:accessesDynCtx returnValue="true"/>
+ <zorba:mustCopyInputNodes producer="1"/>
+ <zorba:processPragma/>
+ </zorba:methods>
+
+ </zorba:function>
+
+ <zorba:constructor>
+ <zorba:parameter type="bool" name="isDynamic" base="true"/>
+ <zorba:parameter type="bool" name="needToCopy" base="true"/>
+ </zorba:constructor>
+
+ <zorba:method const="true" name="getCollection"
+ return="const StaticallyKnownCollection*">
+ <zorba:param type="const store::Item_t&" name="name"/>
+ <zorba:param type="store::Collection_t&" name="coll"/>
+ </zorba:method>
+
+</zorba:iterator>
+
+<!--========================================================================-->
+
+<zorba:iterator name="ZorbaApplyInsertFirstIterator"
+ base="ZorbaCollectionIteratorHelper<ZorbaApplyInsertFirstIterator, ZorbaApplyInsertFirstIteratorState>"
+ generateVisitor="false">
+
+ <zorba:function generateCodegen="false">
+
+ <zorba:signature localname="apply-insert-first"
+ prefix="zorba-store-static-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>structured-item()*</zorba:param>
+ <zorba:output>structured-item()*</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="apply-insert-first"
+ prefix="zorba-store-dynamic-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>structured-item()*</zorba:param>
+ <zorba:output>structured-item()*</zorba:output>
+ </zorba:signature>
+
+ <zorba:methods>
+ <zorba:getScriptingKind returnValue="APPLYING_EXPR"/>
+ <zorba:accessesDynCtx returnValue="true"/>
+ <zorba:propagatesInputNodes/>
+ <zorba:mustCopyInputNodes producer="1"/>
+ <zorba:processPragma/>
+ </zorba:methods>
+
+ </zorba:function>
+
+ <zorba:constructor>
+ <zorba:parameter type="bool" name="isDynamic" base="true"/>
+ <zorba:parameter type="bool" name="needToCopy" base="true"/>
+ </zorba:constructor>
+
+ <zorba:method const="true" name="getCollection"
+ return="const StaticallyKnownCollection*">
+ <zorba:param type="const store::Item_t&" name="name"/>
+ <zorba:param type="store::Collection_t&" name="coll"/>
+ </zorba:method>
+
+ <zorba:state generateInit="false" generateReset="false" generateDestructor="false">
+ <zorba:member type="std::vector<store::Item_t>" name="nodes"
+ brief="the nodes that have been inserted"/>
+ <zorba:member type="std::vector<store::Item_t>::const_iterator" name="iterator"
+ brief="iterator over the nodes"/>
+ </zorba:state>
+
+</zorba:iterator>
+
+<!--========================================================================-->
+
+<zorba:iterator name="ZorbaApplyInsertLastIterator"
+ base="ZorbaCollectionIteratorHelper<ZorbaApplyInsertLastIterator, ZorbaApplyInsertLastIteratorState>"
+ generateVisitor="false">
+
+ <zorba:function generateCodegen="false">
+
+ <zorba:signature localname="apply-insert-last"
+ prefix="zorba-store-static-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>structured-item()*</zorba:param>
+ <zorba:output>structured-item()*</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="apply-insert-last"
+ prefix="zorba-store-dynamic-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>structured-item()*</zorba:param>
+ <zorba:output>structured-item()*</zorba:output>
+ </zorba:signature>
+
+ <zorba:methods>
+ <zorba:getScriptingKind returnValue="APPLYING_EXPR"/>
+ <zorba:accessesDynCtx returnValue="true"/>
+ <zorba:propagatesInputNodes/>
+ <zorba:mustCopyInputNodes producer="1"/>
+ <zorba:processPragma/>
+ </zorba:methods>
+
+ </zorba:function>
+
+ <zorba:constructor>
+ <zorba:parameter type="bool" name="isDynamic" base="true"/>
+ <zorba:parameter type="bool" name="needToCopy" base="true"/>
+ </zorba:constructor>
+
+ <zorba:method const="true" name="getCollection"
+ return="const StaticallyKnownCollection*">
+ <zorba:param type="const store::Item_t&" name="name"/>
+ <zorba:param type="store::Collection_t&" name="coll"/>
+ </zorba:method>
+
+ <zorba:state generateInit="false" generateReset="false" generateDestructor="false">
+ <zorba:member type="std::vector<store::Item_t>" name="nodes"
+ brief="the nodes that have been inserted"/>
+ <zorba:member type="std::vector<store::Item_t>::const_iterator" name="iterator"
+ brief="iterator over the nodes"/>
+ </zorba:state>
+
+</zorba:iterator>
+
+<!--========================================================================-->
+
+<zorba:iterator name="ZorbaApplyInsertBeforeIterator"
+ base="ZorbaCollectionIteratorHelper<ZorbaApplyInsertBeforeIterator, ZorbaApplyInsertBeforeIteratorState>"
+ generateVisitor="false">
+
+ <zorba:function generateCodegen="false">
+
+ <zorba:signature localname="apply-insert-before"
+ prefix="zorba-store-static-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>structured-item()</zorba:param>
+ <zorba:param>structured-item()*</zorba:param>
+ <zorba:output>structured-item()*</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="apply-insert-before"
+ prefix="zorba-store-dynamic-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>structured-item()</zorba:param>
+ <zorba:param>structured-item()*</zorba:param>
+ <zorba:output>structured-item()*</zorba:output>
+ </zorba:signature>
+
+ <zorba:methods>
+ <zorba:getScriptingKind returnValue="APPLYING_EXPR"/>
+ <zorba:accessesDynCtx returnValue="true"/>
+ <zorba:propagatesInputNodes/>
+ <zorba:mustCopyInputNodes producer="2"/>
+ <zorba:processPragma/>
+ </zorba:methods>
+
+ </zorba:function>
+
+ <zorba:constructor>
+ <zorba:parameter type="bool" name="isDynamic" base="true"/>
+ <zorba:parameter type="bool" name="needToCopy" base="true"/>
+ </zorba:constructor>
+
+ <zorba:method const="true" name="getCollection"
+ return="const StaticallyKnownCollection*">
+ <zorba:param type="const store::Item_t&" name="name"/>
+ <zorba:param type="store::Collection_t&" name="coll"/>
+ </zorba:method>
+
+ <zorba:state generateInit="false" generateReset="false" generateDestructor="false">
+ <zorba:member type="std::vector<store::Item_t>" name="nodes"
+ brief="the nodes that have been inserted"/>
+ <zorba:member type="std::vector<store::Item_t>::const_iterator" name="iterator"
+ brief="iterator over the nodes"/>
+ </zorba:state>
+
+</zorba:iterator>
+
+<!--========================================================================-->
+
+<zorba:iterator name="ZorbaApplyInsertAfterIterator"
+ base="ZorbaCollectionIteratorHelper<ZorbaApplyInsertAfterIterator, ZorbaApplyInsertAfterIteratorState>"
+ generateVisitor="false">
+
+ <zorba:function generateCodegen="false">
+
+ <zorba:signature localname="apply-insert-after"
+ prefix="zorba-store-static-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>structured-item()</zorba:param>
+ <zorba:param>structured-item()*</zorba:param>
+ <zorba:output>structured-item()*</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="apply-insert-after"
+ prefix="zorba-store-dynamic-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>structured-item()</zorba:param>
+ <zorba:param>structured-item()*</zorba:param>
+ <zorba:output>structured-item()*</zorba:output>
+ </zorba:signature>
+
+ <zorba:methods>
+ <zorba:getScriptingKind returnValue="APPLYING_EXPR"/>
+ <zorba:accessesDynCtx returnValue="true"/>
+ <zorba:propagatesInputNodes/>
+ <zorba:mustCopyInputNodes producer="2"/>
+ <zorba:processPragma/>
+ </zorba:methods>
+
+ </zorba:function>
+
+ <zorba:constructor>
+ <zorba:parameter type="bool" name="isDynamic" base="true"/>
+ <zorba:parameter type="bool" name="needToCopy" base="true"/>
+ </zorba:constructor>
+
+ <zorba:method const="true" name="getCollection"
+ return="const StaticallyKnownCollection*">
+ <zorba:param type="const store::Item_t&" name="name"/>
+ <zorba:param type="store::Collection_t&" name="coll"/>
+ </zorba:method>
+
+ <zorba:state generateInit="false" generateReset="false" generateDestructor="false">
+ <zorba:member type="std::vector<store::Item_t>" name="nodes"
+ brief="the nodes that have been inserted"/>
+ <zorba:member type="std::vector<store::Item_t>::const_iterator" name="iterator"
+ brief="iterator over the nodes"/>
+ </zorba:state>
+
+</zorba:iterator>
+
+<!--========================================================================-->
+
+<zorba:iterator name="ZorbaDeleteIterator">
+
+ <zorba:function generateCodegen="false">
+
+ <zorba:signature localname="delete"
+ prefix="zorba-store-static-collections-dml">
+ <zorba:param>structured-item()*</zorba:param>
+ <zorba:output>empty-sequence()</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="delete"
+ prefix="zorba-store-dynamic-collections-dml">
+ <zorba:param>structured-item()*</zorba:param>
+ <zorba:output>empty-sequence()</zorba:output>
+ </zorba:signature>
+
+ <zorba:methods>
+ <zorba:getScriptingKind returnValue="UPDATING_EXPR"/>
+ <zorba:accessesDynCtx returnValue="true"/>
+ <zorba:ignoresSortedNodes/>
+ <zorba:ignoresDuplicateNodes/>
+ <zorba:mustCopyInputNodes producer="0"/>
+ </zorba:methods>
+
+ </zorba:function>
+
+ <zorba:constructor>
+ <zorba:parameter type="bool" name="isDynamic"/>
+ </zorba:constructor>
+
+ <zorba:member type="bool" name="theIsDynamic"/>
+
+ <zorba:method const="true" name="getCollection" return="const StaticallyKnownCollection*">
+ <zorba:param type="const store::Item_t&" name="name"/>
+ <zorba:param type="store::Collection_t&" name="coll"/>
+ </zorba:method>
+</zorba:iterator>
+
+<!--========================================================================-->
+
+<zorba:iterator name="ZorbaDeleteFirstIterator">
+
+ <zorba:function generateCodegen="false">
+
+ <zorba:signature localname="delete-first"
+ prefix="zorba-store-static-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:output>empty-sequence()</zorba:output>
+ </zorba:signature>
+
+ <zorba:signature localname="delete-first"
+ prefix="zorba-store-static-collections-dml">
+ <zorba:param>xs:QName</zorba:param>
+ <zorba:param>xs:integer</zorba:param>
+ <zorba:output>empty-sequence()</zorba:output>
+ </zorba:signature>
+
+ <zorba:sign
Follow ups
-
[Merge] lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
From: noreply, 2013-10-17
-
[Merge] lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
From: Zorba Build Bot, 2013-10-17
-
[Merge] lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
From: Zorba Build Bot, 2013-10-17
-
Re: [Merge] lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
From: Matthias Brantner, 2013-10-17
-
Re: [Merge] lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
From: Matthias Brantner, 2013-10-17
-
[Merge] lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
From: Zorba Build Bot, 2013-10-17
-
[Merge] lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
From: Zorba Build Bot, 2013-10-17
-
[Merge] lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
From: Zorba Build Bot, 2013-10-17
-
[Merge] lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
From: Zorba Build Bot, 2013-10-17
-
[Merge] lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
From: Zorba Build Bot, 2013-10-17
-
[Merge] lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
From: Zorba Build Bot, 2013-10-10
-
[Merge] lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
From: Paul J. Lucas, 2013-10-10
-
Re: [Merge] lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
From: Paul J. Lucas, 2013-10-10
-
[Merge] lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
From: Paul J. Lucas, 2013-10-10
-
[Merge] lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
From: Zorba Build Bot, 2013-10-10
-
[Merge] lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
From: Zorba Build Bot, 2013-10-10
-
[Merge] lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
From: Zorba Build Bot, 2013-10-10
-
[Merge] lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
From: Zorba Build Bot, 2013-10-09
-
[Merge] lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
From: Zorba Build Bot, 2013-10-09
-
[Merge] lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
From: Zorba Build Bot, 2013-10-09
-
[Merge] lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
From: Zorba Build Bot, 2013-10-09