org.apache.ojb.broker.accesslayer
Interface RelationshipPrefetcher

All Known Implementing Classes:
BasePrefetcher

public interface RelationshipPrefetcher

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

Version:
$Id: RelationshipPrefetcher.java,v 1.5 2004/04/04 23:53:31 brianm Exp $
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

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

Returns:
ClassDescriptor

prepareRelationshipSettings

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


prefetchRelationship

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


restoreRelationshipSettings

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


getLimit

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



(C) 2002 - 2004 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.3, 2005-04-2