javax.jdo.annotations.Query类的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(260)

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

Query介绍

暂无

代码示例

代码示例来源:origin: org.apache.isis.core/isis-core-tck-dom

@javax.jdo.annotations.PersistenceCapable
@javax.jdo.annotations.Discriminator("BSRC")
@javax.jdo.annotations.Query(
    name="prmv_findByIntProperty", language="JDOQL",  
    value="SELECT FROM org.apache.isis.tck.dom.busrules.BusRulesEntityChild WHERE intProperty == :i")

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

for (Query query : qs)
  String lang = JDOAnnotationUtils.getQueryLanguageName(query.language());
  if (!StringUtils.isWhitespace(lang))
  String resultClassName = (query.resultClass() != null && query.resultClass() != void.class ? query.resultClass().getName() : null);
  if (StringUtils.isWhitespace(query.name()))
  QueryMetaData qmd = new QueryMetaData(query.name());
  qmd.setScope(cls.getName());
  qmd.setLanguage(lang);
  qmd.setUnmodifiable(query.unmodifiable());
  qmd.setResultClass(resultClassName);
  qmd.setUnique(query.unique());
  qmd.setFetchPlanName(query.fetchPlan());
  qmd.setQuery(query.value());
  JDOAnnotationUtils.addExtensionsToMetaData(qmd, query.extensions());
  cmd.addQuery(qmd);
  qmd.setParent(cmd);

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

for (int j=0;j<queries.length;j++)
  String lang = JDOAnnotationUtils.getQueryLanguageName(qs[j].language());
  String resultClassName = (qs[j].resultClass() != null && qs[j].resultClass() != void.class ? 
      qs[j].resultClass().getName() : null);
  queries[j] = new QueryMetaData(cmd, cls.getName(), qs[j].name(), lang, 
    "" + qs[j].unmodifiable(), resultClassName, null, qs[j].unique(), qs[j].fetchPlan());
  queries[j].setQuery(qs[j].value());
  JDOAnnotationUtils.addExtensionsToMetaData(queries[j], qs[j].extensions());

代码示例来源:origin: org.apache.isis.core/isis-core-tck-dom

@javax.jdo.annotations.Query(
    name="dtmv_findByStringProperty", language="JDOQL",  
    value="SELECT FROM org.apache.isis.tck.dom.scalars.DateTimeValuedEntity WHERE stringProperty == :i")

代码示例来源:origin: org.apache.isis.core/isis-core-tck-dom

@javax.jdo.annotations.PersistenceCapable
@javax.jdo.annotations.Discriminator("JODA")
@javax.jdo.annotations.Query(
    name="joda_findByStringProperty", language="JDOQL",  
    value="SELECT FROM org.apache.isis.tck.dom.scalars.JdkValuedEntity WHERE stringProperty == :i")

代码示例来源:origin: org.apache.isis.core/isis-core-tck-dom

@javax.jdo.annotations.PersistenceCapable
@javax.jdo.annotations.Discriminator("BSRL")
@javax.jdo.annotations.Query(
    name="prmv_findByIntProperty", language="JDOQL",  
    value="SELECT FROM org.apache.isis.tck.dom.busrules.BusRulesEntity WHERE intProperty == :i")

代码示例来源:origin: org.incode.example.document/incode-example-document-dom

@Query(
    name = "findByCreatedAtAfter", language = "JDOQL",
    value = "SELECT "
        + "WHERE :startDateTime <= createdAt  "
        + "ORDER BY createdAt DESC "),
@Query(
    name = "findByCreatedAtBetween", language = "JDOQL",
    value = "SELECT "
        + "   && createdAt      <= :endDateTime "
        + "ORDER BY createdAt DESC "),
@Query(
        +           "FROM org.incode.example.document.dom.impl.paperclips.Paperclip p"
        +        ").contains(this) "),
@Query(

代码示例来源:origin: org.incode.module.document/incode-module-document-dom

@Query(
    name = "findByCreatedAtAfter", language = "JDOQL",
    value = "SELECT "
        + "WHERE :startDateTime <= createdAt  "
        + "ORDER BY createdAt DESC "),
@Query(
    name = "findByCreatedAtBetween", language = "JDOQL",
    value = "SELECT "
        + "   && createdAt      <= :endDateTime "
        + "ORDER BY createdAt DESC "),
@Query(
        +           "FROM org.incode.module.document.dom.impl.paperclips.Paperclip p"
        +        ").contains(this) "),
@Query(

代码示例来源:origin: org.apache.isis.core/isis-core-tck-dom

@javax.jdo.annotations.PersistenceCapable
@javax.jdo.annotations.Discriminator("PRMV")
@javax.jdo.annotations.Query(
    name="prmv_findByIntProperty", language="JDOQL",  
    value="SELECT FROM org.apache.isis.tck.dom.scalars.PrimitiveValuedEntity WHERE intProperty == :i")

代码示例来源:origin: org.apache.isis.core/isis-core-tck-dom

@javax.jdo.annotations.PersistenceCapable
@javax.jdo.annotations.Discriminator("WRPV")
@javax.jdo.annotations.Query(
    name="wrpv_findByStringProperty", language="JDOQL",  
    value="SELECT FROM org.apache.isis.tck.dom.scalars.WrapperValuedEntity WHERE stringProperty == :i")

代码示例来源:origin: org.apache.isis.core/isis-core-tck-dom

@javax.jdo.annotations.PersistenceCapable
@javax.jdo.annotations.Discriminator("APLV")
@javax.jdo.annotations.Query(
    name="jdkv_findByStringProperty", language="JDOQL",  
    value="SELECT FROM org.apache.isis.tck.dom.scalars.ApplibValuedEntity WHERE stringProperty == :i")

代码示例来源:origin: org.incode.example.document/incode-example-document-dom

strategy = InheritanceStrategy.NEW_TABLE)
@Queries({
    @Query(
        name = "findByReference", language = "JDOQL",
        value = "SELECT "

代码示例来源:origin: org.apache.isis.core/isis-core-tck-dom

@javax.jdo.annotations.PersistenceCapable
@javax.jdo.annotations.Discriminator("JDKV")
@javax.jdo.annotations.Query(
    name="jdkv_findByStringProperty", language="JDOQL",  
    value="SELECT FROM org.apache.isis.tck.dom.scalars.JdkValuedEntity WHERE stringProperty == :i")

代码示例来源:origin: org.incode.module.document/incode-module-document-dom

strategy = InheritanceStrategy.NEW_TABLE)
@Queries({
    @Query(
        name = "findByReference", language = "JDOQL",
        value = "SELECT "

相关文章