ObjectDB ObjectDB

Internal Website Search

41-50 of 200 resultsRefresh

ORDER BY clause (JPQL / Criteria API)

The ORDER BY clause specifies a required order for the query results. Any JPQL query that does not ... Expressions The following query returns names of countries whose population size ... from expressions in the SELECT clause are allowed in the ORDER BY clause. The following query

Database Management Settings

" synchronized="false" />   <index-update enabled="true" priority="40" /> <query-cache results ... " operations (which modify the database) have to be recorded. For debugging of query failure ... to accelerate the execution of relevant queries. The <query-cache> element <query-cache results="32mb


Method javax.persistence.Query int executeUpdate() Execute an update or delete statement. Returns ... Persistence query language SELECT statement or for a criteria query TransactionRequiredException - if there is no transaction QueryTimeoutException - if the statement execution exceeds the query timeout


Method javax.persistence.Query LockModeType getLockMode() Get the current lock mode for the query. Returns: lock mode Throws: IllegalStateException - if the query is found not to be a Java Persistence query language SELECT query or a Criteria API query Since: JPA 2.0

getParameter(name, type)

Method javax.persistence.Query Parameter<T> getParameter( String name, Class<T> type ... is required to be supported for criteria queries only. Parameters: name - parameter name type - type ... not exist or is not assignable to the type IllegalStateException - if invoked on a native query or


Method javax.jdo.PersistenceManager Query newQuery( String query ) Create a Construct a new query instance using the specified String as the single-string representation of the query. Parameters: query - the single-string query Returns: the new Query Since: JDO 2.0


javax.jdo.annotations Annotation Queries Target: Classes Annotation for a group of named queries. Since: JDO 2.1 Query[] value The named queries The named queries Returns: The named queries Since: JDO 2.1


Method javax.jdo.Query void setResult( String data ) Specifies what type of data this query should return. If this is unset or set to null, this query returns instances of the query's candidate class. If set, this query will return expressions, including field values (projections) and aggregate


Static Field javax.jdo.Query String JDOQL The string constant used as the first argument to PersistenceManager.newQuery(String,Object) to identify that the created query should obey the JDOQL syntax and semantic rules. This is the default query language used when creating a query with any


Method javax.jdo.Query void setIgnoreCache( boolean ignoreCache ) Set the ignoreCache option ... to create this Query. The ignoreCache option setting specifies whether the query should execute ... might be able to optimize the query execution by ignoring changed values in the cache. For optimistic

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support