Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
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
AssociationOverrides
- Annotation Type in
javax.persistence
AttributeOverride
- Annotation Type in
javax.persistence
AttributeOverrides
- Annotation Type in
javax.persistence
B
Basic
- Annotation Type in
javax.persistence
begin()
- Method in interface javax.persistence.
EntityTransaction
Start a resource transaction.
C
CascadeType
- Enum in
javax.persistence
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
ColumnResult
- Annotation Type in
javax.persistence
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
createEntityManagerFactory(String, Map)
- Static method in class javax.persistence.
Persistence
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
DiscriminatorType
- Enum in
javax.persistence
DiscriminatorValue
- Annotation Type in
javax.persistence
E
Embeddable
- Annotation Type in
javax.persistence
Embedded
- Annotation Type in
javax.persistence
EmbeddedId
- Annotation Type in
javax.persistence
Entity
- Annotation Type in
javax.persistence
EntityExistsException
- Exception in
javax.persistence
EntityExistsException()
- Constructor for exception javax.persistence.
EntityExistsException
EntityExistsException(Throwable)
- Constructor for exception javax.persistence.
EntityExistsException
EntityExistsException(String)
- Constructor for exception javax.persistence.
EntityExistsException
EntityExistsException(String, Throwable)
- Constructor for exception javax.persistence.
EntityExistsException
EntityListeners
- Annotation Type in
javax.persistence
comment
EntityManager
- Interface in
javax.persistence
Interface used to interact with the persistence context.
EntityManagerFactory
- Interface in
javax.persistence
EntityNotFoundException
- Exception in
javax.persistence
EntityNotFoundException()
- Constructor for exception javax.persistence.
EntityNotFoundException
EntityNotFoundException(String, Throwable)
- Constructor for exception javax.persistence.
EntityNotFoundException
EntityNotFoundException(String)
- Constructor for exception javax.persistence.
EntityNotFoundException
EntityNotFoundException(Throwable)
- Constructor for exception javax.persistence.
EntityNotFoundException
EntityResult
- Annotation Type in
javax.persistence
EntityTransaction
- Interface in
javax.persistence
Enumerated
- Annotation Type in
javax.persistence
EnumType
- Enum in
javax.persistence
ExcludeDefaultListeners
- Annotation Type in
javax.persistence
ExcludeSuperclassListeners
- Annotation Type in
javax.persistence
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
FieldResult
- Annotation Type in
javax.persistence
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.
FlushMode
- Annotation Type in
javax.persistence
FlushModeType
- Enum in
javax.persistence
G
GeneratedValue
- Annotation Type in
javax.persistence
GenerationType
- Enum in
javax.persistence
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.
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
IdClass
- Annotation Type in
javax.persistence
Inheritance
- Annotation Type in
javax.persistence
InheritanceType
- Enum in
javax.persistence
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 the factory is open.
J
javax.persistence
- package javax.persistence
javax.persistence.spi
- package javax.persistence.spi
JoinColumn
- Annotation Type in
javax.persistence
JoinColumns
- Annotation Type in
javax.persistence
JoinTable
- Annotation Type in
javax.persistence
joinTransaction()
- Method in interface javax.persistence.
EntityManager
Indicate to the EntityManager that a JTA transaction is active.
L
Lob
- Annotation Type in
javax.persistence
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
M
ManyToMany
- Annotation Type in
javax.persistence
ManyToOne
- Annotation Type in
javax.persistence
MapKey
- Annotation Type in
javax.persistence
MappedSuperclass
- Annotation Type in
javax.persistence
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
NamedNativeQuery
- Annotation Type in
javax.persistence
NamedQueries
- Annotation Type in
javax.persistence
NamedQuery
- Annotation Type in
javax.persistence
NonUniqueResultException
- Exception in
javax.persistence
NonUniqueResultException()
- Constructor for exception javax.persistence.
NonUniqueResultException
NonUniqueResultException(String)
- Constructor for exception javax.persistence.
NonUniqueResultException
NonUniqueResultException(String, Throwable)
- Constructor for exception javax.persistence.
NonUniqueResultException
NonUniqueResultException(Throwable)
- Constructor for exception javax.persistence.
NonUniqueResultException
NoResultException
- Exception in
javax.persistence
Expected an entity result, but none found.
NoResultException()
- Constructor for exception javax.persistence.
NoResultException
NoResultException(String, Throwable)
- Constructor for exception javax.persistence.
NoResultException
NoResultException(String)
- Constructor for exception javax.persistence.
NoResultException
NoResultException(Throwable)
- Constructor for exception javax.persistence.
NoResultException
O
OneToMany
- Annotation Type in
javax.persistence
OneToOne
- Annotation Type in
javax.persistence
OptimisticLockException
- Exception in
javax.persistence
OptimisticLockException()
- 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
OrderBy
- Annotation Type in
javax.persistence
P
persist(Object)
- Method in interface javax.persistence.
EntityManager
Make an 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
Comment
PersistenceContexts
- Annotation Type in
javax.persistence
Comment
PersistenceContextType
- Enum in
javax.persistence
PersistenceException
- Exception in
javax.persistence
Comment
PersistenceException()
- Constructor for exception javax.persistence.
PersistenceException
PersistenceException(String)
- Constructor for exception javax.persistence.
PersistenceException
PersistenceException(String, Throwable)
- Constructor for exception javax.persistence.
PersistenceException
PersistenceException(Throwable)
- Constructor for exception javax.persistence.
PersistenceException
PersistenceProvider
- Interface in
javax.persistence.spi
Interface implemented by the persistence provider.
PersistenceUnit
- Annotation Type in
javax.persistence
Comment
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
Comment
PersistenceUnitTransactionType
- Enum in
javax.persistence.spi
Defines whether a persistence unit will be JTA managed or manged locally with EntityTransactions
PostLoad
- Annotation Type in
javax.persistence
comment
PostPersist
- Annotation Type in
javax.persistence
comment
PostRemove
- Annotation Type in
javax.persistence
comment
PostUpdate
- Annotation Type in
javax.persistence
comment
PrePersist
- Annotation Type in
javax.persistence
comment
PreRemove
- Annotation Type in
javax.persistence
comment
PreUpdate
- Annotation Type in
javax.persistence
comment
PrimaryKeyJoinColumn
- Annotation Type in
javax.persistence
PrimaryKeyJoinColumns
- Annotation Type in
javax.persistence
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
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
Exception occurs while commiting the transaction
RollbackException()
- Constructor for exception javax.persistence.
RollbackException
RollbackException(Throwable)
- Constructor for exception javax.persistence.
RollbackException
RollbackException(String)
- Constructor for exception javax.persistence.
RollbackException
RollbackException(String, Throwable)
- Constructor for exception javax.persistence.
RollbackException
S
SecondaryTable
- Annotation Type in
javax.persistence
SecondaryTables
- Annotation Type in
javax.persistence
SequenceGenerator
- Annotation Type in
javax.persistence
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
SqlResultSetMappings
- Annotation Type in
javax.persistence
T
Table
- Annotation Type in
javax.persistence
TableGenerator
- Annotation Type in
javax.persistence
Temporal
- Annotation Type in
javax.persistence
TemporalType
- Enum in
javax.persistence
TransactionRequiredException
- Exception in
javax.persistence
TransactionRequiredException()
- Constructor for exception javax.persistence.
TransactionRequiredException
TransactionRequiredException(String)
- Constructor for exception javax.persistence.
TransactionRequiredException
TransactionRequiredException(String, Throwable)
- Constructor for exception javax.persistence.
TransactionRequiredException
TransactionRequiredException(Throwable)
- Constructor for exception javax.persistence.
TransactionRequiredException
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
U
UniqueConstraint
- Annotation Type in
javax.persistence
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
A
B
C
D
E
F
G
I
J
L
M
N
O
P
Q
R
S
T
U
V
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes