| Package | Description |
|---|---|
| com.googlecode.genericdao.search |
| Modifier and Type | Method and Description |
|---|---|
protected void |
BaseSearchProcessor.appendCustomExpression(StringBuilder sb,
BaseSearchProcessor.SearchContext ctx,
String expression)
append a custom expression to the string builder, replacing any
property tokens (i.e "{prop}") with a reference to the property.
|
protected void |
BaseSearchProcessor.appendCustomExpression(StringBuilder sb,
BaseSearchProcessor.SearchContext ctx,
String expression,
List<?> values)
append a custom expression to the string builder, replacing any
property tokens (i.e "{prop}") with a reference to the property and
value tokens (i.e.
|
protected void |
BaseSearchProcessor.applyFetches(BaseSearchProcessor.SearchContext ctx,
List<String> fetches,
List<Field> fields)
Apply the fetch list to the alias tree in the search context.
|
protected String |
BaseSearchProcessor.filterToQL(BaseSearchProcessor.SearchContext ctx,
Filter filter)
Recursively generate the QL fragment for a given search filter option.
|
protected String |
BaseSearchProcessor.generateFromClause(BaseSearchProcessor.SearchContext ctx,
boolean doEagerFetching)
Internal method for generating from clause.
|
protected String |
BaseSearchProcessor.generateJoins(BaseSearchProcessor.SearchContext ctx,
boolean doEagerFetching)
Internal method for generating the join portion of the from clause.
|
protected String |
BaseSearchProcessor.generateOrderByClause(BaseSearchProcessor.SearchContext ctx,
List<Sort> sorts)
Internal method for generating order by clause.
|
protected String |
BaseSearchProcessor.generateSelectClause(BaseSearchProcessor.SearchContext ctx,
List<Field> fields,
boolean distinct)
Internal method for generating the select clause based on the fields of
the given search.
|
protected String |
BaseSearchProcessor.generateSimpleAllOrSome(BaseSearchProcessor.SearchContext ctx,
String property,
Filter filter,
String operation)
In the case of simple ALL/SOME/NONE filters, a simpler hql syntax is used
(which is also compatible with collections of values).
|
protected String |
BaseSearchProcessor.generateSubquery(BaseSearchProcessor.SearchContext ctx,
String property,
Filter filter)
Generate a QL string for a subquery on the given property that uses the
given filter.
|
protected String |
BaseSearchProcessor.generateWhereClause(BaseSearchProcessor.SearchContext ctx,
List<Filter> filters,
boolean isDisjunction)
Internal method for generating where clause for given search.
|
protected BaseSearchProcessor.AliasNode |
BaseSearchProcessor.getAliasForPathIfItExists(BaseSearchProcessor.SearchContext ctx,
String path)
Given a full path to an entity (ex.
|
protected BaseSearchProcessor.AliasNode |
BaseSearchProcessor.getOrCreateAlias(BaseSearchProcessor.SearchContext ctx,
String path,
boolean setFetch)
Given a full path to an entity (ex.
|
protected String |
BaseSearchProcessor.getPathRef(BaseSearchProcessor.SearchContext ctx,
String path)
Given a full path to a property (ex.
|
protected String |
BaseSearchProcessor.param(BaseSearchProcessor.SearchContext ctx,
Object value)
Add value to paramList and return the named parameter string ":pX".
|
protected String[] |
BaseSearchProcessor.splitPath(BaseSearchProcessor.SearchContext ctx,
String path)
Split a path into two parts.
|
Copyright © 2008-2013. All Rights Reserved.