About TransactionRequiredException

21-30 of 42Refresh
JPA Doc
5

flush()

Method javax.persistence.EntityManager void flush() Synchronize the persistence context to the underlying database. Throws: TransactionRequiredException - if there is no transaction PersistenceException - if the flush fails Since: JPA 1.0
JPA Doc
5

getLockMode(entity)

Method javax.persistence.EntityManager LockModeType getLockMode(   Object entity ) Get the current lock mode for the entity instance. Parameters: entity - entity instance Returns: lock mode Throws: TransactionRequiredException - if there is no transaction IllegalArgumentException - if the instance
JPA Doc
5

getResultList()

back TransactionRequiredException - if a lock mode has been set and there is no transaction PessimisticLockException
JPA Doc
5

getResultList()

back TransactionRequiredException - if a lock mode has been set and there is no transaction PessimisticLockException
JPA Doc
5

getSingleResult()

the query timeout value set and only the statement is rolled back TransactionRequiredException - if a lock
JPA Doc
5

getSingleResult()

timeout value set and only the statement is rolled back TransactionRequiredException - if a lock mode
JPA Doc
5

javax.persistence.PersistenceException

, OptimisticLockException, PessimisticLockException, QueryTimeoutException, RollbackException, TransactionRequiredException
JPA Doc
5

joinTransaction()

transaction. Throws: TransactionRequiredException - if there is no transaction Since: JPA 1.0
JPA Doc
5

lock(entity, lockMode)

is a detached entity TransactionRequiredException - if there is no transaction EntityNotFoundException
JPA Doc
5

lock(entity, lockMode, properties)

is a detached entity TransactionRequiredException - if there is no transaction EntityNotFoundException