## org.codehaus.groovy.grails.orm.hibernate.metaclass
Class RefreshPersistentMethod

    java.lang.Object
      org.codehaus.groovy.grails.commons.metaclass.AbstractDynamicMethodInvocation
          org.codehaus.groovy.grails.orm.hibernate.metaclass.AbstractDynamicPersistentMethod
              org.codehaus.groovy.grails.orm.hibernate.metaclass.RefreshPersistentMethod

All Implemented Interfaces:
  DynamicMethodInvocation

    public class RefreshPersistentMethod

extends AbstractDynamicPersistentMethod

The "refresh" persistent instance method. This method refreshes the current instances state. eg. instance.refresh();

Author:
  Graeme Rocher

Field Summary
`static Pattern` `METHOD_PATTERN`

Constructor Summary
`RefreshPersistentMethod(org.hibernate.SessionFactory sessionFactory, ClassLoader classLoader)`

Method Summary
`protected Object` `doInvokeInternal(Object target, Object[] arguments)`

Methods inherited from class org.codehaus.groovy.grails.orm.hibernate.metaclass.AbstractDynamicPersistentMethod
`getHibernateTemplate, invoke`

Methods inherited from class org.codehaus.groovy.grails.commons.metaclass.AbstractDynamicMethodInvocation
`getPattern, isMethodMatch, setPattern`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### METHOD_PATTERN

    public static final Pattern METHOD_PATTERN

Constructor Detail

### RefreshPersistentMethod

    public RefreshPersistentMethod(org.hibernate.SessionFactory sessionFactory,
                                   ClassLoader classLoader)

Method Detail

### doInvokeInternal

    protected Object doInvokeInternal(Object target,
                                      Object[] arguments)

  Specified by:
    `doInvokeInternal` in class `AbstractDynamicPersistentMethod`

Copyright (c) 2005-2006 The Grails project