本文整理了Java中org.datanucleus.store.query.Query.getRangeFromIncl
方法的一些代码示例,展示了Query.getRangeFromIncl
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getRangeFromIncl
方法的具体详情如下:
包路径:org.datanucleus.store.query.Query
类名称:Query
方法名:getRangeFromIncl
暂无
代码示例来源:origin: org.datanucleus/datanucleus-java5
/**
* The position of the first result the query object was set to retrieve.
* Returns 0 if setFirstResult was not applied to the query object.
* @return position of first result
*/
public int getFirstResult()
{
long queryMin = query.getRangeFromIncl();
return (int)queryMin;
}
代码示例来源:origin: org.datanucleus/datanucleus-jpa
/**
* The position of the first result the query object was set to retrieve.
* Returns 0 if setFirstResult was not applied to the query object.
* @return position of first result
*/
public int getFirstResult()
{
return (int)query.getRangeFromIncl();
}
代码示例来源:origin: forcedotcom/java-sdk
/**
* See if there is a limit set and if we can use SOQL to execute the query.
*
* @param query Query
* @return the limit type of Soql, Java, or None
*/
public static LimitType getLimitType(Query query) {
if (query.getRangeFromIncl() > 0 || (query.getRangeToExcl() > 0 && query.getRangeToExcl() < Long.MAX_VALUE)) {
if (query.getRangeFromIncl() == 0) return LimitType.Soql;
return LimitType.Java;
}
return LimitType.None;
}
代码示例来源:origin: com.force.sdk/force-jpa
/**
* See if there is a limit set and if we can use SOQL to execute the query.
*
* @param query Query
* @return the limit type of Soql, Java, or None
*/
public static LimitType getLimitType(Query query) {
if (query.getRangeFromIncl() > 0 || (query.getRangeToExcl() > 0 && query.getRangeToExcl() < Long.MAX_VALUE)) {
if (query.getRangeFromIncl() == 0) return LimitType.Soql;
return LimitType.Java;
}
return LimitType.None;
}
代码示例来源:origin: org.datanucleus/datanucleus-java5
/**
* The maximum number of results the query object was set to retrieve.
* Returns Integer.MAX_VALUE if setMaxResults was not applied to the query object.
* @return maximum number of results
*/
public int getMaxResults()
{
long queryMin = query.getRangeFromIncl();
long queryMax = query.getRangeToExcl();
long max = queryMax - queryMin;
if (max > Integer.MAX_VALUE)
{
return Integer.MAX_VALUE;
}
return (int)max;
}
代码示例来源:origin: org.datanucleus/datanucleus-jpa
/**
* The maximum number of results the query object was set to retrieve.
* Returns Integer.MAX_VALUE if setMaxResults was not applied to the query object.
* @return maximum number of results
*/
public int getMaxResults()
{
long queryMin = query.getRangeFromIncl();
long queryMax = query.getRangeToExcl();
long max = queryMax - queryMin;
if (max > Integer.MAX_VALUE)
{
return Integer.MAX_VALUE;
}
return (int)max;
}
代码示例来源:origin: org.datanucleus/datanucleus-rdbms
size = (int) (query.getRangeToExcl()-query.getRangeFromIncl());
hasMoreResults = false;
size = (int) (index - query.getRangeFromIncl());
代码示例来源:origin: org.datanucleus/datanucleus-rdbms
theSize = (int) (query.getRangeToExcl() - query.getRangeFromIncl());
theSize = (int) (theSize - query.getRangeFromIncl());
代码示例来源:origin: org.datanucleus/datanucleus-rdbms
for (int i=0;i<query.getRangeFromIncl();i++)
代码示例来源:origin: org.datanucleus/datanucleus-rdbms
startIndex = (int) query.getRangeFromIncl();
代码示例来源:origin: org.datanucleus/datanucleus-rdbms
int maxElements = (int)(query.getRangeToExcl() - query.getRangeFromIncl());
if (resultObjs.size() == maxElements)
代码示例来源:origin: org.datanucleus/datanucleus-neo4j
rangeFrom = (query.getRangeFromIncl() > 0 ? query.getRangeFromIncl() : null);
rangeTo = (query.getRangeToExcl() != Long.MAX_VALUE ? query.getRangeToExcl() : null);
if (rangeFrom != null || rangeTo != null)
内容来源于网络,如有侵权,请联系作者删除!