|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PreparedStatement
Represents a compiled XQuery statement with it dynamic context and associated stores
Method Summary | |
---|---|
void |
addExternalResource(QName varname,
XDMIterator resource)
Add a binding to an external variable using an MXQuery XDM Iterator |
void |
addExternalResource(java.lang.String varname,
java.lang.String resource)
Add a binding to an external variable. |
void |
applyPUL()
Apply the pending update list for this statement |
void |
close()
Release all the resources acquired by running the statement. |
PreparedStatement |
copy()
Create a copy of this prepared statement. |
XDMIterator |
evaluate()
Initialize the dynamic context with the relevant dynamic information (e.g. |
void |
exposeModule()
|
java.lang.String |
generateWSDL(java.lang.String serverURL)
Generate the WSDL describing the functions and variables of the module expressed in this statement |
XQDynamicContext |
getContext()
Retrieves the dynamic context of this statement |
java.util.Vector |
getExternalVariables()
Get all external variables declared by this statement |
TypeInfo |
getStaticReturnType()
Get the static return type of the statement |
StoreSet |
getStores()
Get the collection of stores associated with this statement |
java.util.Vector |
getUnresolvedExternalVariables()
Get all external variables declared by this statement that have not yet a value assigned |
java.lang.StringBuffer |
handleSOAP(java.lang.String inputSoap)
Handle a SOAP call by extracting the payload, transforming into a sequence of XDM values, calling the referred function in the module and then packaging the result into SOAP Errors in the invocation are put into the SOAP payload as error messages |
boolean |
isModuleDecl()
|
boolean |
isWebService()
|
void |
serializeStores(boolean createBackup)
Serialize the stores modified by this statement to disk/network |
void |
setContextItem(XDMIterator resource)
Set the context item to values produces by an XDM iterator |
Method Detail |
---|
XDMIterator evaluate() throws MXQueryException
MXQueryException
- if setting up the dynamic context failsvoid addExternalResource(java.lang.String varname, java.lang.String resource) throws MXQueryException
varname
- resource
-
MXQueryException
void addExternalResource(QName varname, XDMIterator resource) throws MXQueryException
varname
- a QName describing theresource
- a MXQuery iterator producing XDM
MXQueryException
- if the binding failedvoid setContextItem(XDMIterator resource) throws MXQueryException
resource
- a MXQuery iterator producing XDM
MXQueryException
XQDynamicContext getContext()
boolean isModuleDecl()
void exposeModule()
boolean isWebService()
java.lang.String generateWSDL(java.lang.String serverURL) throws MXQueryException
serverURL
- the Server URL describing where to call the functions, will be embedded into the WSDL
MXQueryException
- if generating the WSDL failedjava.lang.StringBuffer handleSOAP(java.lang.String inputSoap)
inputSoap
- textual representation of SOAP
StoreSet getStores()
TypeInfo getStaticReturnType()
java.util.Vector getExternalVariables()
java.util.Vector getUnresolvedExternalVariables()
void applyPUL() throws MXQueryException
MXQueryException
void serializeStores(boolean createBackup) throws java.io.IOException, MXQueryException
createBackup
- if true, a backup copy for each of the serialized/overwritten files
java.io.IOException
- if an I/O error occured
MXQueryException
- if anvoid close() throws MXQueryException
MXQueryException
PreparedStatement copy() throws MXQueryException
MXQueryException
|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |