Package | Description |
---|---|
javax.persistence | |
org.hibernate.jpa.boot.internal | |
org.hibernate.jpa.spi |
Modifier and Type | Class and Description |
---|---|
class |
EntityExistsException
Thrown by the persistence provider when
EntityManager.persist(Object) is called and the entity already exists. |
class |
EntityNotFoundException
Thrown by the persistence provider when an entity reference obtained by
EntityManager.getReference
is accessed but the entity does not exist. |
class |
LockTimeoutException
Thrown by the persistence provider when an pessimistic locking
conflict occurs that does not result in transaction rollback.
|
class |
NonUniqueResultException
Thrown by the persistence provider when
Query.getSingleResult() or TypedQuery.getSingleResult() is executed on a
query and there is more than one result from the query. |
class |
NoResultException
Thrown by the persistence provider when
Query.getSingleResult() or TypedQuery.getSingleResult() is executed on a query
and there is no result to return. |
class |
OptimisticLockException
Thrown by the persistence provider when an optimistic locking conflict
occurs.
|
class |
PessimisticLockException
Thrown by the persistence provider when an pessimistic locking conflict
occurs.
|
class |
QueryTimeoutException
Thrown by the persistence provider when a query times out
and only the statement is rolled back.
|
class |
RollbackException
Thrown by the persistence provider when
EntityTransaction.commit() fails. |
class |
TransactionRequiredException
Thrown by the persistence provider when a transaction is required but is not
active.
|
Modifier and Type | Method and Description |
---|---|
static PersistenceException |
Helper.persistenceException(PersistenceUnitDescriptor persistenceUnit,
String message) |
static PersistenceException |
Helper.persistenceException(PersistenceUnitDescriptor persistenceUnit,
String message,
Exception cause) |
Modifier and Type | Method and Description |
---|---|
PersistenceException |
AbstractEntityManagerImpl.wrapLockException(HibernateException e,
LockOptions lockOptions) |
PersistenceException |
HibernateEntityManagerImplementor.wrapStaleStateException(StaleStateException e) |
PersistenceException |
AbstractEntityManagerImpl.wrapStaleStateException(StaleStateException e) |
Modifier and Type | Method and Description |
---|---|
void |
HibernateEntityManagerImplementor.handlePersistenceException(PersistenceException e)
Handles marking for rollback and other such operations that need to occur depending on the type of
exception being handled.
|
void |
AbstractEntityManagerImpl.handlePersistenceException(PersistenceException e) |
void |
HibernateEntityManagerImplementor.throwPersistenceException(PersistenceException e)
Delegates to
HibernateEntityManagerImplementor.handlePersistenceException(javax.persistence.PersistenceException) and then throws the given exception. |
void |
AbstractEntityManagerImpl.throwPersistenceException(PersistenceException e) |
Copyright © 2017 JBoss by Red Hat. All rights reserved.