public class PrefetchSelectQuery extends SelectQuery<Object>
| Modifier and Type | Field and Description | 
|---|---|
| protected ObjRelationship | lastPrefetchHintStores the last ObjRelationship in the prefetch path. | 
| protected String | prefetchPathThe relationship path from root objects to the objects being prefetched. | 
| protected Collection<String> | resultPaths | 
canReturnScalarValue, columns, distinct, DISTINCT_DEFAULT, DISTINCT_PROPERTY, havingQualifier, orderings, qualifierdataMap, name, rootlogger| 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, setSuppressDistinctgetDataMap, getName, getRoot, setDataMap, setName, setRoot, toStringgetCacheGroup, getCacheGroups, getCacheStrategy, setCacheGroup, setCacheGroups, setCacheStrategy, useLocalCache, useLocalCache, useLocalCache, useSharedCache, useSharedCache, useSharedCacheclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDataMap, getNameprotected 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–2023 Apache Cayenne. All rights reserved.