|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.commons.metaclass.AbstractDynamicMethodInvocation org.codehaus.groovy.grails.orm.hibernate.metaclass.AbstractDynamicPersistentMethod
public abstract class AbstractDynamicPersistentMethod extends AbstractDynamicMethodInvocation
Field Summary | |
---|---|
static java.lang.String |
ERRORS_PROPERTY
|
Constructor Summary | |
AbstractDynamicPersistentMethod(java.util.regex.Pattern pattern, SessionFactory sessionFactory, java.lang.ClassLoader classLoader)
|
Method Summary | |
---|---|
protected java.lang.Object
|
doInvokeInternal(java.lang.Object target, Object[] arguments)
|
protected HibernateTemplate
|
getHibernateTemplate()
|
java.lang.Object
|
invoke(java.lang.Object target, java.lang.String methodName, Object[] arguments)
|
protected void
|
setObjectToReadOnly(java.lang.Object target)
This method will set the target object to read-only if it is contained with the Hibernate session, Preventing Hibernate dirty-checking from persisting the instance |
protected void
|
setObjectToReadWrite(java.lang.Object target)
|
protected Errors
|
setupErrorsProperty(java.lang.Object target)
Initializes the Errors property on target. |
Methods inherited from class AbstractDynamicMethodInvocation | |
---|---|
getPattern, invoke, isMethodMatch, setPattern |
Field Detail |
---|
public static final java.lang.String ERRORS_PROPERTY
Constructor Detail |
---|
public AbstractDynamicPersistentMethod(java.util.regex.Pattern pattern, SessionFactory sessionFactory, java.lang.ClassLoader classLoader)
Method Detail |
---|
protected java.lang.Object doInvokeInternal(java.lang.Object target, Object[] arguments)
protected HibernateTemplate getHibernateTemplate()
@Override public java.lang.Object invoke(java.lang.Object target, java.lang.String methodName, Object[] arguments)
protected void setObjectToReadOnly(java.lang.Object target)
target
- The target object
protected void setObjectToReadWrite(java.lang.Object target)
protected Errors setupErrorsProperty(java.lang.Object target)
target
- object to initialize
Groovy Documentation