Per-instance metaclass to use for proxied GORM domain objects. It auto-retrieves the associated entity when fields, properties or methods are called (other than those supported by the proxy). The methods and properties supported by the proxy are:
Constructor and description |
---|
ProxyInstanceMetaClass
(groovy.lang.MetaClass delegate, Session session, java.io.Serializable key) |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.Object |
getAttribute(java.lang.Object object, java.lang.String attribute) |
|
java.io.Serializable |
getKey() |
|
java.lang.Object |
getProperty(java.lang.Object object, java.lang.String property) |
|
java.lang.Object |
getProxyTarget() Load the target from the DB. |
|
java.lang.Object |
invokeMethod(java.lang.Object o, java.lang.String methodName, java.lang.Object[] arguments) Handle method calls on our proxy. |
|
boolean |
isProxyInitiated() |
|
void |
setAttribute(java.lang.Object object, java.lang.String attribute, java.lang.Object newValue) |
|
void |
setProperty(java.lang.Object object, java.lang.String property, java.lang.Object newValue) |
Methods inherited from class | Name |
---|---|
class groovy.lang.DelegatingMetaClass |
groovy.lang.DelegatingMetaClass#setProperty(java.lang.Object, java.lang.String, java.lang.Object), groovy.lang.DelegatingMetaClass#setProperty(java.lang.Class, java.lang.Object, java.lang.String, java.lang.Object, boolean, boolean), groovy.lang.DelegatingMetaClass#setProperty(java.lang.String, java.lang.Object), groovy.lang.DelegatingMetaClass#getProperty(java.lang.Object, java.lang.String), groovy.lang.DelegatingMetaClass#getProperty(java.lang.String), groovy.lang.DelegatingMetaClass#getProperty(java.lang.Class, java.lang.Object, java.lang.String, boolean, boolean), groovy.lang.DelegatingMetaClass#equals(java.lang.Object), groovy.lang.DelegatingMetaClass#toString(), groovy.lang.DelegatingMetaClass#hashCode(), groovy.lang.DelegatingMetaClass#getMethods(), groovy.lang.DelegatingMetaClass#getProperties(), groovy.lang.DelegatingMetaClass#initialize(), groovy.lang.DelegatingMetaClass#setAttribute(java.lang.Object, java.lang.String, java.lang.Object), groovy.lang.DelegatingMetaClass#setAttribute(java.lang.Class, java.lang.Object, java.lang.String, java.lang.Object, boolean, boolean), groovy.lang.DelegatingMetaClass#getMetaClass(), groovy.lang.DelegatingMetaClass#setMetaClass(groovy.lang.MetaClass), groovy.lang.DelegatingMetaClass#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.DelegatingMetaClass#invokeMethod(java.lang.Class, java.lang.Object, java.lang.String, [Ljava.lang.Object;, boolean, boolean), groovy.lang.DelegatingMetaClass#invokeMethod(java.lang.Object, java.lang.String, [Ljava.lang.Object;), groovy.lang.DelegatingMetaClass#invokeMethod(java.lang.Object, java.lang.String, java.lang.Object), groovy.lang.DelegatingMetaClass#invokeMissingProperty(java.lang.Object, java.lang.String, java.lang.Object, boolean), groovy.lang.DelegatingMetaClass#getAttribute(java.lang.Object, java.lang.String), groovy.lang.DelegatingMetaClass#getAttribute(java.lang.Class, java.lang.Object, java.lang.String, boolean), groovy.lang.DelegatingMetaClass#getClassNode(), groovy.lang.DelegatingMetaClass#getMetaMethods(), groovy.lang.DelegatingMetaClass#respondsTo(java.lang.Object, java.lang.String), groovy.lang.DelegatingMetaClass#respondsTo(java.lang.Object, java.lang.String, [Ljava.lang.Object;), groovy.lang.DelegatingMetaClass#hasProperty(java.lang.Object, java.lang.String), groovy.lang.DelegatingMetaClass#selectConstructorAndTransformArguments(int, [Ljava.lang.Object;), groovy.lang.DelegatingMetaClass#invokeMissingMethod(java.lang.Object, java.lang.String, [Ljava.lang.Object;), groovy.lang.DelegatingMetaClass#pickMethod(java.lang.String, [Ljava.lang.Class;), groovy.lang.DelegatingMetaClass#getMetaProperty(java.lang.String), groovy.lang.DelegatingMetaClass#getStaticMetaMethod(java.lang.String, [Ljava.lang.Object;), groovy.lang.DelegatingMetaClass#getStaticMetaMethod(java.lang.String, [Ljava.lang.Class;), groovy.lang.DelegatingMetaClass#getMetaMethod(java.lang.String, [Ljava.lang.Object;), groovy.lang.DelegatingMetaClass#getTheClass(), groovy.lang.DelegatingMetaClass#invokeConstructor([Ljava.lang.Object;), groovy.lang.DelegatingMetaClass#invokeStaticMethod(java.lang.Object, java.lang.String, [Ljava.lang.Object;), groovy.lang.DelegatingMetaClass#getAdaptee(), groovy.lang.DelegatingMetaClass#setAdaptee(groovy.lang.MetaClass), groovy.lang.DelegatingMetaClass#addMetaBeanProperty(groovy.lang.MetaBeanProperty), groovy.lang.DelegatingMetaClass#isModified(), groovy.lang.DelegatingMetaClass#isGroovyObject(), groovy.lang.DelegatingMetaClass#addNewInstanceMethod(java.lang.reflect.Method), groovy.lang.DelegatingMetaClass#addNewStaticMethod(java.lang.reflect.Method), groovy.lang.DelegatingMetaClass#addMetaMethod(groovy.lang.MetaMethod), groovy.lang.DelegatingMetaClass#wait(long, int), groovy.lang.DelegatingMetaClass#wait(long), groovy.lang.DelegatingMetaClass#wait(), groovy.lang.DelegatingMetaClass#getClass(), groovy.lang.DelegatingMetaClass#notify(), groovy.lang.DelegatingMetaClass#notifyAll() |
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() |
Load the target from the DB.
Handle method calls on our proxy.
o
- The proxy.