org.apache.ojb.broker.accesslayer
Class ReferencePrefetcher

java.lang.Object
  extended by org.apache.ojb.broker.accesslayer.BasePrefetcher
      extended by org.apache.ojb.broker.accesslayer.RelationshipPrefetcherImpl
          extended by org.apache.ojb.broker.accesslayer.ReferencePrefetcher
All Implemented Interfaces:
RelationshipPrefetcher

public class ReferencePrefetcher
extends RelationshipPrefetcherImpl

Relationship Prefetcher for References.

Version:
$Id: ReferencePrefetcher.java,v 1.1 2007-08-24 22:17:30 ewestfal Exp $
Author:
Jakob Braeuchi

Field Summary
 
Fields inherited from class org.apache.ojb.broker.accesslayer.BasePrefetcher
IN_LIMIT, itemClassDesc, pkLimit
 
Constructor Summary
ReferencePrefetcher(PersistenceBrokerImpl aBroker, ObjectReferenceDescriptor anOrd)
          Constructor for ReferencePrefetcher.
 
Method Summary
protected  void associateBatched(Collection owners, Collection children)
          Associate the batched Children with their owner object.
protected  Query[] buildPrefetchQueries(Collection owners, Collection children)
          Build the multiple queries for one relationship because of limitation of IN(...)
protected  Query buildPrefetchQuery(Collection ids)
           
 
Methods inherited from class org.apache.ojb.broker.accesslayer.RelationshipPrefetcherImpl
getObjectReferenceDescriptor, getOwnerClassDescriptor, isCascadeRetrieve, prepareRelationshipSettings, restoreRelationshipSettings, setCascadeRetrieve, setObjectReferenceDescriptor
 
Methods inherited from class org.apache.ojb.broker.accesslayer.BasePrefetcher
buildPrefetchCriteria, buildPrefetchQuery, buildPrefetchQuery, getBroker, getDescriptorRepository, getItemClassDescriptor, getLimit, getLogger, prefetchRelationship
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferencePrefetcher

public ReferencePrefetcher(PersistenceBrokerImpl aBroker,
                           ObjectReferenceDescriptor anOrd)
Constructor for ReferencePrefetcher.

Parameters:
aBroker -
anOrd -
Method Detail

associateBatched

protected void associateBatched(Collection owners,
                                Collection children)
Associate the batched Children with their owner object. Loop over owners

Specified by:
associateBatched in class BasePrefetcher

buildPrefetchQueries

protected Query[] buildPrefetchQueries(Collection owners,
                                       Collection children)
Build the multiple queries for one relationship because of limitation of IN(...)

Specified by:
buildPrefetchQueries in class BasePrefetcher
Parameters:
owners - Collection containing all objects of the ONE side
children - Collection where related objects found in the cache should be added.

buildPrefetchQuery

protected Query buildPrefetchQuery(Collection ids)
See Also:
BasePrefetcher.buildPrefetchCriteria(java.util.Collection, org.apache.ojb.broker.metadata.FieldDescriptor[])


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.