XQueryCompiler Class
- public class XQueryCompiler
extends Object
This class is responsible for storing and retrieving compile time information
for XQuery mainly, plans and validation info.
-
Hierarchy
-
Object
XQueryCompiler
public static class | XQueryCompiler.PlanInfo
Represents the plan for the XQUery based on the argument and return
Javelin types |
public static class | XQueryCompiler.ValidationInfo
Represents the validation information for the xquery - i.e., what
arguments and return values have to be schema validated |
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XQueryCompiler
public XQueryCompiler()
compile(String[], Class[], Class) Method
public static final XQueryCompiler.PlanInfo
compile(String
[] argNames,
Class
[] args,
Class
returnType)
throws IOException
, ITypeException
Compiles the marshal and unmarshal plans for a query given the argument names,
argument types and the return type.
Exceptions
-
IOException
-
ITypeException
getValidationInfo(XQueryCompiler.PlanInfo, String[], boolean) Method
public static XQueryCompiler.ValidationInfo
getValidationInfo(XQueryCompiler.PlanInfo
planInfo,
String
[] validateParams,
boolean validateReturn)
Constructs the validation information structure from the
loadPlans(byte[], ClassLoader) Method
public static XQueryCompiler.PlanInfo
loadPlans(byte[] compiledPlans,
ClassLoader
loader)
throws IOException
, ITypeException
Loads the compiled plans from the persisted string into a PlanInfo object
Exceptions
-
IOException
-
ITypeException