Overview | Package | Class | Tree | Deprecated | Index | Help
| XCC/J 4.2-9
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

    void setQuery(String query)

  Replace the XQuery code to be submitted and evaluated with this `Request`.

  Parameters:
    `query` -

### getQuery

    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)`.

Overview | Package | Class | Tree | Deprecated | Index | Help
| XCC/J 4.2-9
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 MarkLogic Corporation, All Rights Reserved.

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