本文整理了Java中com.avaje.ebean.Query.asDraft
方法的一些代码示例,展示了Query.asDraft
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.asDraft
方法的具体详情如下:
包路径:com.avaje.ebean.Query
类名称:Query
方法名:asDraft
[英]Execute the query against the draft set of tables.
[中]对草稿表集执行查询。
代码示例来源:origin: org.actframework/act-ebean-java7
@Override
public EbeanQuery<MODEL_TYPE> asDraft() {
q.asDraft();
qReadOnly.asDraft();
return this;
}
代码示例来源:origin: org.avaje.ebean/ebean
@Override
public Query<T> asDraft() {
return query.asDraft();
}
代码示例来源:origin: org.avaje.ebean/ebean
/**
* Fetch the source beans based on the query.
*/
List<T> fetchSourceBeans(Query<T> query, boolean asDraft) {
desc.draftQueryOptimise(query);
if (asDraft) {
query.asDraft();
}
return server.findList(query, transaction);
}
代码示例来源:origin: org.avaje.ebean/ebean
/**
* Fetch the destination beans that will be published to.
*/
void fetchDestinationBeans(List<T> sourceBeans, boolean asDraft) {
List<Object> ids = getBeanIds(desc, sourceBeans);
Query<T> destQuery = server.find(desc.getBeanType()).where().idIn(ids).query();
if (asDraft) {
destQuery.asDraft();
}
desc.draftQueryOptimise(destQuery);
this.destBeans = server.findMap(destQuery, transaction);
}
内容来源于网络,如有侵权,请联系作者删除!