|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.accesslayer.BasePrefetcher
org.apache.ojb.broker.accesslayer.RelationshipPrefetcherImpl
Abstract Relationship Prefetchers. Each Prefetcher handles a single Relationship (1:1 or 1:n)
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 |
public RelationshipPrefetcherImpl(PersistenceBroker aBroker, ObjectReferenceDescriptor anOrd)
Method Detail |
public void prepareRelationshipSettings()
RelationshipPrefetcher
RelationshipPrefetcher.prepareRelationshipSettings()
protected ClassDescriptor getOwnerClassDescriptor()
public void restoreRelationshipSettings()
RelationshipPrefetcher
RelationshipPrefetcher.restoreRelationshipSettings()
protected ObjectReferenceDescriptor getObjectReferenceDescriptor()
protected void setObjectReferenceDescriptor(ObjectReferenceDescriptor objectReferenceDescriptor)
objectReferenceDescriptor
- The objectReferenceDescriptor to setprotected boolean isCascadeRetrieve()
protected void setCascadeRetrieve(boolean cascadeRetrieve)
cascadeRetrieve
- The cascadeRetrieve to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |