|
Qizx/db 2.1 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Simple XQuery session without access to XML Libraries, used in Qizx/open.
| Method Summary | |
Expression |
compileExpression(String xquery)
Creates an executable Expression by compiling a XQuery script. |
void |
enableJavaBinding(String className)
Enables a class for the 'Java Binding' mechanism. |
XQueryContext |
getContext()
Access to the default XQuery Context. |
ModuleResolver |
getModuleResolver()
Returns the private module resolver defined for the session. |
void |
setModuleResolver(ModuleResolver resolver)
Defines a private Module resolver for the session. |
| Methods inherited from interface com.qizx.api.ItemFactory |
copySequence, createItem, createItem, createItem, createItem, createItem, createItem, createItem, createSequence, getQName, getQName, getQName, getType |
| Method Detail |
public XQueryContext getContext()
public Expression compileExpression(String xquery)
throws CompilationException
xquery - a string containing a XQuery script.
CompilationException - thrown after compilation if parsing or
static analysis errors are detected. A CompilationException bears a list
of Messages.public void setModuleResolver(ModuleResolver resolver)
resolver - a Module resolver; if set to null, the default module
resolver will then be used for the sessionpublic ModuleResolver getModuleResolver()
public void enableJavaBinding(String className)
Attention: the Java Binding mechanism is not enabled by default when using the API. Each Java class has to be enabled specifically. It is possible to enable all classes at once (though not advisable for security reasons) by passing a null name.
Attention: once a class has been enabled, it can no longer be disabled in the same session.
className - fully qualified class name (e.g
java.sql.DriverManager). If the value 'null' is used instead of a
class name, then all Java to Java extensions are
enabled or disabled.
|
© 2008 Axyana Software | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||