org.grails.datastore.gorm.finders
Class FindAllByBooleanFinder
java.lang.Object
org.grails.datastore.gorm.finders.DynamicFinder
org.grails.datastore.gorm.finders.FindAllByFinder
org.grails.datastore.gorm.finders.FindAllByBooleanFinder
- All Implemented Interfaces:
- FinderMethod
public class FindAllByBooleanFinder
- extends FindAllByFinder
The "findAllBy*" 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.
Fields inherited from class org.grails.datastore.gorm.finders.DynamicFinder |
ARGUMENT_CACHE, ARGUMENT_FETCH, ARGUMENT_IGNORE_CASE, ARGUMENT_LOCK, ARGUMENT_MAX, ARGUMENT_OFFSET, ARGUMENT_ORDER, ARGUMENT_SORT, ORDER_ASC, ORDER_DESC, pattern |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FindAllByBooleanFinder
public FindAllByBooleanFinder(Datastore datastore)