ObjectDB Database Search
101-150 of 200 resultsjakarta.persistence.LockOption. See Also: LockModeType PessimisticLockScope Timeout EntityManager.lock(Object, LockModeType, LockOption...) Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Interface jakarta. persistence .LockOption An option influencing the behavior of EntityManager.lock . Built-in options control scope , and timeouts . This interface | |
jakarta.persistence.FindOption Timeout EntityManager.find(Class, Object, FindOption...) EntityManager.find(EntityGraph, Object, FindOption...) Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Interface jakarta. persistence .FindOption An option influencing the behavior of EntityManager.find . Built-in options control locking , cache interaction , and timeouts | |
jakarta.persistence.EnumeratedValue Jakarta Persistence (JPA) Annotation Type jakarta. persistence .EnumeratedValue Implemented ... intValue) { this.intValue = intValue; } } See Also: Enumerated EnumType Since: Jakarta Persistence (JPA) 3 .2 Annotation Elements This is a marker annotation with no members/elements. Additional JDK | |
jakarta.persistence.criteria.TemporalField. See Also: LocalDateField LocalTimeField LocalDateTimeField CriteriaBuilder.extract(TemporalField, Expression) Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Interface jakarta. persistence .criteria.TemporalField Type Parameters: - the resulting type of the extracted value - the temporal type (date, time, or datetime) Each | |
jakarta.persistence.criteria.CriteriaSelect Jakarta Persistence (JPA) Interface jakarta. persistence .criteria.CriteriaSelect Type Parameters: - the type returned by the query Abstracts over top-level queries and unions and intersections of top-level queries. Since: Jakarta Persistence (JPA) 3 .2 | |
jakarta.persistence.RefreshOption EntityManager.refresh(Object, RefreshOption...) Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Interface jakarta. persistence .RefreshOption An option influencing the behavior of EntityManager.refresh . Built-in options control locking , cache interaction | |
jakarta.persistence.Persistence.createEntityManagerFactory(PersistenceConfiguration) configured according to the specified persistence unit. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence . Persistence EntityManagerFactory ... an EntityManagerFactory for the named persistence unit, using the given properties. Parameters | |
JPA Core Types and inheritance relationships. Jakarta Persistence (JPA) 3 .2 Core Types Bootstrapping and Configuration Initialize the persistence context and configure the engine using these classes: The primary bootstrap class ... Core Jakarta Persistence (JPA) types provide the foundation for bootstrapping the persistence | |
Entity Management Settings the Enhancer Agent to enhance persistable types on the fly, even if you do not specify it explicitly ... represent different policies: "error" - All persistable classes must be enhanced; otherwise, ObjectDB ... -dirty entities in the persistence context of the EntityManager , which serves as a first-level cache | |
JPA Metamodel Types The Jakarta Persistence (JPA) Metamodel API defines a structured hierarchy of interfaces and enumerations to represent the persistent types within a domain model. Metamodel Types Hierarchy in Jakarta Persistence (JPA) 3 .2 Base type definitions The core abstractions of model types | |
ObjectDB Object Database Features database files (the ObjectDB Doctor ). Standard Persistence APIs ObjectDB is the only Object-Oriented Database with built in support for JPA . Java Persistence API (JPA) Most features of JPA ... Objects (JDO) Complete JDO 2 support (passed the JDO 2 TCK). Support for JDO 3 new features is in | |
jakarta.persistence.PersistenceUnitUtil.load(Object,String) with an open persistence context or cannot be loaded from the database. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .PersistenceUnitUtil void load ( Object entity , String attributeName ) Load the persistent value of a given | |
jakarta.persistence.PersistenceUnitUtil.load(E,Attribute) persistence context or cannot be loaded from the database. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .PersistenceUnitUtil void load ( E entity , Attribute attribute ) Load the persistent value of a given persistent | |
jakarta.persistence.PersistenceUnitUtil.isInstance(Object,Class) or cannot be loaded from the database. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .PersistenceUnitUtil boolean isInstance ... belonging to the persistence unit and to an open persistence context is an instance of the given entity | |
jakarta.persistence.PersistenceUnitUtil.load(Object) or cannot be loaded from the database. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .PersistenceUnitUtil void load ( Object entity ) Load the persistent state of an entity belonging to the persistence unit | |
jakarta.persistence.PersistenceUnitUtil.getClass(T) with an open persistence context or cannot be loaded from the database. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .PersistenceUnitUtil Class getClass ( T entity ) Return the concrete entity class if the given entity belonging to the persistence | |
jakarta.persistence.EntityManager.find(EntityGraph,Object,FindOption...) transaction and a lock mode other than NONE is specified. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .EntityManager T find (   ... type. If the entity instance is contained in the persistence context, it is returned from | |
jakarta.persistence.EntityManager.getReference(T). IllegalArgumentException - if the given object is not an entity, or if it is neither persistent nor detached. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .EntityManager T getReference (   ... may be persistent or detached, but may be neither new nor removed. If the requested instance does not exist in | |
jakarta.persistence.EntityManager.find(Class,Object,FindOption...) transaction and a lock mode other than NONE is specified. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .EntityManager T find ( Class ... it with respect to the specified lock type. If the entity instance is contained in the persistence context | |
jakarta.persistence.PersistenceUnitUtil.isLoaded(E,Attribute) if entity's state has not been loaded or if the attribute state has not been loaded, else true. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .PersistenceUnitUtil boolean isLoaded ... persistent attribute of an entity belonging to the persistence unit. Parameters: attribute - attribute | |
jakarta.persistence.TypedQuery.getSingleResultOrNull() and there is no transaction or the persistence context has not been joined to the transaction. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .TypedQuery X getSingleResultOrNull ... if there is no result. Throws: IllegalStateException - if called for a Jakarta Persistence query | |
jakarta.persistence.EntityManagerFactory.runInTransaction(Consumer) - a function to be executed in the scope of the transaction Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .EntityManagerFactory void runInTransaction ... type of the persistence unit is JTA, and there is a JTA transaction already associated | |
jakarta.persistence.EntityManagerFactory.callInTransaction(Function) Returns: the value returned by the given function. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .EntityManagerFactory R callInTransaction ... of the persistence unit is JTA, and there is a JTA transaction already associated with the caller | |
jakarta.persistence.EntityManager.lock(Object,LockModeType,LockOption...) - if there is no transaction or if invoked on an entity manager which has not been joined to the current transaction. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .EntityManager void lock (   ... an entity instance belonging to the persistence context, obtaining the specified lock mode , using | |
jakarta.persistence.Query.getSingleResultOrNull() the persistence context has not been joined to the transaction. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .Query Object getSingleResultOrNull ... if there is no result. Throws: IllegalStateException - if called for a Jakarta Persistence query language UPDATE or | |
jakarta.persistence.metamodel.Metamodel.entity(String): IllegalArgumentException - if not an entity. See Also: jakarta. persistence .Entity.name Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .metamodel.Metamodel EntityType entity ( String entityName ) Return the metamodel entity type representing the entity. Parameters | |
jakarta.persistence.TypedQuery.setTimeout(Integer), and is an alternative to setting the hint jakarta. persistence .query.timeout . Parameters: timeout - the timeout, in milliseconds, or null to indicate no timeout Returns: the same query instance. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .TypedQuery TypedQuery setTimeout (   | |
jakarta.persistence.StoredProcedureQuery.setTimeout(Integer), and is an alternative to setting the hint jakarta. persistence .query.timeout . Parameters: timeout - the timeout, in milliseconds, or null to indicate no timeout Returns: the same query instance. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .StoredProcedureQuery StoredProcedureQuery | |
jakarta.persistence.EntityManagerFactory.getTransactionType() Jakarta Persistence (JPA) Method in jakarta. persistence .EntityManagerFactory PersistenceUnitTransactionType getTransactionType() The type of transaction management used by this persistence unit, either resource-local transaction management, or JTA. Since: Jakarta Persistence (JPA) 3 .2 | |
jakarta.persistence.EntityManagerFactory.getSchemaManager() factory has been closed. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .EntityManagerFactory SchemaManager getSchemaManager() Return interface providing access to schema management operations for the persistence | |
jakarta.persistence.EntityManager.runWithConnection(ConnectionConsumer) Exception thrown by ConnectionConsumer.accept , if any. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .EntityManager void runWithConnection ... back the transaction. If the given action throws an exception, the persistence provider must mark | |
jakarta.persistence.EntityManager.callWithConnection(ConnectionFunction): PersistenceException - wrapping the checked Exception thrown by ConnectionFunction.apply , if any. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .EntityManager T callWithConnection (   ... action throws an exception, the persistence provider must mark the transaction for rollback. Parameters | |
jakarta.persistence.EntityManagerFactory.getName() Jakarta Persistence (JPA) Method in jakarta. persistence .EntityManagerFactory String getName() The name of the persistence unit. Since: Jakarta Persistence (JPA) 3 .2 | |
jakarta.persistence.EntityManager.setCacheRetrieveMode(CacheRetrieveMode) Jakarta Persistence (JPA) Method in jakarta. persistence .EntityManager void setCacheRetrieveMode ( CacheRetrieveMode cacheRetrieveMode ) Set the default cache retrieval mode for this persistence context. Parameters: cacheRetrieveMode - cache retrieval mode Since: Jakarta Persistence (JPA) 3 .2 | |
jakarta.persistence.EntityManager.setCacheStoreMode(CacheStoreMode) Jakarta Persistence (JPA) Method in jakarta. persistence .EntityManager void setCacheStoreMode ( CacheStoreMode cacheStoreMode ) Set the default cache storage mode for this persistence context. Parameters: cacheStoreMode - cache storage mode Since: Jakarta Persistence (JPA) 3 .2 | |
jakarta.persistence.EntityManager.getCacheRetrieveMode() Jakarta Persistence (JPA) Method in jakarta. persistence .EntityManager CacheRetrieveMode getCacheRetrieveMode() The cache retrieval mode for this persistence context. Since: Jakarta Persistence (JPA) 3 .2 | |
jakarta.persistence.EntityManager.getCacheStoreMode() Jakarta Persistence (JPA) Method in jakarta. persistence .EntityManager CacheStoreMode getCacheStoreMode() The cache storage mode for this persistence context. Since: Jakarta Persistence (JPA) 3 .2 | |
jakarta.persistence.Query.setTimeout(Integer) to setting the hint jakarta. persistence .query.timeout . Parameters: timeout - the timeout, in milliseconds, or null to indicate no timeout Returns: the same query instance. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .Query Query setTimeout (   | |
jakarta.persistence.criteria.CriteriaBuilder.union(CriteriaSelect,CriteriaSelect) of the results of the given queries. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .criteria.CriteriaBuilder CriteriaSelect union ( CriteriaSelect left , CriteriaSelect right ) Create a query | |
jakarta.persistence.criteria.CriteriaBuilder.unionAll(CriteriaSelect,CriteriaSelect) criteria query which returns the union of the results of the given queries. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .criteria.CriteriaBuilder CriteriaSelect unionAll ( CriteriaSelect left , CriteriaSelect right ) Create a query | |
jakarta.persistence.criteria.CriteriaBuilder.intersect(CriteriaSelect,CriteriaSelect) the intersection of the results of the given queries. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .criteria.CriteriaBuilder CriteriaSelect intersect ( CriteriaSelect left , CriteriaSelect right ) Create a query | |
jakarta.persistence.criteria.CriteriaBuilder.intersectAll(CriteriaSelect,CriteriaSelect): a new criteria query which returns the intersection of the results of the given queries. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .criteria.CriteriaBuilder CriteriaSelect intersectAll ( CriteriaSelect left , CriteriaSelect right ) Create a query | |
jakarta.persistence.criteria.CriteriaBuilder.tuple(List): IllegalArgumentException - if an argument is a tuple- or array-valued selection item. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .criteria.CriteriaBuilder CompoundSelection tuple ( List selections ) Create a tuple-valued selection item. Parameters: selections | |
jakarta.persistence.criteria.CriteriaBuilder.array(List): IllegalArgumentException - if an argument is a tuple- or array-valued selection item. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .criteria.CriteriaBuilder CompoundSelection array ( List selections ) Create an array-valued selection item. Parameters | |
jakarta.persistence.criteria.CriteriaBuilder.asc(Expression,Nulls) nullPrecedence - the precedence of null values Returns: ascending ordering corresponding to the expression. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .criteria.CriteriaBuilder Order asc ( Expression expression , Nulls nullPrecedence ) Create an ordering by | |
jakarta.persistence.criteria.CriteriaBuilder.desc(Expression,Nulls) nullPrecedence - the precedence of null values Returns: descending ordering corresponding to the expression. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .criteria.CriteriaBuilder Order desc ( Expression expression , Nulls nullPrecedence ) Create an ordering by | |
jakarta.persistence.TypedQuery.setCacheRetrieveMode(CacheRetrieveMode) the entity manager. Parameters: cacheRetrieveMode - cache retrieval mode Returns: the same query instance. Since: Jakarta Persistence (JPA) 3 .2 ... Jakarta Persistence (JPA) Method in jakarta. persistence .TypedQuery TypedQuery setCacheRetrieveMode ( CacheRetrieveMode cacheRetrieveMode ) Set the cache retrieval mode that is in effect | |
Eclipse/JPA Java EE Tutorial below the form: Persistence is managed by JPA. Every visitor that has signed the guestbook is represented ... for Java EE Developers. GlassFish Server 3 .0.1 (or above). The last version of ObjectDB (just download and extract). The tutorial was written for Eclipse 3 .6.1 but it should work with other Eclipse versions | |
Step 1: Create a Maven Web Project.objectdb.com com.objectdb objectdb 2.8.1 org.eclipse. persistence javax. persistence 2.1.0 javax ... .springframework spring-webmvc 3 .0.5.RELEASE org.springframework spring-tx 3 .0.5.RELEASE org.springframework spring-orm 3 .0.5.RELEASE aopalliance aopalliance 1.0 cglib cglib 2.2 org.aspectj aspectjweaver | |
Step 1: Create a Maven Web Project. persistence javax. persistence 2.1.0   ... org.springframework spring-webmvc 3 .0.5.RELEASE org.springframework spring-tx 3 .0.5.RELEASE |