ObjectDB ObjectDB

Internal Website Search

31-40 of 200 resultsRefresh
35

Collections in JPQL and Criteria Queries

Collections may appear in JPQL queries: as parameters - when collections are assigned as arguments ... , which should be used for checking other collections, such as a collection that is passed to the query ... of collection, so in ObjectDB these operators are treated as synonyms. Criteria Query Collection
35

Numbers in JPQL and Criteria Queries

Numeric values may appear in JPQL queries in many forms: as numeric literals - e.g. 123, -12.5. as ... of any type and always returns a double value. Criteria Query Arithmetic Expressions JPQL arithmetic operators and functions (which are described above) are available also as JPA criteria query
34

Criteria Query Expressions

The following interfaces are in use in representing general expressions in criteria queries: See the Query Expressions section for more details and examples.
34

JPA Annotations for SQL Queries

The following JPA annotations are designated for SQL queries on relational databases: ObjectDB supports only the preferred JPA query language, JPQL, and silently ignores all the above annotations.
31

createNamedQuery(name, resultClass)

> resultClass ) Create an instance of TypedQuery for executing a Java Persistence query language named query ... specified by the resultClass argument. Parameters: name - the name of a query defined in metadata ... : IllegalArgumentException - if a query has not been defined with the given name or if the query string is found
31

createNamedQuery(name)

Method javax.persistence.EntityManager Query createNamedQuery( String name ) Create an instance of Query for executing a named query (in the Java Persistence query language or in native SQL). Parameters: name - the name of a query defined in metadata Returns: the new query instance Throws
30

setParameter(name, value, temporalType)

Method javax.persistence.TypedQuery TypedQuery<X> setParameter( String name, Calendar value, TemporalType temporalType ) Bind an instance of java.util.Calendar to a named parameter. Parameters: name - parameter name value - parameter value temporalType - temporal type Returns: the same query
30

setParameter(name, value)

Method javax.persistence.TypedQuery TypedQuery<X> setParameter( String name, Object value ) Bind an argument to a named parameter. Parameters: name - parameter name value - parameter value Returns: the same query instance Throws: IllegalArgumentException - if the parameter name does not correspond
30

setParameter(name, value, temporalType)

- parameter name value - parameter value temporalType - temporal type Returns: the same query instance Throws: IllegalArgumentException - if the parameter name does not correspond to a parameter of the query ... Method javax.persistence.TypedQuery TypedQuery<X> setParameter( String name, Date value
3

[ODB1] Chapter 4 - JDO Metadata

name, X is the class name), whose class file is a/b/X.class, is searched in the following paths (in ... the order shown): META-INF/package.jdo WEB-INF/package.jdo package.jdo X.jdo A metadata file with the name X.jdo must be dedicated to a single class whose name is X. Metadata for multiple classes

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