- CascadeType - Enum in javax.persistence
-
Defines the set of cascadable operations that are propagated
to the associated entity.
- ClassTransformer - Interface in javax.persistence.spi
-
- 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
-
- 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
-
- createNamedQuery(String) - Method in interface javax.persistence.EntityManager
-
Create an instance of Query for executing a
named query (in the Java Persistence query language or in 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 a
Java Persistence query language 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
-
- EntityExistsException() - Constructor for exception javax.persistence.EntityExistsException
-
Constructs a new EntityExistsException
exception
with null
as its detail message.
- 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.
- EntityExistsException(Throwable) - Constructor for exception javax.persistence.EntityExistsException
-
Constructs a new EntityExistsException
exception
with the specified 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
-
- 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
-
Returns whether classes in the root of the persistence unit that have not
been explicitly listed are to be included in the set of managed
classes.
- executeUpdate() - Method in interface javax.persistence.Query
-
Execute an update or delete statement.
- GeneratedValue - Annotation Type in javax.persistence
-
Provides for the specification of generation strategies for
the values of primary keys.
- GenerationType - Enum in javax.persistence
-
Defines the types of primary key generation.
- getClassLoader() - Method in interface javax.persistence.spi.PersistenceUnitInfo
-
Returns ClassLoader that the provider may use to load any classes,
resources, or open URLs.
- getDelegate() - Method in interface javax.persistence.EntityManager
-
Return the underlying provider object for the EntityManager,
if available.
- getEntity() - Method in exception javax.persistence.OptimisticLockException
-
Returns the entity that caused this exception.
- getFlushMode() - Method in interface javax.persistence.EntityManager
-
Get the flush mode that applies to all objects contained
in the persistence context.
- getJarFileUrls() - Method in interface javax.persistence.spi.PersistenceUnitInfo
-
Returns a list of URLs for the jar files or exploded jar
file directories that the persistence provider must examine
for managed classes of the persistence unit.
- getJtaDataSource() - Method in interface javax.persistence.spi.PersistenceUnitInfo
-
Returns the JTA-enabled data source to be used by the persistence
provider.
- getManagedClassNames() - Method in interface javax.persistence.spi.PersistenceUnitInfo
-
Returns the list of the names of the classes that the persistence
provider must add it to its set of managed classes.
- getMappingFileNames() - Method in interface javax.persistence.spi.PersistenceUnitInfo
-
Returns the list of mapping file names that the persistence provider must
load to determine the mappings for the entity classes.
- getNewTempClassLoader() - Method in interface javax.persistence.spi.PersistenceUnitInfo
-
Return a new instance of a ClassLoader that the provider
may use to temporarily load any classes, resources, or
open URLs.
- getNonJtaDataSource() - Method in interface javax.persistence.spi.PersistenceUnitInfo
-
Returns the non-JTA-enabled data source to be used by the persistence
provider for accessing data outside a JTA transaction.
- getPersistenceProviderClassName() - Method in interface javax.persistence.spi.PersistenceUnitInfo
-
Returns the fully qualified name of the persistence provider
implementation class.
- getPersistenceUnitName() - Method in interface javax.persistence.spi.PersistenceUnitInfo
-
Returns the name of the persistence unit.
- getPersistenceUnitRootUrl() - Method in interface javax.persistence.spi.PersistenceUnitInfo
-
Returns the URL for the jar file or directory that is the
root of the persistence unit.
- getProperties() - Method in interface javax.persistence.spi.PersistenceUnitInfo
-
Returns properties object.
- getReference(Class<T>, Object) - Method in interface javax.persistence.EntityManager
-
Get an instance, whose state may be lazily fetched.
- getResultList() - Method in interface javax.persistence.Query
-
Execute a SELECT query and return the query results
as a List.
- getRollbackOnly() - Method in interface javax.persistence.EntityTransaction
-
Determine whether the current transaction has been marked
for rollback.
- getSingleResult() - Method in interface javax.persistence.Query
-
Execute a SELECT query that returns a single result.
- getTransaction() - Method in interface javax.persistence.EntityManager
-
Returns the resource-level transaction object.
- getTransactionType() - Method in interface javax.persistence.spi.PersistenceUnitInfo
-
Returns the transaction type of the entity managers created by the
EntityManagerFactory.
- persist(Object) - Method in interface javax.persistence.EntityManager
-
Make an entity instance managed and persistent.
- Persistence - Class in javax.persistence
-
- Persistence() - Constructor for class javax.persistence.Persistence
-
- PERSISTENCE_PROVIDER - Static variable in class javax.persistence.Persistence
-
- PersistenceContext - Annotation Type in javax.persistence
-
- PersistenceContexts - Annotation Type in javax.persistence
-
- 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 a persistence provider.
- PersistenceUnit - Annotation Type in javax.persistence
-
- 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
-
- 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
-
- 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
-
- 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.