public class ProxyInstanceMetaClass extends groovy.lang.DelegatingMetaClass
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 |
---|---|---|
|
public java.lang.Object |
getAttribute(java.lang.Object object, java.lang.String attribute) |
|
public java.io.Serializable |
getKey() |
|
public java.lang.Object |
getProperty(java.lang.Object object, java.lang.String property) |
|
public java.lang.Object |
getProxyTarget() Load the target from the DB. |
|
public java.lang.Object |
invokeMethod(java.lang.Object o, java.lang.String methodName, java.lang.Object[] arguments) Handle method calls on our proxy. |
|
public boolean |
isProxyInitiated() |
|
public void |
setAttribute(java.lang.Object object, java.lang.String attribute, java.lang.Object newValue) |
|
public 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#getAdaptee(), groovy.lang.DelegatingMetaClass#setAdaptee(groovy.lang.MetaClass), groovy.lang.DelegatingMetaClass#addMetaBeanProperty(groovy.lang.MetaBeanProperty), groovy.lang.DelegatingMetaClass#isModified(), groovy.lang.DelegatingMetaClass#addMetaMethod(groovy.lang.MetaMethod), groovy.lang.DelegatingMetaClass#isGroovyObject(), groovy.lang.DelegatingMetaClass#addNewInstanceMethod(java.lang.reflect.Method), groovy.lang.DelegatingMetaClass#addNewStaticMethod(java.lang.reflect.Method), groovy.lang.DelegatingMetaClass#setAttribute(java.lang.Class, java.lang.Object, java.lang.String, java.lang.Object, boolean, boolean), groovy.lang.DelegatingMetaClass#setAttribute(java.lang.Object, java.lang.String, java.lang.Object), groovy.lang.DelegatingMetaClass#getAttribute(java.lang.Class, java.lang.Object, java.lang.String, boolean), groovy.lang.DelegatingMetaClass#getAttribute(java.lang.Object, java.lang.String), 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#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#getMetaClass(), groovy.lang.DelegatingMetaClass#setMetaClass(groovy.lang.MetaClass), groovy.lang.DelegatingMetaClass#selectConstructorAndTransformArguments(int, [Ljava.lang.Object;), groovy.lang.DelegatingMetaClass#respondsTo(java.lang.Object, java.lang.String, [Ljava.lang.Object;), groovy.lang.DelegatingMetaClass#respondsTo(java.lang.Object, java.lang.String), groovy.lang.DelegatingMetaClass#hasProperty(java.lang.Object, java.lang.String), 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#invokeMissingMethod(java.lang.Object, java.lang.String, [Ljava.lang.Object;), groovy.lang.DelegatingMetaClass#invokeMissingProperty(java.lang.Object, java.lang.String, java.lang.Object, boolean), groovy.lang.DelegatingMetaClass#getClassNode(), groovy.lang.DelegatingMetaClass#getMetaMethods(), groovy.lang.DelegatingMetaClass#pickMethod(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#getProperty(java.lang.Class, java.lang.Object, java.lang.String, boolean, boolean), groovy.lang.DelegatingMetaClass#getProperty(java.lang.String), groovy.lang.DelegatingMetaClass#getProperty(java.lang.Object, java.lang.String), groovy.lang.DelegatingMetaClass#equals(java.lang.Object), groovy.lang.DelegatingMetaClass#toString(), groovy.lang.DelegatingMetaClass#hashCode(), groovy.lang.DelegatingMetaClass#initialize(), groovy.lang.DelegatingMetaClass#getMethods(), groovy.lang.DelegatingMetaClass#getProperties(), groovy.lang.DelegatingMetaClass#setProperty(java.lang.Class, java.lang.Object, java.lang.String, java.lang.Object, boolean, boolean), groovy.lang.DelegatingMetaClass#setProperty(java.lang.Object, java.lang.String, java.lang.Object), groovy.lang.DelegatingMetaClass#setProperty(java.lang.String, java.lang.Object), groovy.lang.DelegatingMetaClass#wait(long), groovy.lang.DelegatingMetaClass#wait(long, int), groovy.lang.DelegatingMetaClass#wait(), groovy.lang.DelegatingMetaClass#getClass(), groovy.lang.DelegatingMetaClass#notify(), groovy.lang.DelegatingMetaClass#notifyAll() |
Load the target from the DB.
Handle method calls on our proxy.
o
- The proxy.