|
Qizx/open API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.axyana.qizxopen.xquery.XQueryEnvironment
Client-side superclass for objects holding compilation and execution environments of XQueries (Connections and Expressions).
Used as a basis for XQueryConnection and XQueryExpression.
Field Summary | |
static java.lang.String |
DOC_BASE_URI
System property: specifies a base URI for document resolution in the doc() function. |
static java.lang.String |
EXEC_TIMEOUT
System property: maximum allowed execution time. |
static java.lang.String |
MODULE_BASE_URI
System property: specifies a base URI for module resolution in "import module" and for XSLT stylesheets. |
static java.lang.String |
SOURCE_URI
System property: specifies the URI of the source code for diagnostics in prepareExpression. |
static java.lang.String |
TRACE_EXECUTION
System property: requests detailed execution trace (preliminary) |
static java.lang.String |
TRACE_QUERY_COMPIL
System property: requests query compilation trace (preliminary) |
Method Summary | |
void |
authorizeClass(java.lang.String className)
Allows a Java class to be used as extension (more precisely, its public methods can be called as extension functions). |
void |
bind(QName varName,
XQResultSequence value)
Binds a sequence of Items with a global variable. |
void |
bind(QName varName,
XQValue value)
Binds a local Value (sequence of Items) with a global variable. |
void |
bindDouble(QName varName,
double value)
Binds a value with a global variable accepting the type xs:double. |
void |
bindLong(QName varName,
long value)
Binds a value with a global variable accepting the type xs:integer. |
void |
bindObject(QName varName,
java.lang.Object value)
Binds a value with a global variable accepting the type xdt:object. |
void |
bindString(QName varName,
java.lang.String value)
Binds a value with a global variable accepting the type xs:string. |
void |
bindStringArray(QName varName,
java.lang.String[] value)
Binds a value with a global variable accepting the type xs:string*. |
void |
defineGlobal(QName varName,
XQType type)
Defines a global variable in the predefined static context. |
void |
defineNamespace(java.lang.String prefix,
java.lang.String uri)
Defines a namespace mapping, visible by queries compiled with this environment. |
abstract XQueryConnection |
getConnection()
Returns the related connection. |
XQMessage |
getMessages()
Retrieves the list of messages generated by some methods (Expression execution and preparation). |
java.lang.Object |
getSysProperty(java.lang.String name)
Retrieves a previously defined system property. |
void |
registerCollation(java.lang.String uri,
java.text.Collator collator)
Registers a custom collation for use in the processed queries. |
void |
setCollectionInput(java.lang.String collectionURI)
Defines the input() sequence by a collection URI. |
void |
setCurrentItem(XQItem item)
Sets the current item, which can be used for compilation or dynamic evaluation (x:eval() function). |
void |
setDefaultCollation(java.lang.String uri)
Defines the URI of the default collation. |
void |
setDocumentInput(java.lang.String docURI)
Specifies a document to be parsed and used as default root Node (also accessible through the XQuery function fn:input()), used when a Path expression has no explicit root. |
void |
setDocumentInput(XQNode root)
Defines a default root Node (also accessible through the XQuery function fn:input()), used when a Path expression has no explicit root. |
void |
setFragmentInput(java.lang.String xmlFragment)
Specifies a XML fragment to be parsed and used as default root Node (also accessible through the XQuery function fn:input()), used when a Path expression has no explicit root. |
void |
setImplicitTimezone(java.lang.String duration)
Defines the implicit timezone in xs:duration format. |
void |
setInput(XQValue input)
Defines a default root (also accessible through the XQuery function fn:input()), used when a Path expression has no explicit root. |
void |
setInputDocument(org.xml.sax.InputSource xmlSource)
Defines a default root Node (also accessible through the XQuery function fn:input()), used when a Path expression has no explicit root. |
void |
setSysProperty(java.lang.String name,
java.lang.Object property)
Defines a property, a named object that can be retrieved by the extension function x:system-property(name) or by any application. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String SOURCE_URI
public static final java.lang.String DOC_BASE_URI
public static final java.lang.String MODULE_BASE_URI
public static final java.lang.String TRACE_EXECUTION
public static final java.lang.String EXEC_TIMEOUT
public static final java.lang.String TRACE_QUERY_COMPIL
Method Detail |
public abstract XQueryConnection getConnection()
public void authorizeClass(java.lang.String className) throws XQueryException
Caution: This is a security feature.
Using this method enforces an explicit control:
After calling it, all Java classes to be used as extensions must
be explicitly declared.
By default, any accessible class can be used.
className
- fully qualified name of Java class,
for example java.io.File
XQueryException
public void bind(QName varName, XQResultSequence value) throws XQueryException
varName
- name of the variable.value
- value assigned to the variable.
XQueryException
public void bind(QName varName, XQValue value) throws XQueryException
varName
- name of the variable.value
- value assigned to the variable.
XQueryException
public void bindDouble(QName varName, double value) throws XQueryException
varName
- name of the variable.value
- double value assigned to the variable.
XQueryException
public void bindLong(QName varName, long value) throws XQueryException
varName
- name of the variable.value
- integer value assigned to the variable.
XQueryException
public void bindObject(QName varName, java.lang.Object value) throws XQueryException
varName
- name of the variable.value
- foreign object assigned to the variable.
XQueryException
public void bindString(QName varName, java.lang.String value) throws XQueryException
varName
- name of the variable.value
- string value assigned to the variable.
XQueryException
public void bindStringArray(QName varName, java.lang.String[] value) throws XQueryException
varName
- name of the variable.value
- string sequence assigned to the variable.
XQueryException
public void defineGlobal(QName varName, XQType type) throws XQueryException
varName
- name of the variable.type
- assigned to the variable.
XQueryException
public void defineNamespace(java.lang.String prefix, java.lang.String uri) throws XQueryException
XQueryException
public XQMessage getMessages()
public java.lang.Object getSysProperty(java.lang.String name) throws XQueryException
name
- of a property
XQueryException
public void registerCollation(java.lang.String uri, java.text.Collator collator) throws XQueryException
XQueryException
public void setCollectionInput(java.lang.String collectionURI) throws XQueryException
Implemented only in XQuest.
collectionURI
- URI of a collection, similar to the argument
of fn:collection.
XQueryException
public void setCurrentItem(XQItem item) throws XQueryException
XQueryException
public void setDefaultCollation(java.lang.String uri) throws XQueryException
XQueryException
public void setDocumentInput(java.lang.String docURI) throws XQueryException
docURI
- uri of a document to be opened or parsed and used as
implicit input. This URI can be relative to the document base URI (if
the default Document Manager is used).
XQueryException
public void setDocumentInput(XQNode root) throws XQueryException
XQueryException
public void setFragmentInput(java.lang.String xmlFragment) throws XQueryException
xmlFragment
- a fragment of XML to be parsed and used as
implicit input.
XQueryException
public void setImplicitTimezone(java.lang.String duration) throws XQueryException
duration
- for example "PT4H30M" or "-PT5H".
If not specified, the implicit timezone is taken from the system default.
XQueryException
public void setInput(XQValue input) throws XQueryException
XQueryException
public void setInputDocument(org.xml.sax.InputSource xmlSource) throws XQueryException
XQueryException
public void setSysProperty(java.lang.String name, java.lang.Object property) throws XQueryException
name
- of a propertyproperty
- value of the property to store.
XQueryException
|
© 2005 Axyana Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |