本文整理了Java中javax.jdo.Query.executeList
方法的一些代码示例,展示了Query.executeList
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.executeList
方法的具体详情如下:
包路径:javax.jdo.Query
类名称:Query
方法名:executeList
[英]Method to execute the query where there are (potentially) multiple rows and we are returning the candidate type. Any parameters required should be set prior to calling this method, using one of the setParameters methods.
Calling this method with a result being specified will result in JDOUserException being thrown.
[中]方法执行查询,其中(可能)有多行,我们将返回候选类型。调用此方法之前,应使用setParameters方法之一设置所需的任何参数。
在指定结果的情况下调用此方法将导致抛出JDOUserException。
代码示例来源:origin: apache/hive
List<MSchemaVersion> mSchemaVersions = query.setNamedParameters(parameters).executeList();
if (mSchemaVersions == null || mSchemaVersions.isEmpty()) {
return Collections.emptyList();
代码示例来源:origin: apache/hive
" java.lang.String cat");
query.setOrdering("version descending");
List<MSchemaVersion> mSchemaVersions = query.setParameters(name, dbName, catName).executeList();
pm.retrieveAll(mSchemaVersions);
if (mSchemaVersions == null || mSchemaVersions.isEmpty()) {
代码示例来源:origin: org.apache.hive/hive-standalone-metastore
List<MSchemaVersion> mSchemaVersions = query.setNamedParameters(parameters).executeList();
if (mSchemaVersions == null || mSchemaVersions.isEmpty()) {
return Collections.emptyList();
代码示例来源:origin: org.apache.hive/hive-standalone-metastore
" java.lang.String cat");
query.setOrdering("version descending");
List<MSchemaVersion> mSchemaVersions = query.setParameters(name, dbName, catName).executeList();
pm.retrieveAll(mSchemaVersions);
if (mSchemaVersions == null || mSchemaVersions.isEmpty()) {
内容来源于网络,如有侵权,请联系作者删除!