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 |
canReturnScalarValue, columns, distinct, DISTINCT_DEFAULT, DISTINCT_PROPERTY, havingQualifier, orderings, qualifier
dataMap, name, root
logger
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, andHavingQualifier, andQualifier, batchIterator, canReturnScalarValue, clearOrderings, clearPrefetches, createQuery, createSQLAction, dataRowQuery, dataRowQuery, dataRowQuery, encodeAsXML, getBaseMetaData, getColumns, getFetchLimit, getFetchOffset, getHavingQualifier, getMetaData, getOrderings, getPageSize, getPrefetchTree, getQualifier, getStatementFetchSize, initWithProperties, isDistinct, isFetchingDataRows, iterate, iterator, orHavingQualifier, orQualifier, query, query, query, queryWithParameters, queryWithParameters, removeOrdering, removePrefetch, route, select, selectFirst, selectOne, setCanReturnScalarValue, setColumns, setColumns, setDistinct, setFetchingDataRows, setFetchLimit, setFetchOffset, setHavingQualifier, setPageSize, setPrefetchTree, setQualifier, setStatementFetchSize, setSuppressDistinct
getDataMap, getName, getRoot, setDataMap, setName, setRoot, toString
getCacheGroup, getCacheGroups, getCacheStrategy, setCacheGroup, setCacheGroups, setCacheStrategy, useLocalCache, useLocalCache, useLocalCache, useSharedCache, useSharedCache, useSharedCache
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDataMap, getName
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–2018 Apache Cayenne. All rights reserved.