public class QueryModelDescriptor extends Object
Modifier and Type | Field and Description |
---|---|
List<FacetDescriptor> |
filterFacets |
Constructor and Description |
---|
QueryModelDescriptor() |
QueryModelDescriptor(String name,
String docType,
Integer max,
WhereClauseDescriptor whereClause,
FieldDescriptor sortColumnField,
FieldDescriptor sortAscendingField) |
QueryModelDescriptor(String name,
String docType,
String pattern,
List<FacetDescriptor> filterFacets,
WhereClauseDescriptor whereClause) |
public List<FacetDescriptor> filterFacets
public QueryModelDescriptor()
public QueryModelDescriptor(String name, String docType, String pattern, List<FacetDescriptor> filterFacets, WhereClauseDescriptor whereClause)
public QueryModelDescriptor(String name, String docType, Integer max, WhereClauseDescriptor whereClause, FieldDescriptor sortColumnField, FieldDescriptor sortAscendingField)
public void setPattern(String pattern)
public FieldDescriptor getBatchSize()
public void setBatchSize(FieldDescriptor batchSize)
public FieldDescriptor getBatchLength()
public void setBatchLength(FieldDescriptor batchLength)
public String getDefaultSortColumn()
public void setDefaultSortColumn(String defaultSortColumn)
public Boolean getDefaultSortAscending()
public void setDefaultSortAscending(Boolean defaultSortAscending)
public Boolean getSortable()
public void setSortable(Boolean sortable)
public String getPattern()
public void setName(String name)
public void setSortColumnField(FieldDescriptor sortColumnField)
public void setSortAscendingField(FieldDescriptor sortAscendingField)
public boolean isStateless()
public boolean isStateful()
public String getDocType()
public String getQuery(DocumentModel model) throws ClientException
ClientException
public SortInfo getDefaultSortInfo(DocumentModel model)
public String getQuery(DocumentModel model, SortInfo sortInfo) throws ClientException
ClientException
public String getQuery(Object[] params) throws ClientException
ClientException
public static String prepareStringLiteral(String s)
s
- public String getQuery(Object[] params, SortInfo sortInfo) throws ClientException
ClientException
public Integer getMax()
public void setMax(Integer max)
public String getName()
public Filter getFilter()
public WhereClauseDescriptor getWhereClause()
public void setWhereClause(WhereClauseDescriptor whereClause)
public FieldDescriptor getSortColumnField()
public FieldDescriptor getSortAscendingField()
public boolean isSortable()
public void initEscaper(RuntimeContext context)
This is meant to be called at extension point contribution registration time.
context
- surrounding context, used to load the correct class.Copyright © 2011 Nuxeo SA. All Rights Reserved.