org.codehaus.groovy.grails.orm.hibernate.metaclass
Class FindAllWherePersistentMethod

java.lang.Object
  extended by org.codehaus.groovy.grails.commons.metaclass.AbstractStaticMethodInvocation
      extended by org.codehaus.groovy.grails.orm.hibernate.metaclass.AbstractStaticPersistentMethod
          extended by org.codehaus.groovy.grails.orm.hibernate.metaclass.FindAllWherePersistentMethod
All Implemented Interfaces:
StaticMethodInvocation

public class FindAllWherePersistentMethod
extends AbstractStaticPersistentMethod

The "findAllWhere" persistent static method. This method takes a map with the keys being the property names and the values being the values of those properties and locates all instances that matches the criteria. eg. Account.findAllWhere( [ "holder":"Joe Bloggs", branch:"London" ] );

Author:
Graeme Rocher, Drew Varner

Constructor Summary
FindAllWherePersistentMethod(org.hibernate.SessionFactory sessionFactory, ClassLoader classLoader)
           
 
Method Summary
protected  Object doInvokeInternal(Class clazz, String methodName, Object[] arguments)
           
 
Methods inherited from class org.codehaus.groovy.grails.orm.hibernate.metaclass.AbstractStaticPersistentMethod
getHibernateTemplate, invoke
 
Methods inherited from class org.codehaus.groovy.grails.commons.metaclass.AbstractStaticMethodInvocation
getPattern, isMethodMatch, setPattern, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FindAllWherePersistentMethod

public FindAllWherePersistentMethod(org.hibernate.SessionFactory sessionFactory,
                                    ClassLoader classLoader)
Method Detail

doInvokeInternal

protected Object doInvokeInternal(Class clazz,
                                  String methodName,
                                  Object[] arguments)
Specified by:
doInvokeInternal in class AbstractStaticPersistentMethod


Copyright (c) 2005-2006 The Grails project