ObjectDB ObjectDB

Internal Website Search

31-40 of 200 resultsRefresh
47

getEntityManagerFactory()

Method javax.persistence.EntityManager EntityManagerFactory getEntityManagerFactory() Return the entity manager factory for the entity manager. Returns: EntityManagerFactory instance Throws: IllegalStateException - if the entity manager has been closed Since: JPA 2.0
47

createNativeQuery(sqlString, resultSetMapping)

Method javax.persistence.EntityManager Query createNativeQuery( String sqlString, String resultSetMapping ) Create an instance of Query for executing a native SQL query. Parameters: sqlString - a native SQL query string resultSetMapping - the name of the result set mapping Returns: the new query instance Since: JPA 1.0
47

createNativeQuery(sqlString, resultClass)

Method javax.persistence.EntityManager Query createNativeQuery( String sqlString, Class resultClass ) Create an instance of Query for executing a native SQL query. Parameters: sqlString - a native SQL query string resultClass - the class of the resulting instance(s) Returns: the new query instance Since: JPA 1.0
47

detach(entity)

Method javax.persistence.EntityManager void detach( Object entity ) Remove the given entity from the persistence context, causing a managed entity to become detached. Unflushed changes made to the entity if any (including removal of the entity), will not be synchronized to the database. Entities
47

createQuery(qlString)

Method javax.persistence.EntityManager Query createQuery( String qlString ) Create an instance of Query for executing a Java Persistence query language statement. Parameters: qlString - a Java Persistence query string Returns: the new query instance Throws: IllegalArgumentException - if the query string is found to be invalid Since: JPA 1.0
47

contains(entity)

Method javax.persistence.EntityManager boolean contains( Object entity ) Check if the instance is a managed entity instance belonging to the current persistence context. Parameters: entity - entity instance Returns: boolean indicating if entity is in persistence context Throws: IllegalArgumentException - if not an entity Since: JPA 1.0
47

createNativeQuery(sqlString)

Method javax.persistence.EntityManager Query createNativeQuery( String sqlString ) Create an instance of Query for executing a native SQL statement, e.g., for update or delete. Parameters: sqlString - a native SQL query string Returns: the new query instance Since: JPA 1.0
47

createNamedQuery(name)

Method javax.persistence.EntityManager Query createNamedQuery( String name ) Create an instance of Query for executing a named query (in the Java Persistence query language or in native SQL). Parameters: name - the name of a query defined in metadata Returns: the new query instance Throws
47

find(entityClass, primaryKey, lockMode, properties)

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

find(entityClass, primaryKey, properties)

Method javax.persistence.EntityManager T find( Class<T> entityClass, Object primaryKey, Map<String,Object> properties ) Find by primary key, using the specified properties. Search for an entity of the specified class and primary key. If the entity instance is contained in the persistence context

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