org.codehaus.groovy.grails.orm.hibernate.metaclass
[Java] Class ExecuteQueryPersistentMethod
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.ExecuteQueryPersistentMethod
public class ExecuteQueryPersistentMethod
extends AbstractStaticPersistentMethod
Allows the executing of arbitrary HQL queries.
eg. Account.executeQuery("select distinct a.number from Account a where a.branch = ?", 'London') or
Account.executeQuery("select distinct a.number from Account a where a.branch = :branch", [branch:'London'])
- Authors:
- Graeme Rocher
- Sergey Nebolsin
- See Also:
- Since:
- 30-Apr-2006
Method Summary |
protected java.lang.Object
|
doInvokeInternal(java.lang.Class clazz, java.lang.String methodName, grails.gorm.DetachedCriteria additionalCriteria, java.lang.Object[] arguments)
|
protected java.lang.Object
|
doInvokeInternal(java.lang.Class clazz, java.lang.String methodName, groovy.lang.Closure additionalCriteria, java.lang.Object[] arguments)
|
Methods inherited from class java.lang.Object
|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
ExecuteQueryPersistentMethod
public ExecuteQueryPersistentMethod(org.hibernate.SessionFactory sessionFactory, java.lang.ClassLoader classLoader, GrailsApplication application)
-
doInvokeInternal
@Override
protected java.lang.Object doInvokeInternal(java.lang.Class clazz, java.lang.String methodName, grails.gorm.DetachedCriteria additionalCriteria, java.lang.Object[] arguments)
-
doInvokeInternal
@SuppressWarnings("rawtypes")
@Override
protected java.lang.Object doInvokeInternal(java.lang.Class clazz, java.lang.String methodName, groovy.lang.Closure additionalCriteria, java.lang.Object[] arguments)
-
Groovy Documentation