public class CountByFinder extends DynamicFinder implements QueryBuildingFinder
Supports counting objects. For example Book.countByTitle("The Stand")
Modifiers | Name | Description |
---|---|---|
private static java.util.regex.Pattern |
METHOD_PATTERN |
|
private static java.lang.String[] |
OPERATORS |
|
private static java.lang.String |
OPERATOR_AND |
|
private static java.lang.String |
OPERATOR_OR |
Fields inherited from class | Fields |
---|---|
class DynamicFinder |
ARGUMENT_CACHE, ARGUMENT_FETCH, ARGUMENT_FETCH_SIZE, ARGUMENT_FLUSH_MODE, ARGUMENT_IGNORE_CASE, ARGUMENT_LOCK, ARGUMENT_MAX, ARGUMENT_OFFSET, ARGUMENT_ORDER, ARGUMENT_READ_ONLY, ARGUMENT_SORT, ARGUMENT_TIMEOUT, DEFAULT_OPERATORS, EMPTY_OBJECT_ARRAY, NOT, OPERATOR_AND, OPERATOR_OR, ORDER_ASC, ORDER_DESC, defaultOperationPatterns, mappingContext, methodExpressinPattern, methodExpressions, operatorPatterns, operators, pattern |
class AbstractFinder |
datastore |
Constructor and description |
---|
CountByFinder
(Datastore datastore) |
CountByFinder
(MappingContext mappingContext) |
Type Params | Return Type | Name and description |
---|---|---|
|
public Query |
buildQuery(DynamicFinderInvocation invocation, Session session) |
|
protected Query |
buildQuery(DynamicFinderInvocation invocation, java.lang.Class<?> clazz, Query q) |
|
public java.lang.Object |
doInSession(Session session) |
|
protected java.lang.Object |
doInvokeInternal(DynamicFinderInvocation invocation) |
|
protected java.lang.Object |
invokeQuery(Query q) |