ObjectDB Database Search

1-50 of 200 results

Retrieving JPA Entity Objects

The Java Persistence API (JPA) provides various ways to retrieve objects from the database. The retrieval of objects does not require an active transaction because it does not change the content of the database. The persistence context serves as a cache of retrieved entity objects . If a requested

Working with JPA Entity Objects

Entity objects are in-memory instances of entity classes (persistable user defined classes), which can represent physical objects in the database. Managing an ObjectDB Object Database using JPA requires using entity objects for many operations, including storing, retrieving, updating and deleting

Detached Entity Objects

Detached entity objects are objects in a special state in which they are not managed by any EntityManager but still represent objects in the database. Compared to managed entity objects , detached objects are limited in functionality: Many JPA methods do not accept detached objects (e.g. lock

Storing JPA Entity Objects

New entity objects can be stored in the database either explicitly by invoking the persist method ... (). commit (); The Employee instance is constructed as an ordinary Java object and its initial state is New. An explicit call to persist associates the object with an owner EntityManager em and changes

Deleting JPA Entity Objects

Existing entity objects can be deleted from the database either explicitly by invoking the remove ... an object from the database it has to first be retrieved (no matter which way) and then in an active ... object is physically deleted from the database when the transaction is committed. Embedded objects

ObjectDB Object Database Features

, derived attributes, grouping queries and aggregate queries) which are usually missing from Object Oriented Databases are also supported by ObjectDB. The combination of Object Database features ... . Up to 9,223,372,036,854,775,808 entity objects per database file. Unlimited database connections

Updating JPA Entity Objects

Modifying existing entity objects that are stored in the database is based on transparent ... Once an entity object is retrieved from the database (no matter which way) it can simply be modified in memory ... (); The entity object is physically updated in the database when the transaction is committed

ObjectDB - JPA Object Database for Java

solution. Using a relational database management system (RDBMS) to store and retrieve Java objects requires slow conversions between graphs of Java objects and flat database table rows. Object Relational ... , and even add their own overhead. ObjectDB supports direct storage of graphs of objects

Is ObjectDB better than competing object databases?

. However, you should consider the following points when doing your own objective comparison of object databases: ObjectDB is unique in supporting the standard APIs. It is the only object database with built in ... of the Java Data Objects (JDO) API than competing object databases. By using a standard API such as JPA

Is ObjectDB better than Object Relational Mapping (ORM)?

All about Is ObjectDB better than Object Relational Mapping (ORM)? in Java/JPA database - explanations, examples, references, links and related information.

jakarta.persistence.PersistenceUnitUtil.getIdentifier(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnitUtil Object getIdentifier (    Object entity ) Return the id of the entity. A generated id is not guaranteed ... : IllegalArgumentException - if the object is found not to be an entity. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceUnitUtil.getVersion(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnitUtil Object getVersion (    Object entity ) Return the version of the entity. A generated version is not guaranteed ... : IllegalArgumentException - if the object is found not to be an entity. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.PersistenceUnitUtil.load(Object,String)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnitUtil void load (    Object entity ,    String attributeName ) Load the persistent value of a given ... instance Throws: IllegalArgumentException - if the given object is not an instance of an entity class

jakarta.persistence.PersistenceUnitUtil.load(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnitUtil void load (    Object entity ) Load the persistent state of an entity belonging to the persistence unit ... : IllegalArgumentException - if the given object is not an instance of an entity class belonging

jakarta.persistence.LockTimeoutException.LockTimeoutException(Object)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.LockTimeoutException LockTimeoutException (    Object entity ) Constructs a new LockTimeoutException exception with the specified object . Parameters: entity - the entity. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.EntityManager.contains(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager boolean contains (    Object entity ) Determine if the given object is a managed entity instance belonging to the current persistence context. Parameters: entity - entity instance Returns: boolean value indicating

jakarta.persistence.criteria.CriteriaBuilder.equal(Expression,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Predicate equal (    Expression x ,    Object y ) Create a predicate for testing the arguments for equality. Parameters: x - expression y - object Returns: equality predicate. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaBuilder.notEqual(Expression,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Predicate notEqual (    Expression x ,    Object y ) Create a predicate for testing the arguments for inequality. Parameters: x - expression y - object Returns: inequality predicate. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceUnitUtil.isInstance(Object,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnitUtil boolean isInstance (    Object entity ,    Class entityClass ) Return true if the given entity ... instance Throws: IllegalArgumentException - if the given object is not an instance of an entity class

jakarta.persistence.Cache.evict(Class,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.Cache void evict (    Class cls ,    Object primaryKey ) Remove the data for the given entity from the cache. Parameters: cls - entity class primaryKey - primary key Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceConfiguration.property(String,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceConfiguration PersistenceConfiguration property (    String name ,    Object value ) Set a property of this persistence unit. Parameters: name - the property name value - the property value Returns: this configuration. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceUnitUtil.isLoaded(Object)

Jakarta Persistence (JPA) Method in jakarta.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

jakarta.persistence.PersistenceUnitUtil.isLoaded(Object,String)

Jakarta Persistence (JPA) Method in jakarta.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: attributeName - name

jakarta.persistence.TypedQuery.setParameter(String,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery TypedQuery setParameter (    String name ,    Object value ) Bind an argument value to a named parameter. Parameters: name - parameter name value - parameter value Returns: the same query instance. Throws

jakarta.persistence.TypedQuery.setHint(String,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery TypedQuery setHint (    String hintName ,    Object value ) Set a query property or hint. The hints elements may be used to specify query properties and hints. Properties defined by this specification

jakarta.persistence.TypedQuery.setParameter(int,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery TypedQuery setParameter (    int position ,    Object value ) Bind an argument value to a positional parameter. Parameters: position - position value - parameter value Returns: the same query instance. Throws

jakarta.persistence.OptimisticLockException.OptimisticLockException(Object)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.OptimisticLockException OptimisticLockException (    Object entity ) Constructs a new OptimisticLockException exception with the specified entity. Parameters: entity - the entity. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.StoredProcedureQuery.setParameter(int,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.StoredProcedureQuery StoredProcedureQuery setParameter (    int position ,    Object value ) Bind an argument value to a positional parameter. Parameters: position - position value - parameter value Returns: the same query

jakarta.persistence.StoredProcedureQuery.setParameter(String,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.StoredProcedureQuery StoredProcedureQuery setParameter (    String name ,    Object value ) Bind an argument value to a named parameter. Parameters: name - parameter name value - parameter value Returns: the same query

jakarta.persistence.OptimisticLockException.OptimisticLockException(String,Throwable,Object)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.OptimisticLockException OptimisticLockException (    String message ,    Throwable cause ,    Object entity ) Constructs a new OptimisticLockException exception with the specified detail message, cause

jakarta.persistence.PessimisticLockException.PessimisticLockException(Object)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.PessimisticLockException PessimisticLockException (    Object entity ) Constructs a new PessimisticLockException exception with the specified entity. Parameters: entity - the entity. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PessimisticLockException.PessimisticLockException(String,Throwable,Object)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.PessimisticLockException PessimisticLockException (    String message ,    Throwable cause ,    Object entity ) Constructs a new PessimisticLockException exception with the specified detail message, cause

jakarta.persistence.EntityManager.lock(Object,LockModeType,LockOption...)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void lock (    Object entity ,    LockModeType lockMode ,    LockOption... options ) Lock an entity instance belonging to the persistence context, obtaining the specified lock mode , using

jakarta.persistence.EntityManager.refresh(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void refresh (    Object entity ) Refresh the state of the given managed entity instance from the database, overwriting unflushed changes made to the entity, if any. This operation cascades to every entity related by

jakarta.persistence.LockTimeoutException.LockTimeoutException(String,Throwable,Object)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.LockTimeoutException LockTimeoutException (    String message ,    Throwable cause ,    Object entity ) Constructs a new LockTimeoutException exception with the specified detail message, cause, and entity

jakarta.persistence.EntityManager.refresh(Object,Map)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void refresh (    Object entity ,    Map properties ) Refresh the state of the given managed entity instance from the database, using the specified properties, and overwriting unflushed changes

jakarta.persistence.EntityManager.refresh(Object,LockModeType)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void refresh (    Object entity ,    LockModeType lockMode ) Refresh the state of the given managed entity instance from the database, overwriting unflushed changes made to the entity, if any, and obtain

jakarta.persistence.EntityManager.lock(Object,LockModeType)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void lock (    Object entity ,    LockModeType lockMode ) Lock an entity instance belonging to the persistence context, obtaining the specified lock mode . If a pessimistic lock mode type is specified

jakarta.persistence.EntityManager.lock(Object,LockModeType,Map)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void lock (    Object entity ,    LockModeType lockMode ,    Map properties ) Lock an entity instance belonging to the persistence context, obtaining the specified lock mode , using the specified

jakarta.persistence.EntityManager.getLockMode(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager LockModeType getLockMode (    Object entity ) Get the current lock mode held by this persistence context on the given managed entity instance. Parameters: entity - a managed entity instance Returns: the lock mode

jakarta.persistence.EntityManager.refresh(Object,LockModeType,Map)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void refresh (    Object entity ,    LockModeType lockMode ,    Map properties ) Refresh the state of the given managed entity instance from the database, overwriting unflushed changes

jakarta.persistence.EntityManager.refresh(Object,RefreshOption...)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void refresh (    Object entity ,    RefreshOption... options ) Refresh the state of the given managed entity instance from the database, using the specified options , overwriting changes made to the entity

jakarta.persistence.EntityManager.detach(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void detach (    Object entity ) Evict the given managed or removed entity from the persistence context, causing the entity to become immediately detached. Unflushed changes made to the entity, if any, including

jakarta.persistence.EntityManager.setProperty(String,Object)

Jakarta Persistence (JPA) Method in jakarta.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

jakarta.persistence.Persistence.PersistenceUtilImpl.isLoaded(Object,String)

Jakarta Persistence (JPA) Method in jakarta.persistence.Persistence.PersistenceUtilImpl boolean isLoaded (    Object entity ,    String attributeName ) Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Persistence.PersistenceUtilImpl.isLoaded(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.Persistence.PersistenceUtilImpl boolean isLoaded (    Object entity ) Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.StoredProcedureQuery.setHint(String,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.StoredProcedureQuery StoredProcedureQuery setHint (    String hintName ,    Object value ) Set a query property or hint. The hints elements may be used to specify query properties and hints. Properties defined by

jakarta.persistence.EntityManager.persist(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void persist (    Object entity ) Make a new entity instance managed and persistent, resulting in its insertion in the database when the persistence context is synchronized with the database, or make a removed entity

jakarta.persistence.criteria.CriteriaUpdate.set(String,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaUpdate CriteriaUpdate set (    String attributeName ,    Object value ) Update the value of the specified attribute. Parameters: attributeName - name of the attribute to be updated value - new value

What is the Java Data Objects (JDO)?

The Java Data Objects (JDO) is another standard for accessing persistent data in databases, using plain old Java objects (POJO) to represent the object model. Unlike Java Persistence API (JPA ... with both relational and object databases. JDO is supported by many object databases, including ObjectDB