ObjectDB ObjectDB

Internal Website Search

31-40 of 200 resultsRefresh
33

javax.persistence.Entity

javax.persistence Annotation Entity Target: Classes Specifies that the class is an entity. This annotation is applied to the entity class. Since: JPA 1.0 Learn how to define and use entity classes in Chapter 2 of the ObjectDB/JPA manual. String name (Optional) The entity name. (Optional) The entity
33

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
33

persist(entity)

Method javax.persistence.EntityManager void persist( Object entity ) Make an instance managed and persistent. Parameters: entity - entity instance Throws: EntityExistsException - if the entity already exists. (If the entity already exists, the EntityExistsException may be thrown when the persist
33

merge(entity)

Method javax.persistence.EntityManager T merge( T entity ) Merge the state of the given entity into the current persistence context. Parameters: entity - entity instance Returns: the managed instance that the state was merged to Throws: IllegalArgumentException - if instance is not an entity or
33

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
33

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
33

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
33

isLoadedWithReference(entity, attributeName)

Method javax.persistence.spi.ProviderUtil LoadState isLoadedWithReference( Object entity, String attributeName ) If the provider determines that the entity has been provided by ... determines that the entity has been provided by itself and that either the entity attributes
33

entity(cls)

Method javax.persistence.metamodel.Metamodel EntityType<X> entity( Class<X> cls ) Return the metamodel entity type representing the entity. Parameters: cls - the type of the represented entity Returns: the metamodel entity type Throws: IllegalArgumentException - if not an entity Since: JPA 2.0
33

from(entity)

Method javax.persistence.criteria.AbstractQuery Root<X> from( EntityType<X> entity ) Create and add a query root corresponding to the given entity, forming a cartesian product with any existing roots. Parameters: entity - metamodel entity representing the entity of type X Returns: query root corresponding to the given entity Since: JPA 2.0

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