org.codehaus.groovy.grails.orm.hibernate.metaclass
[Java] Class SavePersistentMethod
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.AbstractSavePersistentMethod
org.codehaus.groovy.grails.orm.hibernate.metaclass.SavePersistentMethod
public class SavePersistentMethod
extends AbstractSavePersistentMethod
Follows the semantics of saveOrUpdate of scheduling the object for persistence when a flush occurs.
- Authors:
- Steven Devijver
- Graeme Rocher
- Since:
- 0.1
Method Summary |
protected java.lang.Object
|
performInsert(java.lang.Object target, boolean shouldFlush)
|
protected java.lang.Object
|
performSave(java.lang.Object target, boolean flush)
|
METHOD_PATTERN
public static final java.util.regex.Pattern METHOD_PATTERN
-
METHOD_SIGNATURE
public static final java.lang.String METHOD_SIGNATURE
-
SavePersistentMethod
public SavePersistentMethod(SessionFactory sessionFactory, java.lang.ClassLoader classLoader, GrailsApplication application)
-
SavePersistentMethod
public SavePersistentMethod(SessionFactory sessionFactory, java.lang.ClassLoader classLoader, GrailsApplication application, GrailsDomainClass domainClass)
-
performInsert
@Override
protected java.lang.Object performInsert(java.lang.Object target, boolean shouldFlush)
-
performSave
@Override
protected java.lang.Object performSave(java.lang.Object target, boolean flush)
-
Groovy Documentation