XCC/J 3.1-9

com.marklogic.xcc
Interface AdhocQuery

All Superinterfaces:
Request

public interface AdhocQuery
extends Request

A specialization of Request which contains an ad-hoc query (XQuery code as a literal String) to be submitted and evaluated by the MarkLogic Server.


Method Summary
 String getQuery()
          Returns the currently set ad-hoc XQuery string.
 void setQuery(String query)
          Replace the XQuery code to be submitted and evaluated with this Request.
 
Methods inherited from interface com.marklogic.xcc.Request
clearVariable, clearVariables, getEffectiveOptions, getOptions, getSession, getVariables, setNewIntegerVariable, setNewIntegerVariable, setNewStringVariable, setNewStringVariable, setNewVariable, setNewVariable, setNewVariable, setOptions, setVariable
 

Method Detail

setQuery

public void setQuery(String query)
Replace the XQuery code to be submitted and evaluated with this Request.

Parameters:
query -

getQuery

public String getQuery()
Returns the currently set ad-hoc XQuery string.

Returns:
A String which is the ad-hoc query to run when this Request is next passed to Session.submitRequest(Request).

XCC/J 3.1-9

Copyright © 2003-2008 Mark Logic Corporation, All Rights Reserved.

Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com