ObjectDB ObjectDB

Internal Website Search

121-130 of 200 resultsRefresh


should be used mainly when the query result type is unknown or when a query returns polymorphic ... result type is expected queries should usually use the TypedQuery interface. It is easier to run queries and process the query results in a type safe manner when using the TypedQuery interface

FROM clause (JPQL / Criteria API)

at the FROM clause level. JPA 2, however, adds support for filtering instances of specific types at the WHERE clause level by using a type expression. For example, in the following query, c iterates ... variables represent iteration over all the database objects of a specified entity type. JPQL provides

SELECT clause (JPQL / Criteria API)

Result expressions that represent anything but entity objects (e.g. values of system types ... .get("currency")).distinct(true); The select method takes one argument of type Selection and sets it as ... above. The behavior of the multiselect method depends on the query result type (as set when CriteriaQuery

Index Definition

a value of one of the following persistable types: Primitive types: boolean, byte, short, char, int ... , java.sql.Date, java.sql.Time, java.sql.Timestamp. Any enum type. Reference to an entity object. Arrays and collections that contain values of the above types (including null). Indexes

Running JPA Queries

, but the version of Query returns a result list of a raw type (non generic) instead of a parameterized (generic) type: Query query = em.createQuery("SELECT c FROM Country c"); List results = query.getResultList(); An attempt to cast the above results to a parameterized type (List<Country


the execution of typed queries. Since: JPA 2.0 See Also: Query Parameter Learn how to define and use JPA ... > type) Get the parameter object corresponding to the declared positional parameter with the given position and type. Get the parameter object corresponding to the declared positional parameter


has not been specified, duplicate results must be retained. This method only overrides the return type ... - metamodel entity representing the entity of type X Returns: query root corresponding to the given ... type of the query or subquery. Return the result type of the query or subquery. If a result type

Privacy Policy

is accessing or using the Service, as applicable. Collecting and Using Your Personal Data Types ... (e.g. IP address), unique device identifiers, browser type, browser version, the time and date ... information automatically, including, but not limited to, the type of mobile device You use


to the type specified by the resultClass argument. Parameters: name - the name of a query defined in metadata resultClass - the type of the query result Returns: the new query instance Throws ... to be invalid or if the query result is found to not be assignable to the specified type Since: JPA 2.0

[ODB1] Chapter 5 - JDO Connections

Specifies the real type of the constructed PersistenceManagerFactory instance. When using ObjectDB ... . The type of the exception is a JDOException subclass that reflects the specific error that occurred ... transactions. This type of transaction is used in ObjectDB by default, but ObjectDB also supports

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