public class CountByFinder extends DynamicFinder implements QueryBuildingFinder
Supports counting objects. For example Book.countByTitle("The Stand")
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, ORDER_ASC, ORDER_DESC, mappingContext, 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) |
Methods inherited from class | Name |
---|---|
class DynamicFinder |
applyDetachedCriteria, applySortForMap, buildMatchSpec, configureQueryWithArguments, createCriterion, createFinderInvocation, doInvokeInternal, findMethodExpression, findMethodExpression, getArguments, getArgumentsRequired, getFetchMode, invoke, invoke, invoke, isMethodMatch, populateArgumentsForCriteria, populateArgumentsForCriteria, registerNewMethodExpression, setArguments, setPattern |
class AbstractFinder |
applyAdditionalCriteria, execute, execute |