Uses of Class
javax.persistence.PersistenceException
Packages that use PersistenceException
-
Uses of PersistenceException in javax.persistence
Subclasses of PersistenceException in javax.persistenceModifier and TypeClassDescriptionclassThrown by the persistence provider whenEntityManager.persist(Object)is called and the entity already exists.classThrown by the persistence provider when an entity reference obtained byEntityManager.getReferenceis accessed but the entity does not exist.classThrown by the persistence provider when an pessimistic locking conflict occurs that does not result in transaction rollback.classThrown by the persistence provider whenQuery.getSingleResult()orTypedQuery.getSingleResult()is executed on a query and there is more than one result from the query.classThrown by the persistence provider whenQuery.getSingleResult()orTypedQuery.getSingleResult()is executed on a query and there is no result to return.classThrown by the persistence provider when an optimistic locking conflict occurs.classThrown by the persistence provider when an pessimistic locking conflict occurs.classThrown by the persistence provider when a query times out and only the statement is rolled back.classThrown by the persistence provider whenEntityTransaction.commit()fails.classThrown by the persistence provider when a transaction is required but is not active.