本文整理了Java中io.ebean.Query.findVersions
方法的一些代码示例,展示了Query.findVersions
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.findVersions
方法的具体详情如下:
包路径:io.ebean.Query
类名称:Query
方法名:findVersions
[英]Return versions of a @History entity bean.
Note that this query will work against view based history implementations but not sql2011 standards based implementations that require a start and end timestamp to be specified.
Generally this query is expected to be a find by id or unique predicates query. It will execute the query against the history returning the versions of the bean.
[中]返回@History实体bean的版本。
请注意,此查询适用于基于视图的历史实现,但不适用于需要指定开始和结束时间戳的基于sql2011标准的实现。
通常,该查询应为按id查找或唯一谓词查询。它将对返回bean版本的历史记录执行查询。
代码示例来源:origin: ebean-orm/ebean
@Override
public List<Version<T>> findVersions() {
return query.findVersions();
}
代码示例来源:origin: io.ebean/ebean
@Override
public List<Version<T>> findVersions() {
return query.findVersions();
}
代码示例来源:origin: org.actframework/act-ebean
@Override
public List<Version<MODEL_TYPE>> findVersions() {
return qReadOnly.findVersions();
}
代码示例来源:origin: org.actframework/act-ebean2
@Override
public List<Version<MODEL_TYPE>> findVersions() {
return q.findVersions();
}
代码示例来源:origin: io.ebean/ebean-querybean
/**
* Return versions of a @History entity bean.
* <p>
* Generally this query is expected to be a find by id or unique predicates query.
* It will execute the query against the history returning the versions of the bean.
* </p>
*/
@Nonnull
public List<Version<T>> findVersions() {
return query.findVersions();
}
代码示例来源:origin: icode/ameba
/**
* {@inheritDoc}
*/
@Override
public List<Version<T>> findVersions() {
return query().findVersions();
}
代码示例来源:origin: icode/ameba
/**
* <p>fetchHistory.</p>
*
* @param id a URI_ID object.
* @return a {@link javax.ws.rs.core.Response} object.
* @throws java.lang.Exception if any.
*/
public Response fetchHistory(@PathParam("id") URI_ID id) throws Exception {
final MODEL_ID mId = tryConvertId(id);
matchedFetchHistory(mId);
final Query<MODEL> query = server.find(modelType);
defaultFindOrderBy(query);
final Ref<FutureRowCount> rowCount = Refs.emptyRef();
Object entity = executeTx(t -> {
configDefaultQuery(query);
configFetchHistoryQuery(query, mId);
applyUriQuery(query, false);
applyPageConfig(query);
List<Version<MODEL>> list = query.findVersions();
rowCount.set(fetchRowCount(query));
return processFetchedHistoryModelList(list, mId);
});
if (isEmptyEntity(entity)) {
return Response.noContent().build();
}
Response response = Response.ok(entity).build();
applyRowCountHeader(response.getHeaders(), query, rowCount.get());
return response;
}
内容来源于网络,如有侵权,请联系作者删除!