|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.gui.controlx.search.QueryBuilder
public class QueryBuilder
Constructor Summary | |
---|---|
QueryBuilder(RepositorySearchListModel model)
package private |
Method Summary | |
---|---|
protected String |
buildOrderByClause()
Order clause |
protected String |
buildWhereClause()
Build the complete where clause |
protected String |
buildWhereClause(SearchQueryExpression expression)
NOTE : its a very simple in-order binary traversal, order of operation is not preserved |
String |
getSQLStatement()
get SQL statement based on SearchQuery |
boolean |
isUseJCROrderBy()
|
void |
setUseJCROrderBy(boolean useJCROrderBy)
|
protected String |
toDateJCRExpression(DateSearchQueryParameter param)
Make a jcr expression out of the expression |
protected String |
toJCRExpression(SearchQueryExpression expression)
Make a jcr expression out of the expression |
protected String |
toStringJCRExpression(StringSearchQueryParameter param)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryBuilder(RepositorySearchListModel model)
model
- Method Detail |
---|
public String getSQLStatement()
protected String buildWhereClause()
protected String buildOrderByClause()
protected String buildWhereClause(SearchQueryExpression expression)
expression
- protected String toJCRExpression(SearchQueryExpression expression)
expression
-
protected String toDateJCRExpression(DateSearchQueryParameter param)
param
-
protected String toStringJCRExpression(StringSearchQueryParameter param)
param
-
public boolean isUseJCROrderBy()
public void setUseJCROrderBy(boolean useJCROrderBy)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |