org.datanucleus.store.query.Query.getInputParameters()方法的使用及代码示例

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

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

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());
 }
}

相关文章