ObjectDB ObjectDB

Internal Website Search

31-40 of 200 resultsRefresh
46

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
46

lock(entity, lockMode)

Method javax.persistence.EntityManager void lock( Object entity, LockModeType lockMode ) Lock an entity instance that is contained in the persistence context with the specified lock mode type. If a pessimistic lock mode type is specified and the entity contains a version attribute, the persistence
46

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
46

joinTransaction()

Method javax.persistence.EntityManager void joinTransaction() Indicate to the entity manager that a JTA transaction is active. This method should be called on a JTA application managed entity manager that was created outside the scope of the active transaction to associate it with the current JTA
46

createNamedQuery(name, resultClass)

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

isOpen()

Method javax.persistence.EntityManager boolean isOpen() Determine whether the entity manager is open. Returns: true until the entity manager has been closed Since: JPA 1.0
46

getTransaction()

Method javax.persistence.EntityManager EntityTransaction getTransaction() Return the resource-level EntityTransaction object. The EntityTransaction instance may be used serially to begin and commit multiple transactions. Returns: EntityTransaction instance Throws: IllegalStateException - if invoked on a JTA entity manager Since: JPA 1.0
46

getProperties()

Method javax.persistence.EntityManager Map<String,Object> getProperties() Get the properties and hints and associated values that are in effect for the entity manager. Changing the contents of the map does not change the configuration in effect. Returns: map of properties and hints in effect for entity manager Since: JPA 2.0
46

getMetamodel()

Method javax.persistence.EntityManager Metamodel getMetamodel() Return an instance of Metamodel interface for access to the metamodel of the persistence unit. Returns: Metamodel instance Throws: IllegalStateException - if the entity manager has been closed Since: JPA 2.0
46

getLockMode(entity)

Method javax.persistence.EntityManager LockModeType getLockMode( Object entity ) Get the current lock mode for the entity instance. Parameters: entity - entity instance Returns: lock mode Throws: TransactionRequiredException - if there is no transaction IllegalArgumentException - if the instance

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