public class FindAllByBooleanFinder extends FindAllByFinder
The "findAll<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. eg. Account.findAllActiveByHolder("Joe Blogs"); // Where class "Account" has a properties called "active" and "holder" Account.findAllActiveByHolderAndBranch("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.
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
METHOD_PATTERN |
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 |
---|
FindAllByBooleanFinder
(Datastore datastore) |
FindAllByBooleanFinder
(MappingContext mappingContext) |
Type Params | Return Type | Name and description |
---|---|---|
|
public boolean |
firstExpressionIsRequiredBoolean() |