本文整理了Java中org.intermine.objectstore.query.Query.getLimit
方法的一些代码示例,展示了Query.getLimit
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getLimit
方法的具体详情如下:
包路径:org.intermine.objectstore.query.Query
类名称:Query
方法名:getLimit
[英]Returns the LIMIT parameter for this query.
[中]
代码示例来源:origin: org.intermine/intermine-objectstore
if (q.getLimit() != Integer.MAX_VALUE) {
retval.append(" LIMIT " + q.getLimit());
代码示例来源:origin: intermine/intermine
if (q.getLimit() != Integer.MAX_VALUE) {
retval.append(" LIMIT " + q.getLimit());
代码示例来源:origin: intermine/intermine
.append(state.getHaving())
.append(orderBy);
if ((q.getLimit() != Integer.MAX_VALUE) && (kind == QUERY_SUBQUERY_FROM)) {
retval.append(" LIMIT " + q.getLimit());
代码示例来源:origin: org.intermine/intermine-objectstore
.append(state.getHaving())
.append(orderBy);
if ((q.getLimit() != Integer.MAX_VALUE) && (kind == QUERY_SUBQUERY_FROM)) {
retval.append(" LIMIT " + q.getLimit());
代码示例来源:origin: org.intermine/intermine-objectstore
qopeMap));
newQuery.setDistinct(query.isDistinct());
newQuery.setLimit(query.getLimit());
} catch (NoSuchFieldException e) {
throw new IllegalArgumentException("No such field: " + e.getMessage());
代码示例来源:origin: intermine/intermine
qopeMap));
newQuery.setDistinct(query.isDistinct());
newQuery.setLimit(query.getLimit());
} catch (NoSuchFieldException e) {
throw new IllegalArgumentException("No such field: " + e.getMessage());
代码示例来源:origin: intermine/intermine
/**
* The absence of a proper Query.equals() method means that we
* have to do various tests here. This does rely on constructing
* the query in the tests in the correct form, ie. we will not
* notice that an "OR" ConstraintSet with one SimpleConstraint in
* it is the same as a SimpleConstraint.
*/
public static void assertEquals(String msg, Query q1, Query q2) {
if ((q1 != null) && (q2 != null)) {
msg += ": expected <" + q1.toString() + "> but was <" + q2.toString() + ">";
//msg += ": q1 = " + q1.toString() + ", q2 = " + q2.toString();
// Are the SELECT lists equal?
checkQueryClassLists(msg + ": SELECT lists are not equal", q1.getSelect(), q2.getSelect(), q1, q2);
// Are the FROM lists equal?
checkQueryClassLists(msg + ": FROM lists are not equal", q1.getFrom(), q2.getFrom(), q1, q2);
// Are the constraints equal?
checkConstraints(msg + ": CONSTRAINTS not the same", q1.getConstraint(), q2.getConstraint(), q1, q2);
// Are the ORDER BY lists equal?
checkQueryClassLists(msg + ": ORDER BY lists are not equal", q1.getOrderBy(), q2.getOrderBy(), q1, q2);
Assert.assertEquals(msg + ": LIMIT is the not the same", q1.getLimit(), q2.getLimit());
// Do the toString methods return the same thing?
checkToString(msg + ": toString does not return the same String", q1, q2);
} else if ((q1 == null) && (q2 == null)) {
// They are equal - albeit null.
} else {
Assert.assertNotNull(msg + ": q1 is null, while q2 is not null", q1);
Assert.fail(msg + ": q2 is null, while q1 is not null");
}
}
内容来源于网络,如有侵权,请联系作者删除!