org.grails.datastore.gorm.finders
Interface FinderMethod

All Known Implementing Classes:
CountByFinder, DynamicFinder, FindAllByBooleanFinder, FindAllByFinder, FindByBooleanFinder, FindByFinder, ListOrderByFinder

public interface FinderMethod

Implementation of dynamic finders


Method Summary
 Object invoke(Class clazz, String methodName, Object[] arguments)
          Invokes the method
 boolean isMethodMatch(String methodName)
          Whether the given method name matches this finder
 void setPattern(String pattern)
           
 

Method Detail

setPattern

void setPattern(String pattern)
Parameters:
pattern - A regular expression

invoke

Object invoke(Class clazz,
              String methodName,
              Object[] arguments)
Invokes the method

Parameters:
clazz - The class
methodName - The method name
arguments - The arguments
Returns:
The return value

isMethodMatch

boolean isMethodMatch(String methodName)
Whether the given method name matches this finder

Parameters:
methodName - The method name
Returns:
true if it does