org.apache.ojb.broker.core
Class QueryReferenceBroker.PBMaterializationListener

java.lang.Object
  extended byorg.apache.ojb.broker.core.QueryReferenceBroker.PBPrefetchingListener
      extended byorg.apache.ojb.broker.core.QueryReferenceBroker.PBMaterializationListener
All Implemented Interfaces:
MaterializationListener
Enclosing class:
QueryReferenceBroker

class QueryReferenceBroker.PBMaterializationListener
extends QueryReferenceBroker.PBPrefetchingListener
implements MaterializationListener


Field Summary
protected  java.lang.Object _key
           
 
Constructor Summary
(package private) QueryReferenceBroker.PBMaterializationListener(java.lang.Object owner, java.util.HashMap retrievalTasks, java.lang.Object key, int limit)
           
 
Method Summary
protected  void addThisListenerTo(java.lang.Object owner)
           
 void afterMaterialization(IndirectionHandler handler, java.lang.Object materializedObject)
          this callback is invoked after an Object is materialized within an IndirectionHandler.
 void beforeMaterialization(IndirectionHandler handler, Identity oid)
          this callback is invoked before an Object is materialized within an IndirectionHandler.
protected  RelationshipPrefetcher getPrefetcher(java.lang.Object listenedObject)
           
protected  void prefetch(java.lang.Object listenedObject)
           
protected  void removeThisListener()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_key

protected java.lang.Object _key
Constructor Detail

QueryReferenceBroker.PBMaterializationListener

QueryReferenceBroker.PBMaterializationListener(java.lang.Object owner,
                                               java.util.HashMap retrievalTasks,
                                               java.lang.Object key,
                                               int limit)
Method Detail

addThisListenerTo

protected void addThisListenerTo(java.lang.Object owner)
Specified by:
addThisListenerTo in class QueryReferenceBroker.PBPrefetchingListener

removeThisListener

protected void removeThisListener()
Specified by:
removeThisListener in class QueryReferenceBroker.PBPrefetchingListener

getPrefetcher

protected RelationshipPrefetcher getPrefetcher(java.lang.Object listenedObject)
Specified by:
getPrefetcher in class QueryReferenceBroker.PBPrefetchingListener

beforeMaterialization

public void beforeMaterialization(IndirectionHandler handler,
                                  Identity oid)
Description copied from interface: MaterializationListener
this callback is invoked before an Object is materialized within an IndirectionHandler.

Specified by:
beforeMaterialization in interface MaterializationListener
Parameters:
handler - the invoking handler
oid - the identity of the object to be materialized

afterMaterialization

public void afterMaterialization(IndirectionHandler handler,
                                 java.lang.Object materializedObject)
Description copied from interface: MaterializationListener
this callback is invoked after an Object is materialized within an IndirectionHandler.

Specified by:
afterMaterialization in interface MaterializationListener
Parameters:
handler - the invoking handler
materializedObject - the materialized Object

prefetch

protected void prefetch(java.lang.Object listenedObject)


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14