ObjectDB Database Search

51-100 of 200 results

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.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.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.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.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

jakarta.persistence.EntityManager.remove(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void remove (    Object entity ) Mark a managed entity instance as removed, resulting in its deletion from the database when the persistence context is synchronized with the database. This operation cascades

jakarta.persistence.EntityManager.find(Class,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager T find (    Class entityClass ,    Object primaryKey ) Find by primary key. Search for an entity of the specified class and primary key. If the entity instance is contained in the persistence context

jakarta.persistence.EntityManager.getReference(Class,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager T getReference (    Class entityClass ,    Object primaryKey ) Obtain a reference to an instance of the given entity class with the given primary key, whose state may be lazily fetched. If the requested

jakarta.persistence.criteria.Expression.in(Object...)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Expression Predicate in (    Object ... values ) Create a predicate to test whether the expression is a member of the argument list. Parameters: values - values to be tested against Returns: predicate testing for membership. Since: Jakarta Persistence (JPA) 1.0

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

Jakarta Persistence (JPA) Method in jakarta.persistence.Query Query 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.PersistenceUtil.isLoaded(Object,String)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUtil boolean isLoaded (    Object entity ,    String attributeName ) Determine the load state of a given persistent attribute. Parameters: attributeName - name of attribute whose load state is to be determined

jakarta.persistence.PersistenceUtil.isLoaded(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUtil boolean isLoaded (    Object entity ) Determine the load state of an entity. 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

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

Jakarta Persistence (JPA) Method in jakarta.persistence.Query Query 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.Query.setHint(String,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.Query Query 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 must be observed by

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

Jakarta Persistence (JPA) Method in jakarta.persistence.Cache boolean contains (    Class cls ,    Object primaryKey ) Whether the cache contains data for the given entity. Parameters: cls - entity class primaryKey - primary key Returns: boolean indicating whether the entity is in the cache. Since: Jakarta Persistence (JPA) 1.0

Defining a JPA Entity Class

To store Point objects in a database using JPA, you must define an entity class . A JPA entity class is a POJO (Plain Old Java Object ), an ordinary Java class that is marked (annotated) to indicate that it can represent objects in the database. Conceptually, this is similar to serializable classes

JPA Primary Key

cannot be modified and represents the entity for as long as it exists in the database. As an object database, ObjectDB supports implicit object IDs, so an explicit primary key is not required. However, ObjectDB ... , and automatic sequential value generation . This powerful feature is absent from many other object -oriented

jakarta.persistence.EntityManager

(JPA) 2 .0 T find ( Class entityClass , Object primaryKey , LockModeType lockMode ) Find by primary ... other than NONE is specified. Since: Jakarta Persistence (JPA) 2 .0 T find ( Class entityClass , Object ... other than NONE is specified. Since: Jakarta Persistence (JPA) 3. 2 T find ( EntityGraph entityGraph , Object

Eclipse Public License - v 1.0

. "Recipient" means anyone who receives the Program under this Agreement, including all Contributors. 2 ... , if any, and such derivative works, in source code and object code form. b) Subject to the terms ... the Contribution of such Contributor, if any, in source code and object code form. This patent

Strings in JPQL and Criteria Queries

to 'aly' . SUBSTRING('Italy', 3, 2 ) is evaluated to 'al' . Positions are one-based (as in SQL), not ... ); Expression l2 = cb. locate (path, "x"); Expression l3 = cb. locate (path, param, cb. literal ( 2 )); Expression l4 = cb. locate (path, "x", 2 ); // LOWER(str) and UPPER(str) Expression lower = cb. lower (path

Numbers in JPQL and Criteria Queries

. For example: MOD(11, 3) evaluates to 2 . MOD(8, 4) evaluates to 0 . The MOD function takes two integer ... function returns the square root of a specified argument. For example: SQRT(9) is evaluated to 3 SQRT( 2 ... expression or a simple Java numeric object . // Create path and parameter expressions: Expression path

DELETE Queries in JPA/JPQL

As explained in Chapter 2 , you can delete entities from the database by following these steps: Retrieve the entities into an EntityManager . Remove these objects from the EntityManager ... + an optional variable ObjectDB supports using the java.lang. Object class in queries as an extension

JPA Query API

, which was the only query interface in JPA 1, and the TypedQuery interface, which was introduced in JPA 2 ... is Object . When a more specific result type is expected, use the TypedQuery interface. The TypedQuery ... and TypedQuery objects : Query q1 = em. createQuery ("SELECT c FROM Country c"); TypedQuery q2 = em. createQuery

jakarta.persistence.criteria.CriteriaBuilder

operation Returns: the query object . Since: Jakarta Persistence (JPA) 2 .1 CriteriaQuery createQuery ... (JPA) 2 .1 SetJoin treat ( SetJoin join , Class type ) Downcast SetJoin object to the specified type ... to be downcast to Returns: ListJoin object of the specified type. Since: Jakarta Persistence (JPA) 2 .1

jakarta.persistence.StoredProcedureQuery

Persistence (JPA) 2 .0 int getMaxResults () The maximum number of results the query object was set ... . Inherited from Query Returns: maximum number of results. Since: Jakarta Persistence (JPA) 2 .0 Object ... Persistence (JPA) 2 .0 Set getParameters () Get the parameter objects corresponding to the declared

jakarta.persistence.Query

. Since: Jakarta Persistence (JPA) 3. 2 int getFirstResult () The position of the first result the query object ... Persistence (JPA) 2 .0 Parameter getParameter ( String name , Class type ) Get the parameter object ... Persistence (JPA) 2 .0 Parameter getParameter ( int position ) Get the parameter object corresponding

jakarta.persistence.TypedQuery

(JPA) 2 .0 int getMaxResults () The maximum number of results the query object was set to retrieve ... Persistence (JPA) 2 .0 Parameter getParameter ( int position , Class type ) Get the parameter object ... . Since: Jakarta Persistence (JPA) 2 .0 Object getParameterValue ( String name ) Return the input value

ObjectDB Overview

The ObjectDB Object Database ObjectDB is a powerful Object -Oriented Database Management ... Features 100% pure Java Object -Oriented Database Management System (ODBMS). No proprietary API - managed only by standard Java APIs (JPA / JDO 2 ). Extremely fast - faster than any other JPA / JDO

JPA Class Enhancer

. Without enhancement, only persistent collection and map fields can be loaded lazily (by using proxy objects ... line: ObjectDB Enhancer [version 2 .9.4] Copyright (c) 2025, ObjectDB Software. All rights reserved ... lists the classes that have been enhanced: [ObjectDB 2 .9.4] 3 persistable types have been enhanced

JPA Named Queries

" that retrieves all Country objects from the database: @NamedQuery ( name ="Country.findAll", query ... of named queries. However, because mapping files are mainly useful for Object -Relational Mapping (ORM ... all the managed classes that it is aware of, which includes all entity classes that have objects in

ObjectDB 1.0 Manual

applications using ObjectDB and JDO (Java Data Objects ), the revolutionary database programming ... - About ObjectDB Describes ObjectDB's main features and editions. Chapter 2 - A Quick Tour Demonstrates ... and transactions in JDO. Chapter 6 - Persistent Objects Shows how to store, retrieve, update