org.apache.ojb.broker.accesslayer
Class RelationshipPrefetcherImpl

java.lang.Object
  extended byorg.apache.ojb.broker.accesslayer.BasePrefetcher
      extended byorg.apache.ojb.broker.accesslayer.RelationshipPrefetcherImpl
All Implemented Interfaces:
RelationshipPrefetcher
Direct Known Subclasses:
CollectionPrefetcher, ReferencePrefetcher

public abstract class RelationshipPrefetcherImpl
extends BasePrefetcher

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

Version:
$Id: RelationshipPrefetcherImpl.java,v 1.9 2003/11/01 21:09:58 brj Exp $
Author:
Jakob Braeuchi

Field Summary
 
Fields inherited from class org.apache.ojb.broker.accesslayer.BasePrefetcher
IN_LIMIT, itemClassDesc, pkLimit
 
Constructor Summary
RelationshipPrefetcherImpl(PersistenceBroker aBroker, ObjectReferenceDescriptor anOrd)
          Constructor for RelationshipPrefetcherImpl.
 
Method Summary
protected  ObjectReferenceDescriptor getObjectReferenceDescriptor()
          Returns the objectReferenceDescriptor.
protected  ClassDescriptor getOwnerClassDescriptor()
          Returns the ClassDescriptor of the owner Class
protected  boolean isCascadeRetrieve()
          Returns the cascadeRetrieve.
 void prepareRelationshipSettings()
          Prepare the Relationship for prefetch (ie: disable auto-retrieve)
 void restoreRelationshipSettings()
          Restore the Relationship settings(ie: enable auto-retrieve)
protected  void setCascadeRetrieve(boolean cascadeRetrieve)
          Sets the cascadeRetrieve.
protected  void setObjectReferenceDescriptor(ObjectReferenceDescriptor objectReferenceDescriptor)
          Sets the objectReferenceDescriptor.
 
Methods inherited from class org.apache.ojb.broker.accesslayer.BasePrefetcher
associateBatched, buildPrefetchCriteria, buildPrefetchQueries, buildPrefetchQuery, buildPrefetchQuery, getBroker, getDescriptorRepository, getItemClassDescriptor, getLimit, getLogger, prefetchRelationship
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationshipPrefetcherImpl

public RelationshipPrefetcherImpl(PersistenceBroker aBroker,
                                  ObjectReferenceDescriptor anOrd)
Constructor for RelationshipPrefetcherImpl.

Method Detail

prepareRelationshipSettings

public void prepareRelationshipSettings()
Description copied from interface: RelationshipPrefetcher
Prepare the Relationship for prefetch (ie: disable auto-retrieve)

See Also:
RelationshipPrefetcher.prepareRelationshipSettings()

getOwnerClassDescriptor

protected ClassDescriptor getOwnerClassDescriptor()
Returns the ClassDescriptor of the owner Class

Returns:
ClassDescriptor

restoreRelationshipSettings

public void restoreRelationshipSettings()
Description copied from interface: RelationshipPrefetcher
Restore the Relationship settings(ie: enable auto-retrieve)

See Also:
RelationshipPrefetcher.restoreRelationshipSettings()

getObjectReferenceDescriptor

protected ObjectReferenceDescriptor getObjectReferenceDescriptor()
Returns the objectReferenceDescriptor.

Returns:
ObjectReferenceDescriptor

setObjectReferenceDescriptor

protected void setObjectReferenceDescriptor(ObjectReferenceDescriptor objectReferenceDescriptor)
Sets the objectReferenceDescriptor.

Parameters:
objectReferenceDescriptor - The objectReferenceDescriptor to set

isCascadeRetrieve

protected boolean isCascadeRetrieve()
Returns the cascadeRetrieve.

Returns:
boolean

setCascadeRetrieve

protected void setCascadeRetrieve(boolean cascadeRetrieve)
Sets the cascadeRetrieve.

Parameters:
cascadeRetrieve - The cascadeRetrieve to set


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