A B C D E F G I J L M N O P Q R S T U V

A

addTransformer(ClassTransformer) - Method in interface javax.persistence.spi.PersistenceUnitInfo
Add a transformer supplied by the provider that will be called for every new class definition or class redefinition that gets loaded by the loader returned by the PersistenceInfo.getClassLoader method.
AssociationOverride - Annotation Type in javax.persistence
This annotation is used to override a many-to-one or one-to-one mapping of property or field for an entity relationship.
AssociationOverrides - Annotation Type in javax.persistence
This annotation is used to override mappings of multiple many-to-one or one-to-one relationship properties or fields.
AttributeOverride - Annotation Type in javax.persistence
The AttributeOverride annotation is used to override the mapping of a Basic (whether explicit or default) property or field or Id property or field.
AttributeOverrides - Annotation Type in javax.persistence
Is used to override mappings of multiple properties or fields

B

Basic - Annotation Type in javax.persistence
The Basic annotation is the simplest type of mapping to a database column.
begin() - Method in interface javax.persistence.EntityTransaction
Start a resource transaction.

C

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.

D

DiscriminatorColumn - Annotation Type in javax.persistence
Is used to define the discriminator column for the SINGLE_TABLE and JOINED inheritance mapping strategies.
DiscriminatorType - Enum in javax.persistence
Defines supported types of the discriminator column
DiscriminatorValue - Annotation Type in javax.persistence
Is used to specify the value of the discriminator column for entities of the given type.

E

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.

F

FetchType - Enum in javax.persistence
Defines strategies for fetching data from the database.
FieldResult - Annotation Type in javax.persistence
Is used to map the columns specified in the SELECT list of the query to the properties or fields of the entity class.
find(Class<T>, Object) - Method in interface javax.persistence.EntityManager
Find by primary key.
flush() - Method in interface javax.persistence.EntityManager
Synchronize the persistence context to the underlying database.
FlushModeType - Enum in javax.persistence
Flush mode setting.

G

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
 
getDelegate() - Method in interface javax.persistence.EntityManager
Return the underlying provider object for the EntityManager, if available.
getEntity() - Method in exception javax.persistence.OptimisticLockException
 
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
 
getJtaDataSource() - Method in interface javax.persistence.spi.PersistenceUnitInfo
 
getManagedClassNames() - Method in interface javax.persistence.spi.PersistenceUnitInfo
 
getMappingFileNames() - Method in interface javax.persistence.spi.PersistenceUnitInfo
 
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
 
getPersistenceProviderClassName() - Method in interface javax.persistence.spi.PersistenceUnitInfo
 
getPersistenceUnitName() - Method in interface javax.persistence.spi.PersistenceUnitInfo
 
getPersistenceUnitRootUrl() - Method in interface javax.persistence.spi.PersistenceUnitInfo
 
getProperties() - Method in interface javax.persistence.spi.PersistenceUnitInfo
 
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 the 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 query that returns a single result.
getTransaction() - Method in interface javax.persistence.EntityManager
Return the resource-level transaction object.
getTransactionType() - Method in interface javax.persistence.spi.PersistenceUnitInfo
 

I

Id - Annotation Type in javax.persistence
Specifies the primary key property or field of an entity.
IdClass - Annotation Type in javax.persistence
Specifies a composite primary key class that is mapped to multiple fields or properties of the entity.
Inheritance - Annotation Type in javax.persistence
Defines the inheritance strategy to be used for an entity class hierarchy.
InheritanceType - Enum in javax.persistence
Defines inheritance strategy options.
isActive() - Method in interface javax.persistence.EntityTransaction
Indicate whether a transaction is in progress.
isOpen() - Method in interface javax.persistence.EntityManager
Determine whether the EntityManager is open.
isOpen() - Method in interface javax.persistence.EntityManagerFactory
Indicates whether or not this factory is open.

J

javax.persistence - package javax.persistence
The javax.persistence package contains the classes and interfaces that define the contracts between a persistence provider and the managed classes and the clients of the Java Persistence API.
javax.persistence.spi - package javax.persistence.spi
The javax.persistence.spi package defines the classes and interfaces that are implemented by the persistence provider and the Java EE container for use by the container, provider, and/or Persistence bootstrap class in deployment and bootstrapping.
JoinColumn - Annotation Type in javax.persistence
Is used to specify a mapped column for joining an entity association.
JoinColumns - Annotation Type in javax.persistence
Defines mapping for the composite foreign keys.
JoinTable - Annotation Type in javax.persistence
This annotation is used in the mapping of associations.
joinTransaction() - Method in interface javax.persistence.EntityManager
Indicate to the EntityManager that a JTA transaction is active.

L

Lob - Annotation Type in javax.persistence
Specifies that a persistent property or field should be persisted as a large object to a database-supported large object type.
lock(Object, LockModeType) - Method in interface javax.persistence.EntityManager
Set the lock mode for an entity object contained in the persistence context.
LockModeType - Enum in javax.persistence
Lock modes that can be specified by means of the EntityManager.lock() method.

M

ManyToMany - Annotation Type in javax.persistence
Defines a many-valued association with many-to-many multiplicity.
ManyToOne - Annotation Type in javax.persistence
This annotation defines a single-valued association to another entity class that has many-to-one multiplicity.
MapKey - Annotation Type in javax.persistence
Is used to specify the map key for associations of type Map.
MappedSuperclass - Annotation Type in javax.persistence
Designates a class whose mapping information is applied to the entities that inherit from it.
merge(T) - Method in interface javax.persistence.EntityManager
Merge the state of the given entity into the current persistence context.

N

NamedNativeQueries - Annotation Type in javax.persistence
Is used to specify an array of native SQL named queries.
NamedNativeQuery - Annotation Type in javax.persistence
Is used to specify a native SQL named query.
NamedQueries - Annotation Type in javax.persistence
Specifies an array of named Java Persistence query language queries.
NamedQuery - Annotation Type in javax.persistence
Is used to specify a named query in the Java Persistence query language, which is a static query expressed in metadata.
NonUniqueResultException - Exception in javax.persistence
Thrown by the persistence provider when getSingleResult() is executed on a query and there is more than one result from the query.
NonUniqueResultException() - Constructor for exception javax.persistence.NonUniqueResultException
Constructs a new NonUniqueResultException exception with null as its detail message
NonUniqueResultException(String) - Constructor for exception javax.persistence.NonUniqueResultException
Constructs a new NonUniqueResultException exception with the specified detail message
NoResultException - Exception in javax.persistence
Thrown by the persistence provider when getSingleResult() is executed on a query and there is no result to return.
NoResultException() - Constructor for exception javax.persistence.NoResultException
Constructs a new NoResultException exception with null as its detail message
NoResultException(String) - Constructor for exception javax.persistence.NoResultException
Constructs a new NoResultException exception with the specified detail message.

O

OneToMany - Annotation Type in javax.persistence
Defines a many-valued association with one-to-many multiplicity.
OneToOne - Annotation Type in javax.persistence
This annotation defines a single-valued association to another entity that has one-to-one multiplicity.
OptimisticLockException - Exception in javax.persistence
Thrown by the persistence provider when an optimistic locking conflict occurs.
OptimisticLockException() - Constructor for exception javax.persistence.OptimisticLockException
 
OptimisticLockException(Object) - Constructor for exception javax.persistence.OptimisticLockException
 
OptimisticLockException(Throwable) - Constructor for exception javax.persistence.OptimisticLockException
 
OptimisticLockException(String) - Constructor for exception javax.persistence.OptimisticLockException
 
OptimisticLockException(String, Throwable) - Constructor for exception javax.persistence.OptimisticLockException
 
OptimisticLockException(String, Throwable, Object) - Constructor for exception javax.persistence.OptimisticLockException
 
OrderBy - Annotation Type in javax.persistence
This annotation specifies the ordering of the elements of a collection valued association at the point when the association is retrieved.

P

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
 

Q

Query - Interface in javax.persistence
Interface used to control query execution.
QueryHint - Annotation Type in javax.persistence
An implementation-specific Query hint

R

refresh(Object) - Method in interface javax.persistence.EntityManager
Refresh the state of the instance from the database, overwriting changes made to the entity, if any.
remove(Object) - Method in interface javax.persistence.EntityManager
Remove the entity instance.
rollback() - Method in interface javax.persistence.EntityTransaction
Roll back the current transaction.
RollbackException - Exception in javax.persistence
Thrown by the persistence provider when the EntityTransaction.commit() fails
RollbackException() - Constructor for exception javax.persistence.RollbackException
Constructs a new RollbackException exception with null as its detail message
RollbackException(Throwable) - Constructor for exception javax.persistence.RollbackException
Constructs a new RollbackException exception with the specified cause
RollbackException(String) - Constructor for exception javax.persistence.RollbackException
Constructs a new RollbackException exception with the specified detail message
RollbackException(String, Throwable) - Constructor for exception javax.persistence.RollbackException
Constructs a new RollbackException exception with the specified detail message and cause

S

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

T

Table - Annotation Type in javax.persistence
This annotation specifies the primary table for the annotated entity.
TableGenerator - 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.
Temporal - Annotation Type in javax.persistence
This annotation must be specified for persistent fields or properties of type Date and Calendar.
TemporalType - Enum in javax.persistence
Type used to indicate a specific mapping of Date or Calendar.
TransactionRequiredException - Exception in javax.persistence
Thrown by the persistence provider when a transaction is required but is not active.
TransactionRequiredException() - Constructor for exception javax.persistence.TransactionRequiredException
Constructs a new TransactionRequiredException exception with null as its detail message
TransactionRequiredException(String) - Constructor for exception javax.persistence.TransactionRequiredException
Constructs a new TransactionRequiredException exception with the specified detail message
transform(ClassLoader, String, Class<?>, ProtectionDomain, byte[]) - Method in interface javax.persistence.spi.ClassTransformer
Invoked when a class is being loaded or redefined to add hooks for persistence bytecode manipulation
Transient - Annotation Type in javax.persistence
This annotation specifies that the property or field is not persistent.

U

UniqueConstraint - Annotation Type in javax.persistence
This annotation is used to specify that a unique constraint is to be included in the generated DDL for a primary or secondary table

V

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're declared.
values() - Static method in enum javax.persistence.DiscriminatorType
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum javax.persistence.EnumType
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum javax.persistence.FetchType
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum javax.persistence.FlushModeType
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum javax.persistence.GenerationType
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum javax.persistence.InheritanceType
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum javax.persistence.LockModeType
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum javax.persistence.PersistenceContextType
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum javax.persistence.spi.PersistenceUnitTransactionType
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum javax.persistence.TemporalType
Returns an array containing the constants of this enum type, in the order they're 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.

A B C D E F G I J L M N O P Q R S T U V