org.grails.datastore.gorm.finders
Class FindAllByBooleanFinder

java.lang.Object
  extended by org.grails.datastore.gorm.finders.AbstractFinder
      extended by org.grails.datastore.gorm.finders.DynamicFinder
          extended by org.grails.datastore.gorm.finders.FindAllByFinder
              extended by org.grails.datastore.gorm.finders.FindAllByBooleanFinder
All Implemented Interfaces:
FinderMethod, QueryBuildingFinder

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.


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
 
Fields inherited from class org.grails.datastore.gorm.finders.AbstractFinder
datastore
 
Constructor Summary
FindAllByBooleanFinder(org.grails.datastore.mapping.core.Datastore datastore)
           
 
Method Summary
 boolean firstExpressionIsRequiredBoolean()
           
 
Methods inherited from class org.grails.datastore.gorm.finders.FindAllByFinder
buildQuery, doInvokeInternal, invokeQuery
 
Methods inherited from class org.grails.datastore.gorm.finders.DynamicFinder
applyDetachedCriteria, configureQueryWithArguments, createFinderInvocation, findMethodExpression, getFetchMode, invoke, invoke, invoke, isMethodMatch, populateArgumentsForCriteria, registerNewMethodExpression, setPattern
 
Methods inherited from class org.grails.datastore.gorm.finders.AbstractFinder
applyAdditionalCriteria, execute, execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindAllByBooleanFinder

public FindAllByBooleanFinder(org.grails.datastore.mapping.core.Datastore datastore)
Method Detail

firstExpressionIsRequiredBoolean

public boolean firstExpressionIsRequiredBoolean()
Overrides:
firstExpressionIsRequiredBoolean in class FindAllByFinder