|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.accesslayer.BasePrefetcher
Abstract Prefetcher.
Field Summary | |
protected static int |
IN_LIMIT
|
protected ClassDescriptor |
itemClassDesc
|
protected int |
pkLimit
|
Constructor Summary | |
BasePrefetcher(PersistenceBroker aBroker,
java.lang.Class anItemClass)
Constructor for BasePrefetcher. |
Method Summary | |
protected abstract void |
associateBatched(java.util.Collection owners,
java.util.Collection children)
associate the batched Children with their owner object |
protected Criteria |
buildPrefetchCriteria(java.util.Collection ids,
FieldDescriptor[] fields)
|
protected abstract Query[] |
buildPrefetchQueries(java.util.Collection owners,
java.util.Collection children)
|
protected QueryByCriteria |
buildPrefetchQuery(java.lang.Class clazz,
java.util.Collection ids,
FieldDescriptor[] fields)
|
protected QueryByCriteria |
buildPrefetchQuery(java.util.Collection ids,
FieldDescriptor[] fields)
|
protected PersistenceBroker |
getBroker()
Returns the broker. |
protected DescriptorRepository |
getDescriptorRepository()
Return the DescriptorRepository |
ClassDescriptor |
getItemClassDescriptor()
Returns the ClassDescriptor of the item Class |
int |
getLimit()
The limit of objects loaded by one SQL query |
protected Logger |
getLogger()
Returns the logger. |
void |
prefetchRelationship(java.util.Collection owners)
Prefetch the Relationship for the owners (the 1 side of a 1:n) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.ojb.broker.accesslayer.RelationshipPrefetcher |
prepareRelationshipSettings, restoreRelationshipSettings |
Field Detail |
protected ClassDescriptor itemClassDesc
protected final int pkLimit
protected static final int IN_LIMIT
Constructor Detail |
public BasePrefetcher(PersistenceBroker aBroker, java.lang.Class anItemClass)
Method Detail |
public int getLimit()
getLimit
in interface RelationshipPrefetcher
protected abstract void associateBatched(java.util.Collection owners, java.util.Collection children)
public void prefetchRelationship(java.util.Collection owners)
RelationshipPrefetcher
prefetchRelationship
in interface RelationshipPrefetcher
RelationshipPrefetcher.prefetchRelationship(Collection)
protected QueryByCriteria buildPrefetchQuery(java.util.Collection ids, FieldDescriptor[] fields)
protected Criteria buildPrefetchCriteria(java.util.Collection ids, FieldDescriptor[] fields)
ids
- collection of identitiesfields
-
protected QueryByCriteria buildPrefetchQuery(java.lang.Class clazz, java.util.Collection ids, FieldDescriptor[] fields)
clazz
- ids
- collection of identitiesfields
-
protected DescriptorRepository getDescriptorRepository()
public ClassDescriptor getItemClassDescriptor()
getItemClassDescriptor
in interface RelationshipPrefetcher
protected abstract Query[] buildPrefetchQueries(java.util.Collection owners, java.util.Collection children)
protected PersistenceBroker getBroker()
protected Logger getLogger()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |