org.codehaus.groovy.grails.orm.hibernate.metaclass
Class WithCriteriaDynamicPersistentMethod
java.lang.Object
org.codehaus.groovy.grails.commons.metaclass.AbstractStaticMethodInvocation
org.codehaus.groovy.grails.orm.hibernate.metaclass.AbstractStaticPersistentMethod
org.codehaus.groovy.grails.orm.hibernate.metaclass.WithCriteriaDynamicPersistentMethod
- All Implemented Interfaces:
- StaticMethodInvocation
public class WithCriteriaDynamicPersistentMethod
- extends AbstractStaticPersistentMethod
Lets you call criteria inline:
books = Book.withCriteria {
or {
inList("author.name",
["Dierk Koenig", "Graeme Rocher"])
ilike("title", "Groovy")
}
}
- Since:
- 0.4
- Author:
- Graeme Rocher
WithCriteriaDynamicPersistentMethod
public WithCriteriaDynamicPersistentMethod(org.hibernate.SessionFactory sessionFactory,
ClassLoader classLoader)
doInvokeInternal
protected Object doInvokeInternal(Class clazz,
String methodName,
Object[] arguments)
- Specified by:
doInvokeInternal
in class AbstractStaticPersistentMethod
Copyright (c) 2005-2006 The Grails project