public class FindByBooleanFinder extends FindByFinder
The "find<booleanProperty>By*" static persistent method. This method allows querying for instances of grails domain classes based on a boolean property and any other arbitrary properties. This method returns the first result of the query.
eg.
Account.findActiveByHolder("Joe Blogs"); // Where class "Account" has a properties called "active" and "holder"
Account.findActiveByHolderAndBranch("Joe Blogs", "London"); // Where class "Account" has a properties called "active', "holder" and "branch"
In both of those queries, the query will only select Account objects where active=true.
OPERATOR_AND, OPERATOR_OR, OPERATORSARGUMENT_CACHE, ARGUMENT_FETCH, ARGUMENT_IGNORE_CASE, ARGUMENT_LOCK, ARGUMENT_MAX, ARGUMENT_OFFSET, ARGUMENT_ORDER, ARGUMENT_SORT, ORDER_ASC, ORDER_DESC, patterndatastore| Constructor and Description |
|---|
FindByBooleanFinder(org.grails.datastore.mapping.core.Datastore datastore) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
firstExpressionIsRequiredBoolean() |
buildQuery, doInvokeInternal, invokeQueryapplyDetachedCriteria, configureQueryWithArguments, createFinderInvocation, findMethodExpression, getFetchMode, invoke, invoke, invoke, isMethodMatch, populateArgumentsForCriteria, registerNewMethodExpression, setPatternapplyAdditionalCriteria, execute, executepublic FindByBooleanFinder(org.grails.datastore.mapping.core.Datastore datastore)
public boolean firstExpressionIsRequiredBoolean()
firstExpressionIsRequiredBoolean in class AbstractFindByFinder