Changes

Jump to navigation Jump to search
20 bytes added ,  19:58, 16 February 2015
* Java code is treated as ''focus-independent''. If a function accesses the current context item, position or size, it should be annotated as {{Code|@FocusDependent}}
Since {{Version|8.0}}, the The [https://github.com/BaseXdb/basex/blob/master/basex-core/src/main/java/org/basex/query/QueryResource.java QueryResource] interface can be implemented to finalize enforce finalizing operations, such as the closing of opened connections or resources in a module. Its {{Code|close()}} method will be called after the a query has been fully evaluated.
The following XQuery code invokes two Java methods. The first Java function retrieves information from the static query context, and the second one throws a query exception:
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu