|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.broker.accesslayer.BasePrefetcher
public abstract class BasePrefetcher
Abstract Prefetcher.
| Field Summary | |
|---|---|
protected static int |
IN_LIMIT
The numer of columns to query for. |
protected ClassDescriptor |
itemClassDesc
Class descriptor for the item type. |
protected int |
pkLimit
Maximum number of pk's in one query. |
| Constructor Summary | |
|---|---|
BasePrefetcher(PersistenceBrokerImpl aBroker,
Class anItemClass)
Constructor for BasePrefetcher. |
|
| Method Summary | |
|---|---|
protected abstract void |
associateBatched(Collection owners,
Collection children)
associate the batched Children with their owner object |
protected Criteria |
buildPrefetchCriteria(Collection ids,
FieldDescriptor[] fields)
|
protected abstract Query[] |
buildPrefetchQueries(Collection owners,
Collection children)
|
protected QueryByCriteria |
buildPrefetchQuery(Class clazz,
Collection ids,
FieldDescriptor[] fields)
|
protected QueryByCriteria |
buildPrefetchQuery(Collection ids,
FieldDescriptor[] fields)
|
protected PersistenceBrokerImpl |
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(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 static final int IN_LIMIT
protected ClassDescriptor itemClassDesc
protected final int pkLimit
| Constructor Detail |
|---|
public BasePrefetcher(PersistenceBrokerImpl aBroker,
Class anItemClass)
| Method Detail |
|---|
public int getLimit()
getLimit in interface RelationshipPrefetcher
protected abstract void associateBatched(Collection owners,
Collection children)
public void prefetchRelationship(Collection owners)
RelationshipPrefetcher
prefetchRelationship in interface RelationshipPrefetcherRelationshipPrefetcher.prefetchRelationship(Collection)
protected QueryByCriteria buildPrefetchQuery(Collection ids,
FieldDescriptor[] fields)
protected Criteria buildPrefetchCriteria(Collection ids,
FieldDescriptor[] fields)
ids - collection of identitiesfields -
protected QueryByCriteria buildPrefetchQuery(Class clazz,
Collection ids,
FieldDescriptor[] fields)
clazz - ids - collection of identitiesfields -
protected DescriptorRepository getDescriptorRepository()
public ClassDescriptor getItemClassDescriptor()
getItemClassDescriptor in interface RelationshipPrefetcher
protected abstract Query[] buildPrefetchQueries(Collection owners,
Collection children)
protected PersistenceBrokerImpl getBroker()
protected Logger getLogger()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||