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, 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) |
Load the target from the DB.
Handle method calls on our proxy.
o - The proxy.