ObjectDB ObjectDB

Internal Website Search

1-10 of 200 resultsRefresh
180

JPA Named Queries

A named query is a statically defined query with a predefined unchangeable query string. Using named queries instead of dynamic queries may improve code organization by separating the JPQL query ... and @NamedQueries Annotations The following @NamedQuery annotation defines a query whose name is "Country.findAll
51

Query Parameters in JPA

execution, because it eliminates the need for repeated query compilations. Named Parameters (:name) The following method retrieves a Country object from the database by its name: public Country getCountryByName(EntityManager em, String name) { TypedQuery query = em.createQuery
43

JPA Persistable Types

, package or private) and it can be either concrete or abstract. Entity Class Names Entity classes are represented in queries by entity names. By default, the entity name is the unqualified name of the entity class (i.e. the short class name excluding the package name). A different entity name can be set
40

getPersistenceManagerFactory(overrides, name, resourceLoader, pmfLoader)

overrides, String name, ClassLoader resourceLoader, ClassLoader pmfLoader ) Returns a PersistenceManagerFactory configured based on the properties stored in the resource at name, or, if not found, returns a PersistenceManagerFactory with the given name or, if not found, returns a javax.persistence
38

JoinColumn.name

Annotation Element javax.persistence.JoinColumn String name (Optional) The name of the foreign key ... of the following: the name of the referencing relationship property or field of the referencing entity or embeddable class; "_"; the name of the referenced primary key column. If there is no such referencing
38

valueOf(name)

valueOf( String name ) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. Parameters: name - the name of the enum constant to be returned. Returns: the enum constant with the specified name Throws
38

getDeclaredSet(name, elementType)

Method javax.persistence.metamodel.ManagedType SetAttribute getDeclaredSet( String name, Class ... to the specified name and Java element type. Parameters: name - the name of the represented attribute ... of the given name and element type Throws: IllegalArgumentException - if attribute of the given name and type is not declared in the managed type Since: JPA 2.0
38

getAttribute(name)

Method javax.persistence.metamodel.ManagedType Attribute getAttribute( String name ) Return the attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Returns: attribute with given name Throws: IllegalArgumentException
38

valueOf(name)

name ) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. Parameters: name - the name of the enum constant to be returned. Returns: the enum constant with the specified name Throws: java.lang
38

valueOf(name)

Static Method javax.persistence.LockModeType LockModeType valueOf( String name ) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. Parameters: name - the name of the enum constant to be returned

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