本文整理了Java中org.datanucleus.store.query.Query.getInputParameters
方法的一些代码示例,展示了Query.getInputParameters
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getInputParameters
方法的具体详情如下:
包路径:org.datanucleus.store.query.Query
类名称:Query
方法名:getInputParameters
暂无
代码示例来源:origin: org.datanucleus/datanucleus-rdbms
protected void cacheQueryResults()
{
if (resultIdsByPosition != null)
{
List ids = new ArrayList();
Iterator<Integer> resultIdPositionIter = resultIdsByPosition.keySet().iterator();
while (resultIdPositionIter.hasNext())
{
Integer position = resultIdPositionIter.next();
Object resultId = resultIdsByPosition.get(position);
ids.add(resultId);
}
query.getQueryManager().addQueryResult(query, query.getInputParameters(), ids);
}
resultIdsByPosition = null;
}
代码示例来源:origin: org.datanucleus/datanucleus-rdbms
/**
* Internal method to close the ResultSet.
*/
protected void closeResults()
{
if (rs == null)
{
// Results already closed
return;
}
// Close ResultSet
super.closeResults();
if (resultIds != null)
{
// Cache the results with the QueryManager
query.getQueryManager().addQueryResult(query, query.getInputParameters(), resultIds);
resultIds = null;
}
// Disable range check since we have now loaded all results
applyRangeChecks = false;
}
代码示例来源:origin: com.google.appengine.orm/datanucleus-appengine
/**
* Method to cache the results (List of the Entity keys) if it has been requested.
*/
protected void cacheQueryResults() {
if (query != null && query.useResultsCaching()) {
lazyResult.resolveAll();
query.getQueryManager().addDatastoreQueryResult(query, query.getInputParameters(), lazyResult.getEntityKeys());
}
}
内容来源于网络,如有侵权,请联系作者删除!