public class PrefetchSelectQuery extends SelectQuery
Modifier and Type | Field and Description |
---|---|
protected ObjRelationship |
lastPrefetchHint
Stores the last ObjRelationship in the prefetch path.
|
protected SelectQuery |
parentQuery
Deprecated.
since 3.1 unused
|
protected String |
prefetchPath
The relationship path from root objects to the objects being prefetched.
|
protected Collection<String> |
resultPaths |
distinct, DISTINCT_DEFAULT, DISTINCT_PROPERTY, orderings
qualifier
dataMap, name, root
Constructor and Description |
---|
PrefetchSelectQuery(SelectQuery parentQuery,
String prefetchPath,
ObjRelationship lastPrefetchHint)
Deprecated.
Since 3.1 use another constructor without parentQuery parameter
instead.
|
PrefetchSelectQuery(String prefetchPath,
ObjRelationship lastPrefetchHint)
Creates a new disjoint prefetch select query.
|
Modifier and Type | Method and Description |
---|---|
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()
Deprecated.
since 3.1
|
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)
Deprecated.
since 3.1
|
void |
setPrefetchPath(String prefetchPath)
Sets the prefetchPath.
|
addOrdering, addOrdering, addOrderings, addPrefetch, aliasPathSplits, clearOrderings, clearPrefetches, createQuery, createSQLAction, encodeAsXML, getCacheGroups, getCacheStrategy, getFetchLimit, getFetchOffset, getMetaData, getOrderings, getPageSize, getPrefetchTree, getStatementFetchSize, initWithProperties, isDistinct, isFetchingDataRows, queryWithParameters, queryWithParameters, removeOrdering, removePrefetch, route, setCacheGroups, setCacheStrategy, setDistinct, setFetchingDataRows, setFetchLimit, setFetchOffset, setPageSize, setPrefetchTree, setStatementFetchSize
andQualifier, getQualifier, orQualifier, setQualifier
acceptVisitor, getDataMap, getName, getRoot, setDataMap, setName, setRoot, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDataMap, getName
acceptVisitor
@Deprecated protected SelectQuery parentQuery
protected String prefetchPath
protected ObjRelationship lastPrefetchHint
protected Collection<String> resultPaths
public PrefetchSelectQuery(String prefetchPath, ObjRelationship lastPrefetchHint)
@Deprecated public PrefetchSelectQuery(SelectQuery parentQuery, String prefetchPath, ObjRelationship lastPrefetchHint)
public String getPrefetchPath()
public void setPrefetchPath(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(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()
Copyright © 2001–2018 Apache Cayenne. All rights reserved.