public class PrefetchSelectQuery extends SelectQuery<Object>
Modifier and Type | Field and Description |
---|---|
protected ObjRelationship |
lastPrefetchHint
Stores the last ObjRelationship in the prefetch path.
|
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(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()
Returns last incoming ObjRelationship in the prefetch relationship chain.
|
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 |
setPrefetchPath(String prefetchPath)
Sets the prefetchPath.
|
addOrdering, addOrdering, addOrderings, addPrefetch, addPrefetch, aliasPathSplits, andQualifier, clearOrderings, clearPrefetches, createQuery, createSQLAction, dataRowQuery, dataRowQuery, dataRowQuery, encodeAsXML, getCacheGroups, getCacheStrategy, getFetchLimit, getFetchOffset, getMetaData, getOrderings, getPageSize, getPrefetchTree, getQualifier, getStatementFetchSize, initWithProperties, isDistinct, isFetchingDataRows, orQualifier, query, query, query, queryWithParameters, queryWithParameters, removeOrdering, removePrefetch, route, setCacheGroups, setCacheStrategy, setDistinct, setFetchingDataRows, setFetchLimit, setFetchOffset, setPageSize, setPrefetchTree, setQualifier, setStatementFetchSize, useLocalCache, useSharedCache
acceptVisitor, getDataMap, getName, getRoot, setDataMap, setName, setRoot, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDataMap, getName
acceptVisitor
protected String prefetchPath
protected ObjRelationship lastPrefetchHint
protected Collection<String> resultPaths
public PrefetchSelectQuery(String prefetchPath, ObjRelationship lastPrefetchHint)
public String getPrefetchPath()
public void setPrefetchPath(String prefetchPath)
prefetchPath
- The prefetchPath to setpublic 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–2015 Apache Cayenne. All rights reserved.