org.apache.ojb.broker.accesslayer
Class BasePrefetcher

java.lang.Object
  extended by org.apache.ojb.broker.accesslayer.BasePrefetcher
All Implemented Interfaces:
RelationshipPrefetcher
Direct Known Subclasses:
PlainPrefetcher, RelationshipPrefetcherImpl

public abstract class BasePrefetcher
extends java.lang.Object
implements RelationshipPrefetcher

Abstract Prefetcher.

Version:
$Id: BasePrefetcher.java 365252 2005-12-29 22:47:48Z tomdz $
Author:
Oleg Nitz

Constructor Summary
BasePrefetcher(PersistenceBrokerImpl aBroker, java.lang.Class anItemClass)
          Constructor for BasePrefetcher.
 
Method Summary
 ClassDescriptor getItemClassDescriptor()
          Returns the ClassDescriptor of the item Class
 int getLimit()
          The limit of objects loaded by one SQL query
 void prefetchRelationship(java.util.Collection owners)
          Prefetch the Relationship for the owners (the 1 side of a 1:n)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.ojb.broker.accesslayer.RelationshipPrefetcher
prepareRelationshipSettings, restoreRelationshipSettings
 

Constructor Detail

BasePrefetcher

public BasePrefetcher(PersistenceBrokerImpl aBroker,
                      java.lang.Class anItemClass)
Constructor for BasePrefetcher.

Method Detail

getLimit

public int getLimit()
The limit of objects loaded by one SQL query

Specified by:
getLimit in interface RelationshipPrefetcher

prefetchRelationship

public void prefetchRelationship(java.util.Collection owners)
Description copied from interface: RelationshipPrefetcher
Prefetch the Relationship for the owners (the 1 side of a 1:n)

Specified by:
prefetchRelationship in interface RelationshipPrefetcher
See Also:
RelationshipPrefetcher.prefetchRelationship(Collection)

getItemClassDescriptor

public ClassDescriptor getItemClassDescriptor()
Returns the ClassDescriptor of the item Class

Specified by:
getItemClassDescriptor in interface RelationshipPrefetcher
Returns:
ClassDescriptor


(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30