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

java.lang.Object
  extended by org.codehaus.groovy.grails.commons.metaclass.AbstractDynamicMethodInvocation
      extended by org.codehaus.groovy.grails.orm.hibernate.metaclass.AbstractDynamicPersistentMethod
          extended by org.codehaus.groovy.grails.orm.hibernate.metaclass.AbstractSavePersistentMethod
              extended by org.codehaus.groovy.grails.orm.hibernate.metaclass.SavePersistentMethod
All Implemented Interfaces:
DynamicMethodInvocation

public class SavePersistentMethod
extends AbstractSavePersistentMethod

This method follows the semantics of saveOrUpdate of scheduling the object for persistence when a flush occurs.

Since:
0.1 Created: Aug 7, 2005
Author:
Steven Devijver, Graeme Rocher

Field Summary
static Pattern METHOD_PATTERN
           
static String METHOD_SIGNATURE
           
 
Constructor Summary
SavePersistentMethod(org.hibernate.SessionFactory sessionFactory, ClassLoader classLoader, GrailsApplication application)
           
 
Method Summary
protected  void performSave(Object target, boolean flush)
           
 
Methods inherited from class org.codehaus.groovy.grails.orm.hibernate.metaclass.AbstractSavePersistentMethod
doInvokeInternal, handleValidationError, setErrorsOnInstance
 
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_SIGNATURE

public static final String METHOD_SIGNATURE
See Also:
Constant Field Values

METHOD_PATTERN

public static final Pattern METHOD_PATTERN
Constructor Detail

SavePersistentMethod

public SavePersistentMethod(org.hibernate.SessionFactory sessionFactory,
                            ClassLoader classLoader,
                            GrailsApplication application)
Method Detail

performSave

protected void performSave(Object target,
                           boolean flush)
Specified by:
performSave in class AbstractSavePersistentMethod


Copyright (c) 2005-2006 The Grails project