ObjectDB ObjectDB

Internal Website Search

1-10 of 200 resultsRefresh
53

javax.persistence.EntityManager

javax.persistence Interface EntityManager Interface used to interact with the persistence context. An EntityManager instance is associated with a persistence context. A persistence context is a set ... . The EntityManager API is used to create and remove persistent entity instances, to find entities by their primary
49

unwrap(cls)

Method javax.persistence.EntityManager T unwrap( Class<T> cls ) Return an object of the specified type to allow access to the provider-specific API. If the provider's EntityManager implementation ... of the object to be returned. This is normally either the underlying EntityManager implementation
49

getDelegate()

Method javax.persistence.EntityManager Object getDelegate() Return the underlying provider object for the EntityManager, if available. The result of this method is implementation specific. The unwrap method is to be preferred for new applications. Returns: underlying provider object for EntityManager Since: JPA 1.0
48

refresh(entity, lockMode)

Method javax.persistence.EntityManager void refresh( Object entity, LockModeType lockMode ) Refresh the state of the instance from the database, overwriting changes made to the entity, if any ... -managed EntityManager instance with PersistenceContextType.TRANSACTION or with a lock mode
48

refresh(entity, lockMode, properties)

Method javax.persistence.EntityManager void refresh( Object entity, LockModeType lockMode, Map<String,Object> properties ) Refresh the state of the instance from the database, overwriting changes ... EntityManager instance with PersistenceContextType.TRANSACTION or with a lock mode
48

close()

Method javax.persistence.EntityManager void close() Close an application-managed entity manager. After the close method has been invoked, all methods on the EntityManager instance and any Query and TypedQuery objects obtained from it will throw the IllegalStateException except for getProperties
47

createQuery(criteriaQuery)

Method javax.persistence.EntityManager TypedQuery<T> createQuery( CriteriaQuery<T> criteriaQuery ) Create an instance of TypedQuery for executing a criteria query. Parameters: criteriaQuery - a criteria query object Returns: the new query instance Throws: IllegalArgumentException - if the criteria query is found to be invalid Since: JPA 2.0
47

createQuery(qlString, resultClass)

Method javax.persistence.EntityManager TypedQuery<T> createQuery( String qlString, Class<T> resultClass ) Create an instance of TypedQuery for executing a Java Persistence query language statement. The select list of the query must contain only a single item, which must be assignable to the type
47

find(entityClass, primaryKey)

Method javax.persistence.EntityManager T find( Class<T> entityClass, Object primaryKey ) 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
47

find(entityClass, primaryKey, lockMode, properties)

Method javax.persistence.EntityManager T find( Class<T> entityClass, Object primaryKey, LockModeType lockMode, Map<K,V> properties ) Find by primary key and lock, using the specified properties. Search for an entity of the specified class and primary key and lock it with respect to the specified

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