All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.marklogic.xcc.AdhocQuery Maven / Gradle / Ivy

The newest version!
package com.marklogic.xcc;

/**
 * A specialization of {@link Request} which contains an ad-hoc query (XQuery
 * code as a literal String) to be submitted and evaluated by the MarkLogic
 * Server.
 *
 * @see 
 * Interface AdhocQuery
 */
public interface AdhocQuery extends Request {

    /**
     * Replace the XQuery code to be submitted and evaluated with this
     * {@link Request}.
     *
     * @param query 
     */
    void setQuery(String query);

    /**
     * Returns the currently set ad-hoc XQuery string.
     *
     * @return A {@link String} which is the ad-hoc query to run when this
     * {@link Request} is next passed to {@link Session#submitRequest(Request)}.
     */
    String getQuery();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy