ObjectDB ObjectDB

Internal Website Search

31-40 of 200 resultsRefresh
19

javax.persistence.EntityManager

(Class<T> entityClass, Object primaryKey) Find by primary key. Find by primary key. Search for an entity of the specified class and primary key. If the entity instance is contained in the persistence context, it is returned from there. Parameters: entityClass - entity class primaryKey - primary key
19

JPA Annotations for Value Generation

Automatically generated values are mainly useful for primary key fields, but are supported by ObjectDB also for regular (non primary key) persistent fields. At the field level, the @GeneratedValue with an optional GenerationType strategy is specified: The @GeneratedValue annotation
19

JPA Annotations for Classes

are useful in representing composite primary keys as explained in the Primary Key section of the ObjectDB manual.
19

ORDER BY clause (JPQL / Criteria API)

. The following query returns Country objects ordered by currency as the primary sort key and by name as the secondary sort key: SELECT c.currency, c.name FROM Country c ORDER BY c.currency, c.name To avoid ... this case, the first expression is the primary order expression. Any additional order expression
1

Key.deleteAction

Annotation Element javax.jdo.annotations.Key ForeignKeyAction deleteAction Delete action to apply to the foreign key for the key. Returns: delete action to apply to the foreign key for the key Default value: javax.jdo.annotations.ForeignKeyAction.UNSPECIFIED Since: JDO 2.1
1

addExtension(key, value)

Method javax.jdo.Query void addExtension( String key, Object value ) Add a vendor-specific extension to this query. The key and value are not standard. An implementation must ignore keys that are not recognized. Parameters: key - the key of the extension value - the value of the extension Since: JDO 2.0
1

Key.updateAction

Annotation Element javax.jdo.annotations.Key ForeignKeyAction updateAction Update action to apply to the foreign key for the key. Returns: update action to apply to the foreign key for the key Default value: javax.jdo.annotations.ForeignKeyAction.UNSPECIFIED Since: JDO 2.1
1

StringIdentity(pcClass, key)

Constructor javax.jdo.identity.StringIdentity StringIdentity( Class pcClass, String key ) Constructor with class and key. Parameters: pcClass - the class key - the key Since: JDO 1.0
1

ByteIdentity(pcClass, key)

Constructor javax.jdo.identity.ByteIdentity ByteIdentity( Class pcClass, Byte key ) Constructor with class and key. Parameters: pcClass - the target class key - the key Since: JDO 1.0
1

IntIdentity(pcClass, key)

Constructor javax.jdo.identity.IntIdentity IntIdentity( Class pcClass, Integer key ) Constructor with class and key. Parameters: pcClass - the class key - the key Since: JDO 1.0

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