org.codehaus.groovy.grails.orm.hibernate.metaclass
Class ExecuteUpdatePersistentMethod

java.lang.Object
  extended by org.codehaus.groovy.grails.commons.metaclass.AbstractStaticMethodInvocation
      extended by org.codehaus.groovy.grails.orm.hibernate.metaclass.AbstractStaticPersistentMethod
          extended by org.codehaus.groovy.grails.orm.hibernate.metaclass.ExecuteUpdatePersistentMethod
All Implemented Interfaces:
StaticMethodInvocation

public class ExecuteUpdatePersistentMethod
extends AbstractStaticPersistentMethod

Allows the execution of update queries such as DML updates eg. Account.executeUpdate( "delete Account"); // deletes all accounts (eek!)

Since:
13-Sep-2006
Author:
Graeme Rocher

Field Summary
static Pattern METHOD_PATTERN
           
 
Fields inherited from class org.codehaus.groovy.grails.orm.hibernate.metaclass.AbstractStaticPersistentMethod
ARGUMENT_FETCH, ARGUMENT_MAX, ARGUMENT_OFFSET, ARGUMENT_ORDER, ARGUMENT_SORT, ORDER_ASC, ORDER_DESC
 
Constructor Summary
ExecuteUpdatePersistentMethod(org.hibernate.SessionFactory sessionFactory, ClassLoader classLoader)
           
 
Method Summary
protected  Object doInvokeInternal(Class clazz, String methodName, Object[] arguments)
           
 
Methods inherited from class org.codehaus.groovy.grails.orm.hibernate.metaclass.AbstractStaticPersistentMethod
getFetchMode, getHibernateTemplate, invoke, populateArgumentsForCriteria
 
Methods inherited from class org.codehaus.groovy.grails.commons.metaclass.AbstractStaticMethodInvocation
getPattern, isMethodMatch, setPattern, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

METHOD_PATTERN

public static final Pattern METHOD_PATTERN
Constructor Detail

ExecuteUpdatePersistentMethod

public ExecuteUpdatePersistentMethod(org.hibernate.SessionFactory sessionFactory,
                                     ClassLoader classLoader)
Method Detail

doInvokeInternal

protected Object doInvokeInternal(Class clazz,
                                  String methodName,
                                  Object[] arguments)
Specified by:
doInvokeInternal in class AbstractStaticPersistentMethod


Copyright (c) 2005-2006 The Grails project