public class ProxyInstanceMetaClass extends 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(MetaClass delegate, Session session, Serializable key) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Object |
getAttribute(Object object, String attribute) |
|
public Serializable |
getKey() |
|
public Object |
getProperty(Object object, String property) |
|
public Object |
getProxyTarget()Load the target from the DB. |
|
public Object |
invokeMethod(Object o, String methodName, Object[] arguments)Handle method calls on our proxy. |
|
public boolean |
isProxyInitiated() |
|
public void |
setAttribute(Object object, String attribute, Object newValue) |
|
public void |
setProperty(Object object, String property, Object newValue) |
Load the target from the DB.
Handle method calls on our proxy.
o - The proxy.