Utility methods.
Type | Name and description |
---|---|
static void |
addDomainClassMethods(java.lang.Class clazz, java.lang.Object ctx) Register domain class metaclass methods. |
static void |
addDomainProxies(java.lang.Class artefactClass) Register proxies based on 'hibernateFilters' configuration. |
static java.lang.Object |
withHibernateFilters(org.hibernate.Session session, java.lang.Object names, groovy.lang.Closure closure) Execute the closure with the specified filter(s) enabled. |
static java.lang.Object |
withoutHibernateFilters(org.hibernate.Session session, java.lang.Object names, groovy.lang.Closure closure) Execute the closure with the specified filter(s) disabled. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Register domain class metaclass methods.
clazz
- the domain classctx
- the application contextRegister proxies based on 'hibernateFilters' configuration.
artefactClass
- the artifact classExecute the closure with the specified filter(s) enabled. Re-disable any that were disabled.
session
- the Hibernate sessionnames
- the filter name(s)closure
- the closureExecute the closure with the specified filter(s) disabled. Re-enable any that were enabled.
session
- the Hibernate sessionnames
- the filter name(s)closure
- the closure