org.apache.ojb.broker.accesslayer
Class PlainPrefetcher
java.lang.Object
org.apache.ojb.broker.accesslayer.BasePrefetcher
org.apache.ojb.broker.accesslayer.PlainPrefetcher
- All Implemented Interfaces:
- RelationshipPrefetcher
public class PlainPrefetcher
- extends BasePrefetcher
Prefetcher for plain list of objects (no relations).
- Version:
- $Id: PlainPrefetcher.java,v 1.1 2007-08-24 22:17:30 ewestfal Exp $
- Author:
- Oleg Nitz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlainPrefetcher
public PlainPrefetcher(PersistenceBrokerImpl aBroker,
Class anItemClass)
prepareRelationshipSettings
public void prepareRelationshipSettings()
- Description copied from interface:
RelationshipPrefetcher
- Prepare the Relationship for prefetch (ie: disable auto-retrieve)
restoreRelationshipSettings
public void restoreRelationshipSettings()
- Description copied from interface:
RelationshipPrefetcher
- Restore the Relationship settings(ie: enable auto-retrieve)
associateBatched
protected void associateBatched(Collection proxies,
Collection realSubjects)
- Description copied from class:
BasePrefetcher
- associate the batched Children with their owner object
- Specified by:
associateBatched
in class BasePrefetcher
buildPrefetchQueries
protected Query[] buildPrefetchQueries(Collection proxies,
Collection realSubjects)
- Build the multiple queries for one relationship because of limitation of IN(...)
- Specified by:
buildPrefetchQueries
in class BasePrefetcher
- Parameters:
proxies
- Collection containing all proxy objects to loadrealSubjects
- Collection where real subjects found in the cache should be added.
buildPrefetchQuery
protected Query buildPrefetchQuery(Class clazz,
Collection ids,
boolean withExtents)
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.