public class QueryMetadataProxy extends Object implements QueryMetadata
Modifier and Type | Field and Description |
---|---|
protected QueryMetadata |
mdDelegate |
CACHE_GROUPS_PROPERTY, CACHE_STRATEGY_PROPERTY, FETCH_LIMIT_DEFAULT, FETCH_LIMIT_PROPERTY, FETCH_OFFSET_DEFAULT, FETCH_OFFSET_PROPERTY, FETCHING_DATA_ROWS_DEFAULT, FETCHING_DATA_ROWS_PROPERTY, PAGE_SIZE_DEFAULT, PAGE_SIZE_PROPERTY, STATEMENT_FETCH_SIZE_DEFAULT, STATEMENT_FETCH_SIZE_PROPERTY
Modifier | Constructor and Description |
---|---|
protected |
QueryMetadataProxy(QueryMetadata mdDelegate) |
Modifier and Type | Method and Description |
---|---|
String |
getCacheGroup()
Returns an optional cache "group".
|
String[] |
getCacheGroups()
Deprecated.
|
String |
getCacheKey()
Returns a String that uniquely identifies this query for the purposes of result
caching.
|
QueryCacheStrategy |
getCacheStrategy()
Returns a caching strategy for this query.
|
ClassDescriptor |
getClassDescriptor() |
DataMap |
getDataMap()
Returns a DataMap associated with a query or null if no such DataMap exists.
|
DbEntity |
getDbEntity()
Returns a DbEntity associated with a query or null if no such entity exists.
|
int |
getFetchLimit()
Returns the limit on the maximum number of records that can be returned by this
query.
|
int |
getFetchOffset()
Specifies a start of a range when fetching a subset of records.
|
ObjEntity |
getObjEntity()
Returns an ObjEntity associated with a query or null if no such entity exists.
|
Query |
getOrginatingQuery()
Deprecated.
|
Query |
getOriginatingQuery()
Returns a query that originated this query.
|
int |
getPageSize()
Returns query page size.
|
Map<String,String> |
getPathSplitAliases()
Returns a map of aliases vs.
|
PrefetchTreeNode |
getPrefetchTree()
Returns a root node of prefetch tree used by this query, or null of no prefetches
are configured.
|
Procedure |
getProcedure()
Returns a Procedure associated with a query or null if no such procedure exists.
|
List<Object> |
getResultSetMapping()
Returns an optional list of result set mapping hints.
|
int |
getStatementFetchSize() |
boolean |
isFetchingDataRows()
Returns
true if this query should produce a list of data rows as
opposed to DataObjects, false for DataObjects. |
boolean |
isRefreshingObjects()
Returns
true if the query results should replace any currently cached
values, returns false otherwise. |
boolean |
isSingleResultSetMapping() |
boolean |
isSuppressingDistinct() |
protected QueryMetadata mdDelegate
protected QueryMetadataProxy(QueryMetadata mdDelegate)
@Deprecated public String[] getCacheGroups()
QueryMetadata
getCacheGroups
in interface QueryMetadata
QueryMetadata.getCacheGroup()
public String getCacheGroup()
QueryMetadata
getCacheGroup
in interface QueryMetadata
public String getCacheKey()
QueryMetadata
getCacheKey
in interface QueryMetadata
public QueryCacheStrategy getCacheStrategy()
QueryMetadata
getCacheStrategy
in interface QueryMetadata
public ClassDescriptor getClassDescriptor()
getClassDescriptor
in interface QueryMetadata
public DataMap getDataMap()
QueryMetadata
getDataMap
in interface QueryMetadata
public DbEntity getDbEntity()
QueryMetadata
getDbEntity
in interface QueryMetadata
public int getFetchLimit()
QueryMetadata
getFetchLimit
in interface QueryMetadata
public int getFetchOffset()
QueryMetadata
getFetchOffset
in interface QueryMetadata
public ObjEntity getObjEntity()
QueryMetadata
getObjEntity
in interface QueryMetadata
@Deprecated public Query getOrginatingQuery()
getOrginatingQuery
in interface QueryMetadata
public Query getOriginatingQuery()
QueryMetadata
getOriginatingQuery
in interface QueryMetadata
public int getPageSize()
QueryMetadata
getPageSize
in interface QueryMetadata
public PrefetchTreeNode getPrefetchTree()
QueryMetadata
getPrefetchTree
in interface QueryMetadata
public Map<String,String> getPathSplitAliases()
QueryMetadata
getPathSplitAliases
in interface QueryMetadata
public Procedure getProcedure()
QueryMetadata
getProcedure
in interface QueryMetadata
public List<Object> getResultSetMapping()
QueryMetadata
EntityResultSegment
or ScalarResultSegment
. The returned
list can be null.getResultSetMapping
in interface QueryMetadata
public boolean isSingleResultSetMapping()
isSingleResultSetMapping
in interface QueryMetadata
QueryMetadata.getResultSetMapping()
public boolean isFetchingDataRows()
QueryMetadata
true
if this query should produce a list of data rows as
opposed to DataObjects, false
for DataObjects. This is a hint to
QueryEngine executing this query.isFetchingDataRows
in interface QueryMetadata
public boolean isRefreshingObjects()
QueryMetadata
true
if the query results should replace any currently cached
values, returns false
otherwise. If QueryMetadata.isFetchingDataRows()
returns true
, this setting is not applicable and has no effect.isRefreshingObjects
in interface QueryMetadata
public int getStatementFetchSize()
getStatementFetchSize
in interface QueryMetadata
public boolean isSuppressingDistinct()
isSuppressingDistinct
in interface QueryMetadata
Copyright © 2001–2018 Apache Cayenne. All rights reserved.