org.apache.ojb.broker.accesslayer
Class ReferencePrefetcher
java.lang.Object
org.apache.ojb.broker.accesslayer.BasePrefetcher
org.apache.ojb.broker.accesslayer.RelationshipPrefetcherImpl
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReferencePrefetcher
public ReferencePrefetcher(PersistenceBrokerImpl aBroker,
ObjectReferenceDescriptor anOrd)
- Constructor for ReferencePrefetcher.
- Parameters:
aBroker - anOrd -
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 sidechildren - 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.