public class EbeanQuery<MODEL_TYPE> extends Object implements io.ebean.Query<MODEL_TYPE>, act.db.Dao.Query<MODEL_TYPE,EbeanQuery<MODEL_TYPE>>
| Modifier and Type | Field and Description |
|---|---|
protected Class<MODEL_TYPE> |
modelType |
| Constructor and Description |
|---|
EbeanQuery() |
EbeanQuery(EbeanDao dao,
Class<MODEL_TYPE> modelType) |
protected Class<MODEL_TYPE> modelType
public EbeanQuery()
public EbeanQuery(EbeanDao dao, Class<MODEL_TYPE> modelType)
public io.ebean.Query<MODEL_TYPE> rawQuery()
public EbeanQuery<MODEL_TYPE> asOf(Timestamp timestamp)
asOf in interface io.ebean.Query<MODEL_TYPE>public <A> A findSingleAttribute()
findSingleAttribute in interface io.ebean.Query<MODEL_TYPE>public List<io.ebean.Version<MODEL_TYPE>> findVersions()
findVersions in interface io.ebean.Query<MODEL_TYPE>public List<io.ebean.Version<MODEL_TYPE>> findVersionsBetween(Timestamp timestamp, Timestamp timestamp1)
findVersionsBetween in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> apply(io.ebean.FetchPath fetchPath)
apply in interface io.ebean.Query<MODEL_TYPE>public io.ebean.ExpressionList<MODEL_TYPE> text()
text in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setUseDocStore(boolean b)
setUseDocStore in interface io.ebean.Query<MODEL_TYPE>public io.ebean.Query<MODEL_TYPE> setBeanCacheMode(io.ebean.CacheMode beanCacheMode)
setBeanCacheMode in interface io.ebean.Query<MODEL_TYPE>public io.ebean.Query<MODEL_TYPE> setProfileLocation(io.ebean.ProfileLocation profileLocation)
setProfileLocation in interface io.ebean.Query<MODEL_TYPE>public int update()
update in interface io.ebean.Query<MODEL_TYPE>public int delete()
delete in interface io.ebean.Query<MODEL_TYPE>public Object getId()
getId in interface io.ebean.Query<MODEL_TYPE>public Class<MODEL_TYPE> getBeanType()
getBeanType in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setDisableLazyLoading(boolean b)
setDisableLazyLoading in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> offset(int pos)
offset in interface act.db.Dao.Query<MODEL_TYPE,EbeanQuery<MODEL_TYPE>>public EbeanQuery<MODEL_TYPE> limit(int limit)
limit in interface act.db.Dao.Query<MODEL_TYPE,EbeanQuery<MODEL_TYPE>>public EbeanQuery<MODEL_TYPE> orderBy(String... fieldList)
orderBy in interface act.db.Dao.Query<MODEL_TYPE,EbeanQuery<MODEL_TYPE>>public MODEL_TYPE first()
first in interface act.db.Dao.Query<MODEL_TYPE,EbeanQuery<MODEL_TYPE>>public EbeanQuery<MODEL_TYPE> fetchQuery(String path, String fetchProperties)
fetchQuery in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> fetchLazy(String path, String fetchProperties)
fetchLazy in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> fetchQuery(String path)
fetchQuery in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> fetchLazy(String path)
fetchLazy in interface io.ebean.Query<MODEL_TYPE>public Iterable<MODEL_TYPE> fetch()
fetch in interface act.db.Dao.Query<MODEL_TYPE,EbeanQuery<MODEL_TYPE>>public long count()
count in interface act.db.Dao.Query<MODEL_TYPE,EbeanQuery<MODEL_TYPE>>public EbeanQuery<MODEL_TYPE> setIncludeSoftDeletes()
setIncludeSoftDeletes in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> asDraft()
asDraft in interface io.ebean.Query<MODEL_TYPE>public boolean isAutoTuned()
isAutoTuned in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setAutoTune(boolean b)
setAutoTune in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setDisableReadAuditing()
setDisableReadAuditing in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setUseQueryCache(io.ebean.CacheMode useQueryCache)
setUseQueryCache in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setProfileId(int i)
setProfileId in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setRawSql(io.ebean.RawSql rawSql)
setRawSql in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setDocIndexName(String indexName)
setDocIndexName in interface io.ebean.Query<MODEL_TYPE>public void findEach(Consumer<MODEL_TYPE> consumer)
findEach in interface io.ebean.Query<MODEL_TYPE>public void findEachWhile(Predicate<MODEL_TYPE> consumer)
findEachWhile in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> forUpdate()
forUpdate in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> forUpdateNoWait()
forUpdateNoWait in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> forUpdateSkipLocked()
forUpdateSkipLocked in interface io.ebean.Query<MODEL_TYPE>public io.ebean.Query.ForUpdate getForUpdateMode()
getForUpdateMode in interface io.ebean.Query<MODEL_TYPE>public void cancel()
cancel in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> copy()
copy in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setPersistenceContextScope(io.ebean.PersistenceContextScope scope)
setPersistenceContextScope in interface io.ebean.Query<MODEL_TYPE>public io.ebean.ExpressionFactory getExpressionFactory()
getExpressionFactory in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setLazyLoadBatchSize(int lazyLoadBatchSize)
setLazyLoadBatchSize in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> select(String fetchProperties)
select in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> fetch(String path, String fetchProperties)
fetch in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> fetch(String assocProperty, String fetchProperties, io.ebean.FetchConfig fetchConfig)
fetch in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> fetch(String path)
fetch in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> fetch(String path, io.ebean.FetchConfig joinConfig)
fetch in interface io.ebean.Query<MODEL_TYPE>public <A> List<A> findIds()
findIds in interface io.ebean.Query<MODEL_TYPE>public io.ebean.QueryIterator<MODEL_TYPE> findIterate()
findIterate in interface io.ebean.Query<MODEL_TYPE>public boolean isCountDistinct()
isCountDistinct in interface io.ebean.Query<MODEL_TYPE>public io.ebean.Query<MODEL_TYPE> setCountDistinct(io.ebean.CountDistinctOrder countDistinctOrder)
setCountDistinct in interface io.ebean.Query<MODEL_TYPE>public io.ebean.QueryType getQueryType()
getQueryType in interface io.ebean.Query<MODEL_TYPE>public io.ebean.Query<MODEL_TYPE> orderById(boolean b)
orderById in interface io.ebean.Query<MODEL_TYPE>public void consume(org.osgl.Lang.Visitor<MODEL_TYPE> visitor)
public List<MODEL_TYPE> findList()
findList in interface io.ebean.Query<MODEL_TYPE>public Set<MODEL_TYPE> findSet()
findSet in interface io.ebean.Query<MODEL_TYPE>public <K> Map<K,MODEL_TYPE> findMap()
findMap in interface io.ebean.Query<MODEL_TYPE>public <A> List<A> findSingleAttributeList()
findSingleAttributeList in interface io.ebean.Query<MODEL_TYPE>public int findCount()
findCount in interface io.ebean.Query<MODEL_TYPE>public MODEL_TYPE findOne()
findOne in interface io.ebean.Query<MODEL_TYPE>public Optional<MODEL_TYPE> findOneOrEmpty()
findOneOrEmpty in interface io.ebean.Query<MODEL_TYPE>public io.ebean.FutureRowCount<MODEL_TYPE> findFutureCount()
findFutureCount in interface io.ebean.Query<MODEL_TYPE>public io.ebean.FutureIds<MODEL_TYPE> findFutureIds()
findFutureIds in interface io.ebean.Query<MODEL_TYPE>public io.ebean.FutureList<MODEL_TYPE> findFutureList()
findFutureList in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setParameter(String name, Object value)
setParameter in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setParameter(int position, Object value)
setParameter in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setId(Object id)
setId in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> where(io.ebean.Expression expression)
where in interface io.ebean.Query<MODEL_TYPE>public io.ebean.ExpressionList<MODEL_TYPE> where()
where in interface io.ebean.Query<MODEL_TYPE>public io.ebean.ExpressionList<MODEL_TYPE> filterMany(String propertyName)
filterMany in interface io.ebean.Query<MODEL_TYPE>public io.ebean.ExpressionList<MODEL_TYPE> having()
having in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> having(io.ebean.Expression addExpressionToHaving)
having in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> orderBy(String orderByClause)
orderBy in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> order(String orderByClause)
order in interface io.ebean.Query<MODEL_TYPE>public io.ebean.OrderBy<MODEL_TYPE> order()
order in interface io.ebean.Query<MODEL_TYPE>public io.ebean.OrderBy<MODEL_TYPE> orderBy()
orderBy in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setOrder(io.ebean.OrderBy<MODEL_TYPE> orderBy)
setOrder in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setOrderBy(io.ebean.OrderBy<MODEL_TYPE> orderBy)
setOrderBy in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setDistinct(boolean isDistinct)
setDistinct in interface io.ebean.Query<MODEL_TYPE>public int getFirstRow()
getFirstRow in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setFirstRow(int firstRow)
setFirstRow in interface io.ebean.Query<MODEL_TYPE>public int getMaxRows()
getMaxRows in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setMaxRows(int maxRows)
setMaxRows in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setMapKey(String mapKey)
setMapKey in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setUseCache(boolean useBeanCache)
setUseCache in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setUseQueryCache(boolean useQueryCache)
setUseQueryCache in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setReadOnly(boolean readOnly)
setReadOnly in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setLoadBeanCache(boolean loadBeanCache)
setLoadBeanCache in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setTimeout(int secs)
setTimeout in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setBufferFetchSizeHint(int fetchSize)
setBufferFetchSizeHint in interface io.ebean.Query<MODEL_TYPE>public String getGeneratedSql()
getGeneratedSql in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> setForUpdate(boolean forUpdate)
setForUpdate in interface io.ebean.Query<MODEL_TYPE>public boolean isForUpdate()
isForUpdate in interface io.ebean.Query<MODEL_TYPE>public EbeanQuery<MODEL_TYPE> alias(String alias)
alias in interface io.ebean.Query<MODEL_TYPE>public io.ebean.PagedList<MODEL_TYPE> findPagedList()
findPagedList in interface io.ebean.Query<MODEL_TYPE>public Set<String> validate()
validate in interface io.ebean.Query<MODEL_TYPE>public <D> io.ebean.DtoQuery<D> asDto(Class<D> aClass)
asDto in interface io.ebean.Query<MODEL_TYPE>public io.ebean.Query<MODEL_TYPE> setLabel(String s)
setLabel in interface io.ebean.Query<MODEL_TYPE>Copyright © 2015–2018 ActFramework. All rights reserved.