org.grails.datastore.gorm.finders
Class FindByBooleanFinder
java.lang.Object
org.grails.datastore.gorm.finders.DynamicFinder
org.grails.datastore.gorm.finders.FindByFinder
org.grails.datastore.gorm.finders.FindByBooleanFinder
- All Implemented Interfaces:
- FinderMethod
public class FindByBooleanFinder
- extends FindByFinder
The "findBy*" 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.
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 |
FindByBooleanFinder
public FindByBooleanFinder(Datastore datastore)