com.adobe.livecycle.contentservices.client
Interface QueryBuilder


public interface QueryBuilder

The QueryBuilder interface defines utility methods for constructing a query string from a Statement object for searching content and folders in Content Services ES2. This interface can be implemented to define the query string in different query languages (for example Lucene, XPath, SQL, and so on.)


Method Summary
 java.lang.String getOperatorString(int operator)
          Returns the operator string specific to a query builder (query language) given an integer operator code as input (for example, the AND operator is defined as "AND" in SQL and "+" or "AND" in Lucene).
 java.lang.String getQuery(Statement stmt)
          Returns a query string given a Statement object in a format specific to the query builder (query language).
 

Method Detail

getQuery

java.lang.String getQuery(Statement stmt)
                          throws ContentServicesException
Returns a query string given a Statement object in a format specific to the query builder (query language).

Parameters:
stmt - A Statement object that is used to form the query.
Returns:
A string value that contains the query constructed from the Statement object.
Throws:
ContentServicesException - if there is any error during query construction.

getOperatorString

java.lang.String getOperatorString(int operator)
Returns the operator string specific to a query builder (query language) given an integer operator code as input (for example, the AND operator is defined as "AND" in SQL and "+" or "AND" in Lucene).

Parameters:
operator - An integer code representing an operator.
Returns:
A string value that contains the operator string equivalent for a query builder.


[an error occurred while processing this directive] [an error occurred while processing this directive]