com.avaje.ebean.Query.copy()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(0.8k)|赞(0)|评价(0)|浏览(119)

本文整理了Java中com.avaje.ebean.Query.copy方法的一些代码示例,展示了Query.copy的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.copy方法的具体详情如下:
包路径:com.avaje.ebean.Query
类名称:Query
方法名:copy

Query.copy介绍

[英]Return a copy of the query.

This is so that you can use a Query as a "prototype" for creating other query instances. You could create a Query with various where expressions and use that as a "prototype" - using this copy() method to create a new instance that you can then add other expressions then execute.
[中]

代码示例

代码示例来源:origin: org.actframework/act-ebean-java7

@Override
public EbeanQuery<MODEL_TYPE> copy() {
  EbeanQuery<MODEL_TYPE> copy = new EbeanQuery<>();
  copy.q = q.copy();
  copy.qReadOnly = qReadOnly.copy();
  return copy;
}

代码示例来源:origin: com.typesafe.play/play-java-ebean

/**
 * Copies this query.
 */
public Query<T> copy() {
  return query().copy();
}

相关文章