ObjectDB ObjectDB

Internal Website Search

11-20 of 200 resultsRefresh
46

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
46

setProperty(propertyName, value)

Method javax.persistence.EntityManager void setProperty( String propertyName, Object value ) Set an entity manager property or hint. If a vendor-specific property or hint is not recognized, it is silently ignored. Parameters: propertyName - name of property or hint value - value for property or
46

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
46

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
46

refresh(entity, properties)

Method javax.persistence.EntityManager void refresh( Object entity, Map<String,Object> properties ) Refresh the state of the instance from the database, using the specified properties, and overwriting changes made to the entity, if any. If a vendor-specific property or hint is not recognized
46

setFlushMode(flushMode)

Method javax.persistence.EntityManager void setFlushMode( FlushModeType flushMode ) Set the flush mode that applies to all objects contained in the persistence context. Parameters: flushMode - flush mode Since: JPA 1.0
46

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
46

lock(entity, lockMode, properties)

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

remove(entity)

Method javax.persistence.EntityManager void remove( Object entity ) Remove the entity instance. Parameters: entity - entity instance Throws: IllegalArgumentException - if the instance is not an entity or is a detached entity TransactionRequiredException - if invoked on a container-managed entity
46

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

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