|
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 |
java.lang.Objectch.ethz.mxquery.query.impl.PreparedStatementImpl
public class PreparedStatementImpl
Constructor Summary | |
---|---|
PreparedStatementImpl(Context ctx,
XDMIterator iter,
CompilerOptions cop)
|
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PreparedStatementImpl(Context ctx, XDMIterator iter, CompilerOptions cop)
Method Detail |
---|
public XDMIterator evaluate() throws MXQueryException
PreparedStatement
evaluate
in interface PreparedStatement
MXQueryException
- if setting up the dynamic context failspublic XQDynamicContext getContext()
PreparedStatement
getContext
in interface PreparedStatement
public void addExternalResource(QName varname, XDMIterator resource) throws MXQueryException
PreparedStatement
addExternalResource
in interface PreparedStatement
varname
- a QName describing theresource
- a MXQuery iterator producing XDM
MXQueryException
- if the binding failedpublic void addExternalResource(java.lang.String varname, java.lang.String resource) throws MXQueryException
PreparedStatement
addExternalResource
in interface PreparedStatement
MXQueryException
public boolean isModuleDecl()
isModuleDecl
in interface PreparedStatement
public void exposeModule()
exposeModule
in interface PreparedStatement
public boolean isWebService()
isWebService
in interface PreparedStatement
public java.lang.String generateWSDL(java.lang.String serverURL) throws MXQueryException
PreparedStatement
generateWSDL
in interface PreparedStatement
serverURL
- the Server URL describing where to call the functions, will be embedded into the WSDL
MXQueryException
- if generating the WSDL failedpublic java.lang.StringBuffer handleSOAP(java.lang.String inputSoap)
PreparedStatement
handleSOAP
in interface PreparedStatement
inputSoap
- textual representation of SOAP
public StoreSet getStores()
PreparedStatement
getStores
in interface PreparedStatement
public TypeInfo getStaticReturnType()
PreparedStatement
getStaticReturnType
in interface PreparedStatement
public void applyPUL() throws MXQueryException
PreparedStatement
applyPUL
in interface PreparedStatement
MXQueryException
public void serializeStores(boolean createBackup) throws MXQueryException
PreparedStatement
serializeStores
in interface PreparedStatement
createBackup
- if true, a backup copy for each of the serialized/overwritten files
MXQueryException
- if anpublic java.util.Vector getExternalVariables()
PreparedStatement
getExternalVariables
in interface PreparedStatement
public java.util.Vector getUnresolvedExternalVariables()
PreparedStatement
getUnresolvedExternalVariables
in interface PreparedStatement
public void close() throws MXQueryException
PreparedStatement
close
in interface PreparedStatement
MXQueryException
public PreparedStatement copy() throws MXQueryException
PreparedStatement
copy
in interface PreparedStatement
MXQueryException
public void setContextItem(XDMIterator resource) throws MXQueryException
PreparedStatement
setContextItem
in interface PreparedStatement
resource
- a MXQuery iterator producing XDM
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 |