public class NXQLQueryBuilder extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SPECIAL_CHARACTERS_REGEXP
Prepares a statement for a fulltext field by converting FULLTEXT virtual
operators to a syntax that the search syntax accepts.
|
static String |
IGNORED_CHARS_KEY |
Modifier and Type | Method and Description |
---|---|
static void |
appendStringList(StringBuilder queryBuilder,
List<?> listParam,
boolean quoteParameters,
boolean escape) |
static Boolean |
getBooleanValue(DocumentModel model,
PredicateFieldDefinition fieldDescriptor) |
static String |
getFieldType(DocumentModel model,
PredicateFieldDefinition fieldDescriptor) |
static Integer |
getIntValue(DocumentModel model,
PredicateFieldDefinition fieldDescriptor) |
static List<String> |
getListValue(DocumentModel model,
PredicateFieldDefinition fieldDescriptor) |
static String |
getPlainStringValue(DocumentModel model,
PredicateFieldDefinition fieldDescriptor) |
static String |
getQuery(DocumentModel model,
WhereClauseDefinition whereClause,
Object[] params,
SortInfo... sortInfos) |
static String |
getQuery(String pattern,
Object[] params,
boolean quoteParameters,
boolean escape,
SortInfo... sortInfos) |
static String |
getQueryElement(DocumentModel model,
PredicateDefinition predicateDescriptor,
Escaper escaper) |
static String |
getQueryElement(DocumentModel model,
WhereClauseDefinition whereClause,
Object[] params) |
static Object |
getRawValue(DocumentModel model,
PredicateFieldDefinition fieldDescriptor) |
static String |
getSortClause(SortInfo... sortInfos) |
static String |
getStringValue(DocumentModel model,
PredicateFieldDefinition fieldDescriptor) |
static String |
prepareStringLiteral(String s,
boolean quoteParameter,
boolean escape)
Return the string literal in a form ready to embed in an NXQL statement.
|
static String |
serializeFullText(String value) |
public static final String DEFAULT_SPECIAL_CHARACTERS_REGEXP
public static final String IGNORED_CHARS_KEY
public static String getQuery(DocumentModel model, WhereClauseDefinition whereClause, Object[] params, SortInfo... sortInfos) throws ClientException
ClientException
public static String getQueryElement(DocumentModel model, WhereClauseDefinition whereClause, Object[] params) throws ClientException
ClientException
public static String getQuery(String pattern, Object[] params, boolean quoteParameters, boolean escape, SortInfo... sortInfos) throws ClientException
ClientException
public static void appendStringList(StringBuilder queryBuilder, List<?> listParam, boolean quoteParameters, boolean escape)
public static String prepareStringLiteral(String s, boolean quoteParameter, boolean escape)
public static String getQueryElement(DocumentModel model, PredicateDefinition predicateDescriptor, Escaper escaper) throws ClientException
ClientException
public static String getPlainStringValue(DocumentModel model, PredicateFieldDefinition fieldDescriptor)
public static Integer getIntValue(DocumentModel model, PredicateFieldDefinition fieldDescriptor)
public static String getFieldType(DocumentModel model, PredicateFieldDefinition fieldDescriptor) throws ClientException
ClientException
public static Object getRawValue(DocumentModel model, PredicateFieldDefinition fieldDescriptor)
public static String getStringValue(DocumentModel model, PredicateFieldDefinition fieldDescriptor) throws ClientException
ClientException
public static List<String> getListValue(DocumentModel model, PredicateFieldDefinition fieldDescriptor)
public static Boolean getBooleanValue(DocumentModel model, PredicateFieldDefinition fieldDescriptor)
Copyright © 2011 Nuxeo SA. All Rights Reserved.