|
||||||||||
| 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
public class CollectionPrefetcher
Relationship Prefetcher for Collections.
| Field Summary |
|---|
| Fields inherited from class org.apache.ojb.broker.accesslayer.BasePrefetcher |
|---|
IN_LIMIT, itemClassDesc, pkLimit |
| Constructor Summary | |
|---|---|
CollectionPrefetcher(PersistenceBrokerImpl aBroker,
ObjectReferenceDescriptor anOrd)
Constructor for CollectionPrefetcher. |
|
| Method Summary | |
|---|---|
protected void |
associateBatched(Collection owners,
Collection children)
associate the batched Children with their owner object loop over children |
protected Query[] |
buildPrefetchQueries(Collection owners,
Collection children)
Build the multiple queries for one relationship because of limitation of IN(...) |
protected Query |
buildPrefetchQuery(Collection ids)
Build the query to perform a batched read get orderBy settings from CollectionDescriptor |
protected ManageableCollection |
createCollection(CollectionDescriptor desc,
Class collectionClass)
Create a collection object of the given collection type. |
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(PersistenceBrokerImpl aBroker,
ObjectReferenceDescriptor anOrd)
aBroker - anOrd - | Method Detail |
|---|
protected Query[] buildPrefetchQueries(Collection owners,
Collection children)
buildPrefetchQueries in class BasePrefetcherowners - Collection containing all objects of the ONE sideprotected Query buildPrefetchQuery(Collection ids)
ids - Collection containing all identities of objects of the ONE side
protected void associateBatched(Collection owners,
Collection children)
associateBatched in class BasePrefetcher
protected ManageableCollection createCollection(CollectionDescriptor desc,
Class collectionClass)
desc - The collection descriptorcollectionClass - The collection class specified in the collection-descriptor
protected CollectionDescriptor getCollectionDescriptor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||