Method Summary |
|
public synchronized void | addListener(MaterializationListener listener) Adds a materialization listener. |
protected void | afterMaterialization() Calls afterMaterialization on all registered listeners in the reverse
order of registration. |
public boolean | alreadyMaterialized() Determines whether the real subject already has been materialized. |
protected void | beforeMaterialization() Calls beforeMaterialization on all registered listeners in the reverse
order of registration. |
protected TemporaryBrokerWrapper | getBroker() Gets the persistence broker used by this indirection handler. |
public PBKey | getBrokerKey() Returns the key of the persistence broker used by this indirection
handler. |
public Identity | getIdentity() Returns the identity of the subject. |
public Object | getRealSubject() Returns the proxies real subject. |
public Object | invoke(Object proxy, Method method, Object[] args) [Copied from
java.lang.reflect.InvocationHandler ]:
Processes a method invocation on a proxy instance and returns the result.
This method will be invoked on an invocation handler when a method is
invoked on a proxy instance that it is associated with.
Parameters: proxy - The proxy instance that the method was invoked on Parameters: method - The Method instance corresponding to theinterface method invoked on the proxy instance. |
protected synchronized Object | materializeSubject() Retrieves the real subject from the underlying RDBMS. |
public synchronized void | removeListener(MaterializationListener listener) Removes a materialization listener. |
protected void | setBrokerKey(PBKey brokerKey) Sets the key of the persistence broker used by this indirection handler. |
protected void | setIdentity(Identity identity) Sets the identity of the subject of this indirection handler. |
public void | setRealSubject(Object object) [olegnitz] This looks stupid, but is really necessary for OTM: the
materialization listener replaces the real subject by its clone to ensure
transaction isolation. |