public interface ReadAheadHint
A read ahead hint is a canonical representation of which nodes in an EJB relationship graph should be read in from the backing store at the same time. EJB relationship graphs are defined by EJB container-managed relationships (CMR).
Assume there is a CMP bean type A which has a finder method that returns instances of bean A. A read ahead hint for this method is specified using the following notation: RelB.RelC; RelD
The preceeding notation reveals:
The actual tokens "RelB", etc. must be the CMR field names for the relationships as defined in the deployment descriptor.
"RelB.RelC" and "RelD" are path expressions. Each path expression in a ReadAheadHint is represented by one or more ReadAheadItems. Each ReadAheadItem represents a single bean to be read ahead, so "RelB.RelC" actually becomes two ReadAheadItems, while "RelD" becomes only one. One ReadAheadHint manages a set of ReadAheadItems.
Modifier and Type | Method and Description |
---|---|
int |
bestFitRating(ReadAheadHint desiredHint)
Returns an integer which rates how well this hint matches the given hint.
|
java.util.Iterator |
getIterator()
Return an iterator over the items
|
ReadAheadItem |
getNextItem()
Deprecated.
|
void |
resetCursor()
Deprecated.
|
int bestFitRating(ReadAheadHint desiredHint)
desiredHint
- com.ibm.websphere.appprofile.accessintent.ReadAheadHintjava.util.Iterator getIterator()
void resetCursor()
ReadAheadItem getNextItem()