public abstract class FluentSelect<T> extends IndirectQuery implements Select<T>
ObjectSelect and ColumnSelect| Modifier and Type | Field and Description |
|---|---|
protected String |
cacheGroup |
protected QueryCacheStrategy |
cacheStrategy |
protected String |
dbEntityName |
protected String |
entityName |
protected Class<?> |
entityType |
protected int |
limit |
protected int |
offset |
protected Collection<Ordering> |
orderings |
protected int |
pageSize |
protected PrefetchTreeNode |
prefetches |
protected int |
statementFetchSize |
protected Expression |
where |
dataMap, lastResolver, name, replacementQuery| Modifier | Constructor and Description |
|---|---|
protected |
FluentSelect() |
| Modifier and Type | Method and Description |
|---|---|
ResultBatchIterator<T> |
batchIterator(ObjectContext context,
int size)
Creates a ResultBatchIterator based on the provided context and batch
size.
|
protected Query |
createReplacementQuery(EntityResolver resolver)
Translates self to a SelectQuery.
|
String |
getCacheGroup() |
QueryCacheStrategy |
getCacheStrategy() |
String |
getDbEntityName() |
String |
getEntityName() |
Class<?> |
getEntityType() |
int |
getLimit() |
int |
getOffset() |
Collection<Ordering> |
getOrderings() |
int |
getPageSize() |
PrefetchTreeNode |
getPrefetches() |
int |
getStatementFetchSize() |
Expression |
getWhere()
Returns a WHERE clause Expression of this query.
|
void |
iterate(ObjectContext context,
ResultIteratorCallback<T> callback)
Creates a ResultIterator based on the provided context and passes it to a
callback for processing.
|
ResultIterator<T> |
iterator(ObjectContext context)
Creates a ResultIterator based on the provided context.
|
List<T> |
select(ObjectContext context)
Selects objects using provided context.
|
T |
selectOne(ObjectContext context)
Selects a single object using provided context.
|
createSQLAction, getDataMap, getMetaData, getName, getReplacementQuery, route, setDataMap, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitselectFirstcreateSQLAction, getDataMap, getMetaData, getName, routeprotected Class<?> entityType
protected String entityName
protected String dbEntityName
protected Expression where
protected Collection<Ordering> orderings
protected PrefetchTreeNode prefetches
protected int limit
protected int offset
protected int pageSize
protected int statementFetchSize
protected QueryCacheStrategy cacheStrategy
protected String cacheGroup
protected Query createReplacementQuery(EntityResolver resolver)
createReplacementQuery in class IndirectQuerypublic String getCacheGroup()
public QueryCacheStrategy getCacheStrategy()
public int getStatementFetchSize()
public int getPageSize()
public int getLimit()
public int getOffset()
public Class<?> getEntityType()
public String getEntityName()
public String getDbEntityName()
public Expression getWhere()
public Collection<Ordering> getOrderings()
public PrefetchTreeNode getPrefetches()
public List<T> select(ObjectContext context)
SelectEssentially the inversion of "ObjectContext.select(Select)".
public T selectOne(ObjectContext context)
SelectCayenneRuntimeException is thrown.
Essentially the inversion of "ObjectContext.selectOne(Select)".
public void iterate(ObjectContext context, ResultIteratorCallback<T> callback)
SelectEssentially the inversion of "ObjectContext.iterate(Select, ResultIteratorCallback)".
public ResultIterator<T> iterator(ObjectContext context)
SelectSelect.iterate(ObjectContext, ResultIteratorCallback) as an
alternative.
Essentially the inversion of "ObjectContext.iterator(Select)".
public ResultBatchIterator<T> batchIterator(ObjectContext context, int size)
SelectbatchIterator in interface Select<T>Copyright © 2001–2023 Apache Cayenne. All rights reserved.