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.Ilike, MethodExpression.InList, MethodExpression.InRange, MethodExpression.IsEmpty, MethodExpression.IsNotEmpty, MethodExpression.IsNotNull, MethodExpression.IsNull, MethodExpression.LessThan, MethodExpression.LessThanEquals, MethodExpression.Like, MethodExpression.NotEqual, MethodExpression.Rlike

public abstract class MethodExpression
extends java.lang.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.Ilike
           
static class MethodExpression.InList
           
static class MethodExpression.InRange
           
static class MethodExpression.IsEmpty
           
static class MethodExpression.IsNotEmpty
           
static class MethodExpression.IsNotNull
           
static class MethodExpression.IsNull
           
static class MethodExpression.LessThan
           
static class MethodExpression.LessThanEquals
           
static class MethodExpression.Like
           
static class MethodExpression.NotEqual
           
static class MethodExpression.Rlike
           
 
Field Summary
protected  java.lang.Object[] arguments
           
protected  int argumentsRequired
           
protected  java.lang.String propertyName
           
protected  java.lang.Class<?> targetClass
           
 
Constructor Summary
protected MethodExpression(java.lang.Class<?> targetClass, java.lang.String propertyName)
           
 
Method Summary
 void convertArguments(org.grails.datastore.mapping.model.PersistentEntity persistentEntity)
           
abstract  org.grails.datastore.mapping.query.Query.Criterion createCriterion()
           
 java.lang.Object[] getArguments()
           
 int getArgumentsRequired()
           
 void setArguments(java.lang.Object[] arguments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyName

protected java.lang.String propertyName

arguments

protected java.lang.Object[] arguments

argumentsRequired

protected int argumentsRequired

targetClass

protected java.lang.Class<?> targetClass
Constructor Detail

MethodExpression

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

createCriterion

public abstract org.grails.datastore.mapping.query.Query.Criterion createCriterion()

getArgumentsRequired

public int getArgumentsRequired()

convertArguments

public void convertArguments(org.grails.datastore.mapping.model.PersistentEntity persistentEntity)

setArguments

public void setArguments(java.lang.Object[] arguments)

getArguments

public java.lang.Object[] getArguments()