本文整理了Java中javax.jdo.annotations.Query
类的一些代码示例,展示了Query
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query
类的具体详情如下:
包路径:javax.jdo.annotations.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 "
内容来源于网络,如有侵权,请联系作者删除!