public abstract class AbstractQueryExecutorImpl<T> extends Object implements JpaQueryExecutor<T>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cached |
protected javax.persistence.EntityManager |
em |
protected Set<MetaAttributePath> |
fetchPaths |
protected int |
limit |
protected MetaDataObject |
meta |
protected int |
numAutoSelections |
protected int |
offset |
protected Map<String,Integer> |
selectionBindings |
| Constructor and Description |
|---|
AbstractQueryExecutorImpl(javax.persistence.EntityManager em,
MetaDataObject meta,
int numAutoSelections,
Map<String,Integer> selectionBindings) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyFetchPaths(javax.persistence.Query criteriaQuery) |
protected static List<Object[]> |
enforceDistinct(List<?> list) |
List<T> |
executeQuery() |
JpaQueryExecutor<T> |
fetch(List<String> attrPath) |
Class<T> |
getEntityClass() |
MetaDataObject |
getMeta() |
List<T> |
getResultList() |
abstract javax.persistence.Query |
getTypedQuery() |
T |
getUniqueResult(boolean nullable) |
protected abstract boolean |
hasManyRootsFetchesOrJoins() |
protected abstract boolean |
isCompoundSelection() |
protected abstract boolean |
isDistinct() |
JpaQueryExecutor<T> |
setCached(boolean cached) |
JpaQueryExecutor<T> |
setLimit(int limit) |
JpaQueryExecutor<T> |
setOffset(int offset) |
protected javax.persistence.Query |
setupQuery(javax.persistence.Query typedQuery) |
JpaQueryExecutor<T> |
setWindow(int offset,
int limit) |
protected List<Object> |
truncateTuples(List<?> list,
int numToRemove) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetResultTuples, getTotalRowCountprotected int offset
protected int limit
protected boolean cached
protected javax.persistence.EntityManager em
protected int numAutoSelections
protected Set<MetaAttributePath> fetchPaths
protected MetaDataObject meta
public AbstractQueryExecutorImpl(javax.persistence.EntityManager em,
MetaDataObject meta,
int numAutoSelections,
Map<String,Integer> selectionBindings)
public MetaDataObject getMeta()
public JpaQueryExecutor<T> fetch(List<String> attrPath)
fetch in interface JpaQueryExecutor<T>public JpaQueryExecutor<T> setCached(boolean cached)
setCached in interface JpaQueryExecutor<T>public JpaQueryExecutor<T> setOffset(int offset)
setOffset in interface JpaQueryExecutor<T>public JpaQueryExecutor<T> setLimit(int limit)
setLimit in interface JpaQueryExecutor<T>public JpaQueryExecutor<T> setWindow(int offset, int limit)
setWindow in interface JpaQueryExecutor<T>public List<T> getResultList()
getResultList in interface JpaQueryExecutor<T>protected abstract boolean isCompoundSelection()
public T getUniqueResult(boolean nullable)
getUniqueResult in interface JpaQueryExecutor<T>public Class<T> getEntityClass()
getEntityClass in interface JpaQueryExecutor<T>protected void applyFetchPaths(javax.persistence.Query criteriaQuery)
public abstract javax.persistence.Query getTypedQuery()
protected javax.persistence.Query setupQuery(javax.persistence.Query typedQuery)
protected abstract boolean hasManyRootsFetchesOrJoins()
protected abstract boolean isDistinct()
Copyright © 2017. All Rights Reserved.