| java.lang.Object org.jaffa.persistence.engines.jdbcengine.proxy.PersistentInstanceInvocationHandler
PersistentInstanceInvocationHandler | class PersistentInstanceInvocationHandler implements InvocationHandler(Code) | | This is the InvocationHandler implemenation for the proxy class generated by the PersistentInstanceFactory.
It delegates all IPersistent calls to an instance of the PersistentInstanceDelegate.
It maintains all the fields of the actual persistent class in a Map and all the getters and setters simply manipulate that map.
|
Method Summary | |
void | addAttributeValue(String attributeName, Object value) This is exclusively for use by the PersistentInstanceFactory. | public Object | invoke(Object proxy, Method method, Object[] args) Processes a method invocation on a proxy instance and returns the result.
Parameters: proxy - the proxy instance that the method was invoked on. Parameters: method - the Method instance corresponding to the interface method invoked on the proxy instance. Parameters: args - an array of objects containing the values of the arguments passed in the method invocation on the proxy instance. |
PersistentInstanceInvocationHandler | PersistentInstanceInvocationHandler(Class actualPersistentClass)(Code) | | Creates an instance of the PersistentInstanceInvocationHandler.
Parameters: actualPersistentClass - The actual class for which the Proxy is being generated. |
addAttributeValue | void addAttributeValue(String attributeName, Object value)(Code) | | This is exclusively for use by the PersistentInstanceFactory.
This will merely add the attribute/value to the Map.
This will bypass the validations performed during invocation of the setXyz() method on the persistent object.
Parameters: attributeName - The attribute whose value will be set. Parameters: value - The value to be set. |
invoke | public Object invoke(Object proxy, Method method, Object[] args) throws Throwable(Code) | | Processes a method invocation on a proxy instance and returns the result.
Parameters: proxy - the proxy instance that the method was invoked on. Parameters: method - the Method instance corresponding to the interface method invoked on the proxy instance. Parameters: args - an array of objects containing the values of the arguments passed in the method invocation on the proxy instance. the value to return from the method invocation on the proxy instance. throws: Throwable - the exception to throw from the method invocation on the proxy instance. |
|
|