public final class QueryResources
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addCollection(java.lang.String name,
java.lang.String[] paths)
Adds a collection with the specified paths.
|
void |
addDoc(java.lang.String name,
java.lang.String path)
Adds a document with the specified path.
|
Value |
collection(InputInfo info)
Returns the default collection.
|
Value |
collection(java.lang.String input,
InputInfo info)
Evaluates
fn:collection(): opens an existing database collection, or creates
a new data reference. |
Data |
data(java.lang.String name,
InputInfo info)
Opens a new database or returns a reference to an already opened database.
|
DBNode |
doc(java.lang.String input,
InputInfo info)
Evaluates
fn:doc(): opens an existing database document, or creates a new
database and node. |
public Data data(java.lang.String name, InputInfo info) throws QueryException
name - name of databaseinfo - input infoQueryException - query exceptionpublic DBNode doc(java.lang.String input, InputInfo info) throws QueryException
fn:doc(): opens an existing database document, or creates a new
database and node.input - document pathinfo - input infoQueryException - query exceptionpublic Value collection(InputInfo info) throws QueryException
info - input infoQueryException - query exceptionpublic Value collection(java.lang.String input, InputInfo info) throws QueryException
fn:collection(): opens an existing database collection, or creates
a new data reference.input - collection pathinfo - input infoQueryException - query exceptionpublic void addDoc(java.lang.String name,
java.lang.String path)
throws QueryException
name - document identifier (may be null)path - documents pathQueryException - query exceptionpublic void addCollection(java.lang.String name,
java.lang.String[] paths)
throws QueryException
name - name of collectionpaths - documents pathsQueryException - query exception