org.apache.ojb.broker.accesslayer
Interface RelationshipPrefetcher

All Known Implementing Classes:
BasePrefetcher, CollectionPrefetcher, MtoNCollectionPrefetcher, PlainPrefetcher, ReferencePrefetcher, RelationshipPrefetcherImpl

public interface RelationshipPrefetcher

Interface for Relationship Prefetchers. Each Prefetcher handles a single Relationship (1:1 or 1:n)

Version:
$Id: RelationshipPrefetcher.java 365232 2005-12-21 22:36:07Z tomdz $
Author:
Jakob Braeuchi

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)
 void prepareRelationshipSettings()
          Prepare the Relationship for prefetch (ie: disable auto-retrieve)
 void restoreRelationshipSettings()
          Restore the Relationship settings(ie: enable auto-retrieve)
 

Method Detail

getItemClassDescriptor

ClassDescriptor getItemClassDescriptor()
Returns the ClassDescriptor of the item Class

Returns:
ClassDescriptor

prepareRelationshipSettings

void prepareRelationshipSettings()
Prepare the Relationship for prefetch (ie: disable auto-retrieve)


prefetchRelationship

void prefetchRelationship(java.util.Collection owners)
Prefetch the Relationship for the owners (the 1 side of a 1:n)


restoreRelationshipSettings

void restoreRelationshipSettings()
Restore the Relationship settings(ie: enable auto-retrieve)


getLimit

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



(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