|
||||||||||
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
Deprecated. since 3.1 unused |
protected java.lang.String |
prefetchPath
The relationship path from root objects to the objects being prefetched. |
protected java.util.Collection<java.lang.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 |
---|
dataMap, name, root |
Constructor Summary | |
---|---|
PrefetchSelectQuery(SelectQuery parentQuery,
java.lang.String prefetchPath,
ObjRelationship lastPrefetchHint)
Deprecated. Since 3.1 use another constructor without parentQuery parameter instead. |
|
PrefetchSelectQuery(java.lang.String prefetchPath,
ObjRelationship lastPrefetchHint)
Creates a new disjoint prefetch select query. |
Method Summary | |
---|---|
void |
addResultPath(java.lang.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()
Deprecated. since 3.1 |
java.lang.String |
getPrefetchPath()
Returns the prefetchPath. |
java.util.Collection<java.lang.String> |
getResultPaths()
Returns extra result paths. |
void |
removeResultPath(java.lang.String path)
Removes an extra result path. |
void |
setLastPrefetchHint(ObjRelationship relationship)
|
void |
setParentQuery(SelectQuery parentQuery)
Deprecated. since 3.1 |
void |
setPrefetchPath(java.lang.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 |
---|
acceptVisitor, getDataMap, getName, getRoot, setDataMap, 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 |
---|
getDataMap, getName |
Methods inherited from interface org.apache.cayenne.configuration.ConfigurationNode |
---|
acceptVisitor |
Field Detail |
---|
@Deprecated protected SelectQuery parentQuery
protected java.lang.String prefetchPath
protected ObjRelationship lastPrefetchHint
protected java.util.Collection<java.lang.String> resultPaths
Constructor Detail |
---|
public PrefetchSelectQuery(java.lang.String prefetchPath, ObjRelationship lastPrefetchHint)
@Deprecated public PrefetchSelectQuery(SelectQuery parentQuery, java.lang.String prefetchPath, ObjRelationship lastPrefetchHint)
Method Detail |
---|
public java.lang.String getPrefetchPath()
public void setPrefetchPath(java.lang.String prefetchPath)
prefetchPath
- The prefetchPath to set@Deprecated public SelectQuery getParentQuery()
@Deprecated public void setParentQuery(SelectQuery parentQuery)
public ObjRelationship getLastPrefetchHint()
public void setLastPrefetchHint(ObjRelationship relationship)
public void addResultPath(java.lang.String path)
path
- A valid path expression. E.g. "abc" or "db:ABC" or "abc.xyz".public void removeResultPath(java.lang.String path)
public java.util.Collection<java.lang.String> getResultPaths()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |