|
||||||||||
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 |
lastPrefetchHint
Stores the last ObjRelationship in the prefetch path. |
protected SelectQuery |
parentQuery
|
protected String |
prefetchPath
The relationship path from root objects to the objects being prefetched. |
protected Collection |
resultPaths
|
Fields inherited from class org.apache.cayenne.query.SelectQuery |
---|
customDbAttributes, distinct, DISTINCT_DEFAULT, DISTINCT_PROPERTY, orderings, parentObjEntityName, parentQualifier |
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 |
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 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 getResultPaths()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |