本文整理了Java中io.ebean.Query.findList
方法的一些代码示例,展示了Query.findList
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.findList
方法的具体详情如下:
包路径:io.ebean.Query
类名称:Query
方法名:findList
[英]Execute the query returning the list of objects.
This query will execute against the EbeanServer that was used to create it.
List customers =
[中]执行返回对象列表的查询。
此查询将针对用于创建它的EbeanServer执行。
List customers =
代码示例来源:origin: ebean-orm/ebean
@Override
public List<T> findList() {
return query.findList();
}
代码示例来源:origin: ebean-orm/ebean
@Override
public List<T> findList() {
return rootQuery.findList();
}
代码示例来源:origin: ebean-orm/ebean
/**
* Retrieves all entities of the given type.
*/
@Nonnull
public List<T> all() {
return query().findList();
}
代码示例来源:origin: ebean-orm/ebean
/**
* Retrieves all entities of the given type.
*/
@Nonnull
public List<T> findAll() {
return query().findList();
}
代码示例来源:origin: io.github.hexagonframework.data/spring-data-ebean
@SuppressWarnings("unchecked")
<E> List<E> findList() {
if (queryType == QUERY) {
return ((Query<E>) queryInstance).findList();
}
throw new IllegalArgumentException("query not supported!");
}
代码示例来源:origin: ebean-orm-examples/example-springboot
public List<Content> getContent() {
return server.find(Content.class).findList();
}
代码示例来源:origin: io.github.hexagonframework.data/spring-data-ebean
@Override
public <S extends T> List<S> findAll(Example<S> example, Sort sort) {
return queryByExample(null, example, sort)
.findList();
}
代码示例来源:origin: io.github.hexagonframework.data/spring-data-ebean
@Override
public List<T> findAll() {
return query()
.findList();
}
代码示例来源:origin: io.github.hexagonframework.data/spring-data-ebean
@Override
public List<T> findAll(String fetchPath) {
return query(fetchPath)
.findList();
}
代码示例来源:origin: io.github.hexagonframework.data/spring-data-ebean
@Override
public List<T> findAll(String fetchPath, Sort sort) {
return query(fetchPath, sort)
.findList();
}
代码示例来源:origin: nz.net.osnz.common/common-ebean
/**
* Find a list of entity by passing a closure that used to set up query
*
* @param consumer is a closure to set up the query
* @return a list of entity
*/
public List<T> findAllBy(Consumer<Query> consumer) {
return buildQuery(consumer).findList();
}
代码示例来源:origin: io.github.hexagonframework.data/spring-data-ebean
@Override
public <S extends T> List<S> findAll(String fetchPath, Example<S> example) {
return queryByExample(fetchPath, example)
.findList();
}
代码示例来源:origin: io.github.hexagonframework.data/spring-data-ebean
@Override
public <S extends T> List<S> findAll(String fetchPath, Example<S> example, Sort sort) {
return queryByExample(fetchPath, example, sort)
.findList();
}
代码示例来源:origin: io.ebean/ebean
/**
* Retrieves all entities of the given type.
*/
@Nonnull
public List<T> findAll() {
return query().findList();
}
代码示例来源:origin: io.ebean/ebean
/**
* Retrieves all entities of the given type.
*/
@Nonnull
public List<T> all() {
return query().findList();
}
代码示例来源:origin: org.actframework/act-ebean
@Override
public MODEL_TYPE first() {
List<MODEL_TYPE> list = qReadOnly.setMaxRows(1).findList();
return list.isEmpty() ? null : list.get(0);
}
代码示例来源:origin: hexagonframework/spring-data-ebean
@Override
public List<T> findAll() {
return query()
.findList();
}
代码示例来源:origin: io.github.hexagonframework.data/spring-data-ebean
@SuppressWarnings("unchecked")
<E> Slice<E> findSlice(Pageable pageable) {
List<E> resultList = null;
int pageSize = pageable.getPageSize();
int offset = (int) pageable.getOffset();
if (queryType == QUERY) {
resultList = ((Query<E>) queryInstance).setFirstRow(offset).setMaxRows(pageSize + 1).findList();
boolean hasNext = resultList.size() > pageSize;
return new SliceImpl<E>(hasNext ? resultList.subList(0, pageSize) : resultList, pageable, hasNext);
}
throw new IllegalArgumentException("query not supported!");
}
代码示例来源:origin: io.github.hexagonframework.data/spring-data-ebean
@Override
public List<T> findAll(Sort sort) {
return query()
.setOrder(Converters.convertToEbeanOrderBy(sort))
.findList();
}
代码示例来源:origin: hexagonframework/spring-data-ebean
@Override
public List<T> findAll(Sort sort) {
return query()
.setOrder(Converters.convertToEbeanOrderBy(sort))
.findList();
}
内容来源于网络,如有侵权,请联系作者删除!