Home » Search

About named queries

71-80 of 200Refresh
JDO Doc
19

setOrdering(ordering)

Method javax.jdo.Query void setOrdering(   String ordering ) Set the ordering specification for the result Collection. The ordering specification is a String containing one or more ordering declarations separated by commas. Each ordering declaration is the name of the field on which to order
Manual
18

Database Connection using JPA

for Query instances, which are needed for executing queries on the database. Every JPA implementation ... . Connection URL The createEntityManagerFactory method takes as an argument a name of a persistence ... is considered by ObjectDB to be a database url rather than as a persistence unit name. To use ObjectDB
Manual
17

Online Backup

applications. Starting Online Backup The online backup can be started by executing a special query ... .createQuery("objectdb backup").getSingleResult(); The backup query string is always exactly "objectdb backup ... of the ObjectDB home directory on the server side). A new subdirectory with a name that reflects the current
Result
17

Posting to ObjectDB Website - Important Instructions

. Use appropriate styles for formatted lines (Java code, stack trace, query, console/shell input ... MyEntity("test");         em.persist(e);         em.getTransaction().commit();         Query query = em.createQuery("SELECT e FROM MyEntity e");         List resultList = query.getResultList
Tutorial
17

Step 3: Add a Main Class

. The package name should be tutorial. Enter Main as the class name - use exactly that case sensitive class name. Click Finish to create the new class. Use copy and paste to fill the new source file ... (); // Find the number of Point objects in the database: Query q1 = em.createQuery("SELECT COUNT(p
Manual
17

JPA Persistence Unit

generators and named queries (by annotations). Otherwise, the generators and named queries are available ... ://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0"> name ... > name="javax.persistence.jdbc.url" value="objectdb
Manual
17

WHERE clause (JPQL / Criteria API)

JPQL query that retrieves selective objects from the database. Out of the four optional clauses of JPQL queries, the WHERE clause is definitely the most frequently used. How a WHERE Clause Works The following query retrieves only countries with population size that exceeds a specified limit
JDO Doc
17

javax.jdo.Constants

query metadata file. The name of the resource for the DTD of the standard JDO query metadata file ... JDOQUERY_XSD_RESOURCE The name of the resource for the XML schema of the standard JDO query metadata file. The name of the resource for the XML schema of the standard JDO query metadata file. Since: JDO 2
Forum
16

Duplicate Entity class names causes Exception in Query

.... @Entity @NamedQueries({ @NamedQuery(name = "objdbTest.Singleton.getItem", query = "SELECT o FROM Item o WHERE o.cachedKey = :cachedKey"), @NamedQuery(name = "objdbTest.Singleton.count", query ... to  @NamedQuery(name = "objdbTest.Singleton.count", query = "SELECT COUNT(x) FROM objdbTest.Item x
JDO Doc
16

javax.jdo.PersistenceManager

of the specified Class Since: JDO 1.0 See Also: Query FetchGroup getFetchGroup(Class cls, String name ... (Class cls, String queryName) Create a new Query with the given candidate class from a named query. Create a new Query with the given candidate class from a named query. The query name given