ObjectDB Database Search
101-150 of 200 resultsjakarta.persistence.PersistenceUnitUtil.load(Object,String); Object entity , String attributeName ) Load the persistent value of a given persistent attribute of an entity belonging to the persistence unit and to an open persistence context. After this method returns, PersistenceUnitUtil.isLoaded must return true with the given entity instance | |
jakarta.persistence.PersistenceUnitUtil.load(E,Attribute); E entity , Attribute attribute ) Load the persistent value of a given persistent attribute of an entity belonging to the persistence unit and to an open persistence context. After this method returns, PersistenceUnitUtil.isLoaded must return true with the given entity instance | |
jakarta.persistence.PersistenceUnitUtil.load(Object); Object entity ) Load the persistent state of an entity belonging to the persistence unit ... with the given entity instance. Parameters: entity - entity instance to be loaded Throws: IllegalArgumentException - if the given object is not an instance of an entity class belonging | |
jakarta.persistence.criteria.AbstractQuery.from(EntityType); EntityType 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: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.FlushModeType of all entities in the persistence context which could potentially affect the result of the query ... this by flushing updates to those entities to the database or by some other means. On the other hand, if COMMIT is set, the effect of updates made to entities in the persistence context on queries | |
jakarta.persistence.DiscriminatorColumn for the root of an entity class hierarchy or subhierarchy in which a different inheritance strategy ... to DiscriminatorType.STRING . Example: @ Entity @Table(name = "CUST") @Inheritance(strategy = SINGLE_TABLE ... { ... } @ Entity public class ValuedCustomer extends Customer { ... } See Also: DiscriminatorValue | |
jakarta.persistence.EntityNotFoundException by the persistence provider when an entity reference obtained by EntityManager.getReference is accessed but the entity does not exist. Thrown when EntityManager.refresh is called and the object ... and the entity no longer exists in the database. The current transaction, if one is active | |
jakarta.persistence.EntityListeners Interfaces: Annotation Target: Type Specifies the callback listener classes to be used for an entity or mapped superclass. This annotation may be applied to an entity class or mapped superclass. The specified entity listener classes may have callback methods annotated PrePersist , PreUpdate , PreRemove | |
jakarta.persistence.PersistenceUnitUtil.isLoaded(Object,String) ( Object entity , String attributeName ) Determine the load state of a given persistent attribute of an entity belonging to the persistence unit. Parameters: attributeName - name of attribute whose load state is to be determined entity - entity instance containing the attribute | |
jakarta.persistence.PersistenceUnitUtil.isLoaded(E,Attribute) ( E entity , Attribute attribute ) Determine the load state of a given persistent attribute of an entity belonging to the persistence unit. Parameters: attribute - attribute whose load state is to be determined entity - entity instance containing the attribute Returns: false | |
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.OptimisticLockException.OptimisticLockException(String,Throwable,Object) Jakarta Persistence (JPA) Constructor in jakarta.persistence.OptimisticLockException OptimisticLockException ( String message , Throwable cause , Object entity ... , and entity . Parameters: cause - the cause. message - the detail message. entity - the entity . Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.PersistenceUnitTransactionType Jakarta Persistence. An EntityManager may be a JTA entity manager, where transaction management is done via JTA, or it may be a resource-local entity manager, where transaction management is performed | |
jakarta.persistence.Id Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Id Implemented Interfaces: Annotation Target: Method, Field Identifies the primary key of an entity . The field or property ... for the primary key of the entity is assumed to be the primary key of the primary table. If no Column | |
jakarta.persistence.MapKeyJoinColumns Jakarta Persistence (JPA) Annotation Type jakarta.persistence.MapKeyJoinColumns Implemented Interfaces: Annotation Target: Method, Field Supports composite map keys that reference entities ... that are used to map to the entity that is the map key. Since: Jakarta Persistence (JPA) 1.0 ForeignKey | |
jakarta.persistence.ElementCollection. The CollectionTable annotation specifies a mapping to a database table. Example: @ Entity public class ... strategy is a requirement on the persistence provider runtime that the associated entity | |
jakarta.persistence.EntityExistsException the persistence provider when EntityManager.persist is called and the entity already exists. The current transaction, if one is active, will be marked for rollback. If the entity already exists | |
jakarta.persistence.FieldResult the SELECT list of a SQL query to the properties or fields of an entity class. Example: Query q = em ... "); @SqlResultSetMapping( name = "OrderResults", entities = { @EntityResult( entityClass = com.acme | |
jakarta.persistence.criteria.AbstractQuery.from(Class); Class entityClass ) Create and add a query root corresponding to the given entity , forming a cartesian product with any existing roots. Parameters: entityClass - the entity class Returns: query root corresponding to the given entity . 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.Cache.evict(Class) Jakarta Persistence (JPA) Method in jakarta.persistence.Cache void evict ( Class cls ) Remove the data for entities of the specified class (and its subclasses) from the cache. Parameters: cls - entity class Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.metamodel.Metamodel.getEntities() Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.Metamodel Set getEntities() Return the metamodel entity types. Returns: the metamodel entity types. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.metamodel.Bindable.getBindableJavaType()_ATTRIBUTE , the Java element type is returned. If the bindable type is SINGULAR_ATTRIBUTE or ENTITY _TYPE , the Java type of the represented entity or attribute is returned. Returns: Java type. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CriteriaBuilder.construct(Class,Selection...) that is applied to the results of the query execution. If the constructor is for an entity class, the resulting entities will be in the new state after the query is executed. Parameters: selections - arguments | |
jakarta.persistence.metamodel.IdentifiableType.getSupertype() Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.IdentifiableType IdentifiableType getSupertype() Return the identifiable type that corresponds to the most specific mapped superclass or entity extended by the entity or mapped superclass. Returns: supertype of identifiable type or | |
jakarta.persistence.metamodel.EntityType.getName() Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.EntityType String getName() Return the entity name. Returns: entity name. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.Root.getModel() Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Root EntityType getModel() Return the metamodel entity corresponding to the root. Returns: metamodel entity corresponding to the root. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.CacheStoreMode.USE Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.CacheStoreMode USE Insert entity data into cache when read from database and insert/update entity data when written to the database: this is the default behavior. Does not force refresh of already cached items when reading from database. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.TableGenerator.name Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator String name (optional) A unique generator name that can be referenced by one or more classes to be the generator for id values. Defaults to the name of the entity when the annotation occurs on an entity class or primary key | |
jakarta.persistence.PostPersist Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PostPersist Implemented Interfaces: Annotation Target: Method Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass, or a callback listener | |
jakarta.persistence.PostLoad Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PostLoad Implemented Interfaces: Annotation Target: Method Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass, or a callback listener | |
jakarta.persistence.MapKeyEnumerated, IN_PROGRESS} public enum SalaryRate {JUNIOR, SENIOR, MANAGER, EXECUTIVE} @ Entity public class | |
jakarta.persistence.NamedAttributeNode of an Entity key type. A keySubgraph can not be specified without the Map attribute | |
jakarta.persistence.NamedNativeQueries Jakarta Persistence (JPA) Annotation Type jakarta.persistence.NamedNativeQueries Implemented Interfaces: Annotation Target: Type Declares multiple native SQL named queries. Query names are scoped to the persistence unit. The NamedNativeQueries annotation can be applied to an entity or mapped | |
jakarta.persistence.ConstructorResult annotation in the same order as that of the argument list of the constructor. Any entities returned as | |
jakarta.persistence.Converter entity in the persistence unit, except for attributes for which conversion is overridden by means | |
jakarta.persistence.ColumnResult) AND (order_item = i.id)", "OrderResults"); @SqlResultSetMapping( name = "OrderResults", entities | |
jakarta.persistence.Embedded Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Embedded Implemented Interfaces: Annotation Target: Method, Field Declares a persistent field or property of an entity whose value is an instance of an embeddable class. The embeddable class must be annotated as Embeddable | |
jakarta.persistence.EntityTransaction Jakarta Persistence (JPA) Interface jakarta.persistence.EntityTransaction Interface used to control transactions on resource-local entity managers. The EntityManager.getTransaction method returns the EntityTransaction interface. Since: Jakarta Persistence (JPA) 1.0 The Database Connection using | |
jakarta.persistence.ExcludeSuperclassListeners Jakarta Persistence (JPA) Annotation Type jakarta.persistence.ExcludeSuperclassListeners Implemented Interfaces: Annotation Target: Type Specifies that the invocation of superclass listeners is to be excluded for the entity class (or mapped superclass) and its subclasses. Since: Jakarta | |
jakarta.persistence.Enumerated SalaryRate {JUNIOR, SENIOR, MANAGER, EXECUTIVE} @ Entity public class Employee { public EmployeeStatus | |
jakarta.persistence.ExcludeDefaultListeners Jakarta Persistence (JPA) Annotation Type jakarta.persistence.ExcludeDefaultListeners Implemented Interfaces: Annotation Target: Type Specifies that the invocation of default listeners is to be excluded for the entity class (or mapped superclass) and its subclasses. Since: Jakarta Persistence (JPA | |
jakarta.persistence.PersistenceConfiguration.managedClass(Class) Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceConfiguration PersistenceConfiguration managedClass ( Class managedClass ) Add a managed class (an Entity , Embeddable , MappedSuperclass , or Converter ) to the configuration. Parameters: managedClass - the managed | |
jakarta.persistence.Basic.fetch Jakarta Persistence (JPA) Method in jakarta.persistence.Basic FetchType fetch (Optional) Whether the value of the field or property should be lazily loaded or must be eagerly fetched. The EAGER strategy is a requirement on the persistence provider runtime that the associated entity must be eagerly | |
jakarta.persistence.PersistenceContext.name Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceContext String name (Optional) The name by which the entity manager is to be accessed in the environment referencing context; not needed when dependency injection is used. Default: "" Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.PersistenceContext.unitName Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceContext String unitName (Optional) The name of the persistence unit as defined in the persistence.xml file. If the unitName element is specified, the persistence unit for the entity manager that is accessible in JNDI | |
jakarta.persistence.PersistenceUnit.name Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnit String name (Optional) The name by which the entity manager factory is to be accessed in the environment referencing context; not needed when dependency injection is used. Default: "" Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.PersistenceUnit.unitName Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnit String unitName (Optional) The name of the persistence unit as defined in the persistence.xml file. If specified, the persistence unit for the entity manager factory that is accessible in JNDI must have the same name. Default: "" Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.metamodel.Metamodel.managedType(Class) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.Metamodel ManagedType managedType ( Class cls ) Return the metamodel managed type representing the entity , mapped superclass, or embeddable class. Parameters: cls - the type of the represented managed class Returns | |
jakarta.persistence.metamodel.IdentifiableType.getDeclaredVersion(Class) Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.IdentifiableType SingularAttribute getDeclaredVersion ( Class type ) Return the attribute that corresponds to the version attribute declared by the entity or mapped superclass. Parameters: type - the type |