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.2 2004/02/08 13:19:47 tomdz Exp $
- Author:
- Oleg Nitz
Method Summary |
protected void |
associateBatched(java.util.Collection proxies,
java.util.Collection realSubjects)
associate the batched Children with their owner object
|
protected Query[] |
buildPrefetchQueries(java.util.Collection proxies,
java.util.Collection realSubjects)
Build the multiple queries for one relationship because of limitation of IN(...) |
protected Query |
buildPrefetchQuery(java.lang.Class clazz,
java.util.Collection ids,
boolean withExtents)
|
void |
prepareRelationshipSettings()
Prepare the Relationship for prefetch (ie: disable auto-retrieve) |
void |
restoreRelationshipSettings()
Restore the Relationship settings(ie: enable auto-retrieve) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlainPrefetcher
public PlainPrefetcher(PersistenceBroker aBroker,
java.lang.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(java.util.Collection proxies,
java.util.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(java.util.Collection proxies,
java.util.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(java.lang.Class clazz,
java.util.Collection ids,
boolean withExtents)
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