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

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

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

Query.getExtensions介绍

暂无

代码示例

代码示例来源:origin: org.datanucleus/datanucleus-jpa

/**
 * Get the hints and associated values that are in effect for the query instance.
 * @return query hints
 */
public Map getHints()
{
  Map extensions = query.getExtensions();
  Map map = new HashMap();
  if (extensions != null && extensions.size() > 0)
  {
    map.putAll(extensions);
  }
  return map;
}

代码示例来源:origin: org.datanucleus/datanucleus-java5

/**
 * Get the hints and associated values that are in effect for the query instance.
 * @return query hints
 */
@SuppressWarnings("unchecked")
public Map getHints()
{
  Map extensions = query.getExtensions();
  Map map = new HashMap();
  if (extensions != null && extensions.size() > 0)
  {
    map.putAll(extensions);
  }
  return map;
}

代码示例来源:origin: org.datanucleus/datanucleus-api-jdo

@Override
public JDOQLTypedQuery<T> saveAsNamedQuery(String name)
{
  assertIsOpen();
  JDOPersistenceManagerFactory.checkJDOPermission(JDOPermission.GET_METADATA);
  QueryMetaData qmd = new QueryMetaData(name);
  qmd.setLanguage(Query.LANGUAGE_JDOQL);
  Query query = getInternalQuery();
  qmd.setQuery(query.toString());
  qmd.setResultClass(query.getResultClassName());
  qmd.setUnique(query.isUnique());
  Map<String, Object> queryExts = query.getExtensions();
  if (queryExts != null && !queryExts.isEmpty())
  {
    Iterator<Map.Entry<String, Object>> queryExtsIter = queryExts.entrySet().iterator();
    while (queryExtsIter.hasNext())
    {
      Map.Entry<String, Object> queryExtEntry = queryExtsIter.next();
      qmd.addExtension(queryExtEntry.getKey(), "" + queryExtEntry.getValue());
    }
  }
  query.getExecutionContext().getMetaDataManager().registerNamedQuery(qmd);
  return this;
}

代码示例来源:origin: org.datanucleus/datanucleus-api-jdo

qmd.setResultClass(query.getResultClassName());
qmd.setUnique(query.isUnique());
Map<String, Object> queryExts = query.getExtensions();
if (queryExts != null && !queryExts.isEmpty())

代码示例来源: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();

相关文章