| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.query.AbstractQuery
org.apache.cayenne.query.QualifiedQuery
org.apache.cayenne.query.SelectQuery
org.apache.cayenne.query.PrefetchSelectQuery
public class PrefetchSelectQuery
A SelectQuery to perform a prefetch based on another query. Used internally by Cayenne and is normally never used directly.
| Field Summary | |
|---|---|
| protected  ObjRelationship | lastPrefetchHintStores the last ObjRelationship in the prefetch path. | 
| protected  SelectQuery | parentQuery | 
| protected  String | prefetchPathThe relationship path from root objects to the objects being prefetched. | 
| protected  Collection<String> | resultPaths | 
| Fields inherited from class org.apache.cayenne.query.SelectQuery | 
|---|
| distinct, DISTINCT_DEFAULT, DISTINCT_PROPERTY, orderings | 
| Fields inherited from class org.apache.cayenne.query.QualifiedQuery | 
|---|
| qualifier | 
| Fields inherited from class org.apache.cayenne.query.AbstractQuery | 
|---|
| name, root | 
| Constructor Summary | |
|---|---|
| PrefetchSelectQuery(SelectQuery parentQuery,
                    String prefetchPath,
                    ObjRelationship lastPrefetchHint)Creates a new disjoint prefetch select query. | |
| Method Summary | |
|---|---|
|  void | addResultPath(String path)Configures an "extra" path that will resolve to an extra column (or columns) in the result set. | 
|  ObjRelationship | getLastPrefetchHint()Retunrs last incoming ObjRelationship in the prefetch relationship chain. | 
|  SelectQuery | getParentQuery() | 
|  String | getPrefetchPath()Returns the prefetchPath. | 
|  Collection<String> | getResultPaths()Returns extra result paths. | 
|  void | removeResultPath(String path)Removes an extra result path. | 
|  void | setLastPrefetchHint(ObjRelationship relationship) | 
|  void | setParentQuery(SelectQuery parentQuery) | 
|  void | setPrefetchPath(String prefetchPath)Sets the prefetchPath. | 
| Methods inherited from class org.apache.cayenne.query.QualifiedQuery | 
|---|
| andQualifier, getQualifier, orQualifier, setQualifier | 
| Methods inherited from class org.apache.cayenne.query.AbstractQuery | 
|---|
| getName, getRoot, setName, setRoot, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface org.apache.cayenne.query.Query | 
|---|
| getName | 
| Field Detail | 
|---|
protected SelectQuery parentQuery
protected String prefetchPath
protected ObjRelationship lastPrefetchHint
protected Collection<String> resultPaths
| Constructor Detail | 
|---|
public PrefetchSelectQuery(SelectQuery parentQuery,
                           String prefetchPath,
                           ObjRelationship lastPrefetchHint)
| Method Detail | 
|---|
public String getPrefetchPath()
public void setPrefetchPath(String prefetchPath)
prefetchPath - The prefetchPath to setpublic SelectQuery getParentQuery()
public void setParentQuery(SelectQuery parentQuery)
public ObjRelationship getLastPrefetchHint()
public void setLastPrefetchHint(ObjRelationship relationship)
public void addResultPath(String path)
path - A valid path expression. E.g. "abc" or "db:ABC" or "abc.xyz".public void removeResultPath(String path)
public Collection<String> getResultPaths()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||