本文整理了Java中org.datanucleus.store.query.Query.getFetchPlan
方法的一些代码示例,展示了Query.getFetchPlan
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getFetchPlan
方法的具体详情如下:
包路径:org.datanucleus.store.query.Query
类名称:Query
方法名:getFetchPlan
暂无
代码示例来源:origin: org.datanucleus/datanucleus-api-jdo
/**
* Accessor for the fetch plan to use.
* @return The fetch plan
*/
public FetchPlan getFetchPlan()
{
assertIsOpen();
if (fetchPlan == null)
{
// Not yet assigned so give a JDO wrapper to the underlying FetchPlan
fetchPlan = new JDOFetchPlan(query.getFetchPlan());
}
return fetchPlan;
}
代码示例来源:origin: org.datanucleus/datanucleus-rdbms
int fetchSize = query.getFetchPlan().getFetchSize();
if (!moreResultSetRows)
代码示例来源:origin: org.datanucleus/datanucleus-rdbms
public void initialise()
{
if (resultsObjsByIndex != null)
{
// Caching results so load up any result objects needed right now
int fetchSize = query.getFetchPlan().getFetchSize();
if (fetchSize == FetchPlan.FETCH_SIZE_GREEDY)
{
// "greedy" mode, so load all results now
loadObjects(startIndex, -1);
// Cache the query results
cacheQueryResults();
}
else if (fetchSize > 0)
{
// Load up the first "fetchSize" objects now
loadObjects(startIndex, fetchSize);
}
}
}
代码示例来源:origin: org.datanucleus/datanucleus-rdbms
if (query.getFetchPlan().getFetchSize() > 0)
fetchSize = query.getFetchPlan().getFetchSize();
代码示例来源:origin: org.datanucleus/datanucleus-mongodb
int[] fpMembers = q.getFetchPlan().getFetchPlanForClass(rootCmd).getMemberNumbers();
BasicDBObject fieldsSelection = new BasicDBObject();
if (fpMembers != null && fpMembers.length > 0)
代码示例来源:origin: org.datanucleus/datanucleus-rdbms
null, null, candidateCmd, query.isSubclasses(), query.getFetchPlan(), ec, query.getParsedImports(), options, query.getExtensions());
sqlMapper.compile();
null, null, candidateCmd, query.isSubclasses(), query.getFetchPlan(), ec, query.getParsedImports(), options, query.getExtensions());
sqlMapper.compile();
内容来源于网络,如有侵权,请联系作者删除!