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.
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
METHOD_PATTERN |
Fields inherited from class | Fields |
---|---|
class AbstractFindByFinder |
OPERATORS, OPERATOR_AND, OPERATOR_OR |
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 |
---|
FindByBooleanFinder(Datastore datastore) |
FindByBooleanFinder(MappingContext mappingContext) |
Type Params | Return Type | Name and description |
---|---|---|
|
public boolean |
firstExpressionIsRequiredBoolean() |