|
|||||||||
| 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
org.apache.ojb.broker.accesslayer.CollectionPrefetcher
Relationship Prefetcher for Collections.
| Field Summary |
| Fields inherited from class org.apache.ojb.broker.accesslayer.BasePrefetcher |
IN_LIMIT, itemClassDesc, pkLimit |
| Constructor Summary | |
CollectionPrefetcher(PersistenceBroker aBroker,
ObjectReferenceDescriptor anOrd)
Constructor for CollectionPrefetcher. |
|
| Method Summary | |
protected void |
associateBatched(java.util.Collection owners,
java.util.Collection children)
associate the batched Children with their owner object loop over children |
protected Query[] |
buildPrefetchQueries(java.util.Collection owners,
java.util.Collection children)
Build the multiple queries for one relationship because of limitation of IN(...) |
protected Query |
buildPrefetchQuery(java.util.Collection ids)
Build the query to perform a batched read get orderBy settings from CollectionDescriptor |
protected ManageableCollection |
createCollection(java.lang.Class collectionClass)
Create a Collection of class collectionClass if collectionClass is null return a RemovalAwareCollection |
protected CollectionDescriptor |
getCollectionDescriptor()
|
| Methods inherited from class org.apache.ojb.broker.accesslayer.RelationshipPrefetcherImpl |
getObjectReferenceDescriptor, getOwnerClassDescriptor, isCascadeRetrieve, prepareRelationshipSettings, restoreRelationshipSettings, setCascadeRetrieve, setObjectReferenceDescriptor |
| Methods inherited from class org.apache.ojb.broker.accesslayer.BasePrefetcher |
buildPrefetchCriteria, 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 CollectionPrefetcher(PersistenceBroker aBroker,
ObjectReferenceDescriptor anOrd)
aBroker - anOrd - | Method Detail |
protected Query[] buildPrefetchQueries(java.util.Collection owners,
java.util.Collection children)
buildPrefetchQueries in class BasePrefetcherowners - Collection containing all objects of the ONE sideprotected Query buildPrefetchQuery(java.util.Collection ids)
ids - Collection containing all identities of objects of the ONE side
protected void associateBatched(java.util.Collection owners,
java.util.Collection children)
associateBatched in class BasePrefetcherprotected ManageableCollection createCollection(java.lang.Class collectionClass)
collectionClass -
protected CollectionDescriptor getCollectionDescriptor()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||