org.grails.datastore.gorm.finders
Class MethodExpression

java.lang.Object
  extended by org.grails.datastore.gorm.finders.MethodExpression
Direct Known Subclasses:
MethodExpression.Between, MethodExpression.Equal, MethodExpression.GreaterThan, MethodExpression.GreaterThanEquals, MethodExpression.InList, MethodExpression.LessThan, MethodExpression.LessThanEquals, MethodExpression.Like

public abstract class MethodExpression
extends Object

Method expression used to evaluate a dynamic finder


Nested Class Summary
static class MethodExpression.Between
           
static class MethodExpression.Equal
           
static class MethodExpression.GreaterThan
           
static class MethodExpression.GreaterThanEquals
           
static class MethodExpression.InList
           
static class MethodExpression.LessThan
           
static class MethodExpression.LessThanEquals
           
static class MethodExpression.Like
           
 
Field Summary
protected  Object[] arguments
           
protected  int argumentsRequired
           
protected  String propertyName
           
protected  Class<?> targetClass
           
 
Constructor Summary
protected MethodExpression(Class<?> targetClass, String propertyName)
           
 
Method Summary
static MethodExpression create(Class clazz, String expression)
           
abstract  Query.Criterion createCriterion()
           
 int getArgumentsRequired()
           
 void setArguments(Object[] arguments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyName

protected String propertyName

arguments

protected Object[] arguments

argumentsRequired

protected int argumentsRequired

targetClass

protected Class<?> targetClass
Constructor Detail

MethodExpression

protected MethodExpression(Class<?> targetClass,
                           String propertyName)
Method Detail

createCriterion

public abstract Query.Criterion createCriterion()

getArgumentsRequired

public int getArgumentsRequired()

setArguments

public void setArguments(Object[] arguments)

create

public static MethodExpression create(Class clazz,
                                      String expression)