- CascadeType - Enum in javax.persistence
-
Defines the set of cascadable operations that are propagated to the associated entity.
- ClassTransformer - Interface in javax.persistence.spi
-
A persistence provider provides an instance of this interface
to the PersistenceUnitInfo.addTransformer method.
- clear() - Method in interface javax.persistence.EntityManager
-
Clear the persistence context, causing all managed
entities to become detached.
- close() - Method in interface javax.persistence.EntityManager
-
Close an application-managed EntityManager.
- close() - Method in interface javax.persistence.EntityManagerFactory
-
Close the factory, releasing any resources that it holds.
- Column - Annotation Type in javax.persistence
-
Is used to specify a mapped column for a persistent property or field.
- ColumnResult - Annotation Type in javax.persistence
-
References name of a column in the SELECT clause of a SQL query - i.e.,
column alias, if applicable.
- commit() - Method in interface javax.persistence.EntityTransaction
-
Commit the current transaction, writing any unflushed
changes to the database.
- contains(Object) - Method in interface javax.persistence.EntityManager
-
Check if the instance belongs to the current persistence
context.
- createContainerEntityManagerFactory(PersistenceUnitInfo, Map) - Method in interface javax.persistence.spi.PersistenceProvider
-
Called by the container when an EntityManagerFactory
is to be created.
- createEntityManager() - Method in interface javax.persistence.EntityManagerFactory
-
Create a new EntityManager.
- createEntityManager(Map) - Method in interface javax.persistence.EntityManagerFactory
-
Create a new EntityManager with the specified Map of
properties.
- createEntityManagerFactory(String) - Static method in class javax.persistence.Persistence
-
Create and return an EntityManagerFactory for the named persistence unit.
- createEntityManagerFactory(String, Map) - Static method in class javax.persistence.Persistence
-
Create and return an EntityManagerFactory for the named persistence unit using the given properties.
- createEntityManagerFactory(String, Map) - Method in interface javax.persistence.spi.PersistenceProvider
-
Called by Persistence class when an EntityManagerFactory
is to be created.
- createNamedQuery(String) - Method in interface javax.persistence.EntityManager
-
Create an instance of Query for executing a
named query (in EJB QL or native SQL).
- createNativeQuery(String) - Method in interface javax.persistence.EntityManager
-
Create an instance of Query for executing
a native SQL statement, e.g., for update or delete.
- createNativeQuery(String, Class) - Method in interface javax.persistence.EntityManager
-
Create an instance of Query for executing
a native SQL query.
- createNativeQuery(String, String) - Method in interface javax.persistence.EntityManager
-
Create an instance of Query for executing
a native SQL query.
- createQuery(String) - Method in interface javax.persistence.EntityManager
-
Create an instance of Query for executing an
EJB QL statement.
- Embeddable - Annotation Type in javax.persistence
-
Defines a class whose instances are stored as an intrinsic part of an owning entity and share
the identity of the entity.
- Embedded - Annotation Type in javax.persistence
-
Defines a persistent field or property of an entity whose value is an instance of
an embeddable class.
- EmbeddedId - Annotation Type in javax.persistence
-
Is applied to a persistent field or property of an entity class or mapped superclass to denote
a composite primary key that is an embeddable class.
- Entity - Annotation Type in javax.persistence
-
Specifies that the class is an entity.
- EntityExistsException - Exception in javax.persistence
-
Thrown by the persistence provider when EntityManager.persist(Object) is called and the
entity already exists.
- EntityExistsException() - Constructor for exception javax.persistence.EntityExistsException
-
Constructs a new EntityExistsException exception with null as its detail message.
- EntityExistsException(Throwable) - Constructor for exception javax.persistence.EntityExistsException
-
Constructs a new EntityExistsException exception with the specified cause.
- EntityExistsException(String) - Constructor for exception javax.persistence.EntityExistsException
-
Constructs a new EntityExistsException exception with the specified detail message.
- EntityExistsException(String, Throwable) - Constructor for exception javax.persistence.EntityExistsException
-
Constructs a new EntityExistsException exception with the specified detail message and cause.
- EntityListeners - Annotation Type in javax.persistence
-
Specifies the callback listener classes to be used for an entity or mapped superclass.
- EntityManager - Interface in javax.persistence
-
Interface used to interact with the persistence context.
- EntityManagerFactory - Interface in javax.persistence
-
The EntityManagerFactory interface is used by the application to obtain an
application-managed entity manager.
- EntityNotFoundException - Exception in javax.persistence
-
Thrown by the persistence provider when an entity reference obtained by
EntityManager.getReference(Class,Object) is accessed but the entity does not exist.
- EntityNotFoundException() - Constructor for exception javax.persistence.EntityNotFoundException
-
Constructs a new EntityNotFoundException exception with null as its detail message.
- EntityNotFoundException(String) - Constructor for exception javax.persistence.EntityNotFoundException
-
Constructs a new EntityNotFoundException exception with the specified detail message.
- EntityResult - Annotation Type in javax.persistence
-
References an entity in the SELECT clause of a SQL query.
- EntityTransaction - Interface in javax.persistence
-
The EntityTransaction interface is used to control resource transactions
on resource-local entity managers.
- Enumerated - Annotation Type in javax.persistence
-
Specifies that a persistent property or field should be persisted as a enumerated type.
- EnumType - Enum in javax.persistence
-
Defines mapping for the enumerated types.
- ExcludeDefaultListeners - Annotation Type in javax.persistence
-
Specifies that the invocation of default listeners is to be excluded for the entity class
(or mapped superclass) and its subclasses.
- ExcludeSuperclassListeners - Annotation Type in javax.persistence
-
Specifies that the invocation of superclass listeners is to be excluded for the
entity class (or mapped superclass) and its subclasses.
- excludeUnlistedClasses() - Method in interface javax.persistence.spi.PersistenceUnitInfo
-
- executeUpdate() - Method in interface javax.persistence.Query
-
Execute an update or delete statement.
- persist(Object) - Method in interface javax.persistence.EntityManager
-
Make an entity instance managed and persistent.
- Persistence - Class in javax.persistence
-
Bootstrap class that provides access to an EntityManagerFactory.
- Persistence() - Constructor for class javax.persistence.Persistence
-
- PERSISTENCE_PROVIDER - Static variable in class javax.persistence.Persistence
-
- PersistenceContext - Annotation Type in javax.persistence
-
Expresses a dependency on an EntityManager persistence context.
- PersistenceContexts - Annotation Type in javax.persistence
-
Declares one or more PersistenceContext annotations.
- PersistenceContextType - Enum in javax.persistence
-
Specifies whether a transaction-scoped or extended persistence context is to be used in
PersistenceContext.
- PersistenceException - Exception in javax.persistence
-
Thrown by the persistence provider when a problem occurs.
- PersistenceException() - Constructor for exception javax.persistence.PersistenceException
-
Constructs a new PersistenceException exception with null as its detail message.
- PersistenceException(String) - Constructor for exception javax.persistence.PersistenceException
-
Constructs a new PersistenceException exception with the specified detail message.
- PersistenceException(String, Throwable) - Constructor for exception javax.persistence.PersistenceException
-
Constructs a new PersistenceException exception with the specified detail message and cause
- PersistenceException(Throwable) - Constructor for exception javax.persistence.PersistenceException
-
Constructs a new PersistenceException exception with the specified cause
- PersistenceProperty - Annotation Type in javax.persistence
-
Describes a single container or persistence provider property.
- PersistenceProvider - Interface in javax.persistence.spi
-
Interface implemented by the persistence provider.
- PersistenceUnit - Annotation Type in javax.persistence
-
Expresses a dependency on an EntityManagerFactory.
- PersistenceUnitInfo - Interface in javax.persistence.spi
-
Interface implemented by the container and used by the
persistence provider when creating an EntityManagerFactory.
- PersistenceUnits - Annotation Type in javax.persistence
-
Declares one or more PersistenceUnit annotations
- PersistenceUnitTransactionType - Enum in javax.persistence.spi
-
This enum class defines whether the entity managers created by the EntityManagerFactory will be
JTA or resource-local entity managers.
- PostLoad - Annotation Type in javax.persistence
-
Is used to specify callback methods for the corresponding lifecycle event.
- PostPersist - Annotation Type in javax.persistence
-
Is used to specify callback methods for the corresponding lifecycle event.
- PostRemove - Annotation Type in javax.persistence
-
Is used to specify callback methods for the corresponding lifecycle event.
- PostUpdate - Annotation Type in javax.persistence
-
Is used to specify callback methods for the corresponding lifecycle event.
- PrePersist - Annotation Type in javax.persistence
-
Is used to specify callback methods for the corresponding lifecycle event.
- PreRemove - Annotation Type in javax.persistence
-
Is used to specify callback methods for the corresponding lifecycle event.
- PreUpdate - Annotation Type in javax.persistence
-
Is used to specify callback methods for the corresponding lifecycle event.
- PrimaryKeyJoinColumn - Annotation Type in javax.persistence
-
This annotation specifies a primary key column that is used as a foreign key to join to another
table.
- PrimaryKeyJoinColumns - Annotation Type in javax.persistence
-
This annotation groups PrimaryKeyJoinColumn annotations.
- providers - Static variable in class javax.persistence.Persistence
-
- SecondaryTable - Annotation Type in javax.persistence
-
This annotation is used to specify a secondary table for the annotated entity class.
- SecondaryTables - Annotation Type in javax.persistence
-
This annotation is used to specify multiple secondary tables for an entity.
- SequenceGenerator - Annotation Type in javax.persistence
-
This annotation defines a primary key generator that may be referenced by name when a generator
element is specified for the GeneratedValue annotation.
- setFirstResult(int) - Method in interface javax.persistence.Query
-
Set the position of the first result to retrieve.
- setFlushMode(FlushModeType) - Method in interface javax.persistence.EntityManager
-
Set the flush mode that applies to all objects contained
in the persistence context.
- setFlushMode(FlushModeType) - Method in interface javax.persistence.Query
-
Set the flush mode type to be used for the query execution.
- setHint(String, Object) - Method in interface javax.persistence.Query
-
Set an implementation-specific hint.
- setMaxResults(int) - Method in interface javax.persistence.Query
-
Set the maximum number of results to retrieve.
- setParameter(String, Object) - Method in interface javax.persistence.Query
-
Bind an argument to a named parameter.
- setParameter(String, Date, TemporalType) - Method in interface javax.persistence.Query
-
Bind an instance of java.util.Date to a named parameter.
- setParameter(String, Calendar, TemporalType) - Method in interface javax.persistence.Query
-
Bind an instance of java.util.Calendar to a named parameter.
- setParameter(int, Object) - Method in interface javax.persistence.Query
-
Bind an argument to a positional parameter.
- setParameter(int, Date, TemporalType) - Method in interface javax.persistence.Query
-
Bind an instance of java.util.Date to a positional parameter.
- setParameter(int, Calendar, TemporalType) - Method in interface javax.persistence.Query
-
Bind an instance of java.util.Calendar to a positional parameter.
- setRollbackOnly() - Method in interface javax.persistence.EntityTransaction
-
Mark the current transaction so that the only possible
outcome of the transaction is for the transaction to be
rolled back.
- SqlResultSetMapping - Annotation Type in javax.persistence
-
This annotation is used to specify the mapping of the result of a native SQL query
- SqlResultSetMappings - Annotation Type in javax.persistence
-
This annotation is used to define one or more SqlResultSetMapping
- valueOf(String) - Static method in enum javax.persistence.CascadeType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum javax.persistence.DiscriminatorType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum javax.persistence.EnumType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum javax.persistence.FetchType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum javax.persistence.FlushModeType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum javax.persistence.GenerationType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum javax.persistence.InheritanceType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum javax.persistence.LockModeType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum javax.persistence.PersistenceContextType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum javax.persistence.spi.PersistenceUnitTransactionType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum javax.persistence.TemporalType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum javax.persistence.CascadeType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum javax.persistence.DiscriminatorType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum javax.persistence.EnumType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum javax.persistence.FetchType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum javax.persistence.FlushModeType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum javax.persistence.GenerationType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum javax.persistence.InheritanceType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum javax.persistence.LockModeType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum javax.persistence.PersistenceContextType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum javax.persistence.spi.PersistenceUnitTransactionType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum javax.persistence.TemporalType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- Version - Annotation Type in javax.persistence
-
This annotation specifies the version field or property of an entity class that serves as its
optimistic lock value.