org.grails.datastore.gorm.finders
Class FindByBooleanFinder

java.lang.Object
  extended by org.grails.datastore.gorm.finders.DynamicFinder
      extended by org.grails.datastore.gorm.finders.FindByFinder
          extended by 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.


Field Summary
 
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
 
Constructor Summary
FindByBooleanFinder(Datastore datastore)
           
 
Method Summary
 
Methods inherited from class org.grails.datastore.gorm.finders.FindByFinder
doInvokeInternalWithExpressions
 
Methods inherited from class org.grails.datastore.gorm.finders.DynamicFinder
applyAdditionalCriteria, configureQueryWithArguments, invoke, invoke, isMethodMatch, populateArgumentsForCriteria, setPattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindByBooleanFinder

public FindByBooleanFinder(Datastore datastore)