ObjectDB ObjectDB

Internal Website Search

1-10 of 10 resultsRefresh
95

isLoaded(entity)

Method javax.persistence.PersistenceUnitUtil boolean isLoaded( Object entity ) Determine the load state of an entity belonging to the persistence unit. This method can be used to determine the load state of an entity passed as a reference. An entity is considered loaded if all attributes
95

isLoaded(entity, attributeName)

Method javax.persistence.PersistenceUnitUtil boolean isLoaded( Object entity, String attributeName ) Determine the load state of a given persistent attribute of an entity belonging to the persistence unit. Parameters: entity - entity instance containing the attribute attributeName - name
95

getIdentifier(entity)

Method javax.persistence.PersistenceUnitUtil Object getIdentifier( Object entity ) Return the id of the entity. A generated id is not guaranteed to be available until after the database insert has occurred. Returns null if the entity does not yet have an id. Parameters: entity - entity instance
95

javax.persistence.PersistenceUnitUtil

javax.persistence Interface PersistenceUnitUtil Superinterfaces: PersistenceUtil Utility interface between the application and the persistence provider managing the persistence unit. The methods of this interface should only be invoked on entity instances obtained from or managed by entity managers
70

JPA Primary Key

key) of a specified managed entity object. For example: PersistenceUnitUtil util = emf.getPersistenceUnitUtil(); Object projectId = util.getIdentifier(project); A PersistenceUnitUtil instance
58

JPA Miscellaneous

This section contains miscellaneous JPA types. The PersistenceUtil and PersistenceUnitUtil interfaces provide general utility methods: The Cache interface and the CacheRetrieveMode and CacheStoreMode enum types serve in managing the EntityManagerFactory's shared (level 2) cache: Other enum types are provided for setting of various JPA operations:
14

EntityManager refresh problem

.persistence.PersistenceUnitUtil; import org.junit.Assert; import org.junit.Test; import entities
12

getPersistenceUnitUtil()

Method javax.persistence.EntityManagerFactory PersistenceUnitUtil getPersistenceUnitUtil() Return interface providing access to utility methods for the persistence unit. Returns: PersistenceUnitUtil interface Throws: IllegalStateException - if the entity manager factory has been closed Since: JPA 2.0
12

javax.persistence.EntityManagerFactory

.0 PersistenceUnitUtil getPersistenceUnitUtil() Return interface providing access to utility methods ... unit. Returns: PersistenceUnitUtil interface Throws: IllegalStateException - if the entity manager
8

javax.persistence.PersistenceUtil

javax.persistence Interface PersistenceUtil Subinterfaces: PersistenceUnitUtil Utility interface between the application and the persistence provider(s). The PersistenceUtil interface instance obtained from the Persistence class is used to determine the load state of an entity or entity attribute

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