Home » Search

About TransactionRequiredException

11-20 of 41Refresh
Manual
19

Locking in JPA

. A TransactionRequiredException is thrown if there is no active transaction when lock is called because explicit locking requires
Manual
19

Running JPA Queries

").executeUpdate(); A TransactionRequiredException is thrown if no transaction is active. On success
Manual
19

UPDATE SET Queries in JPA/JPQL

(); A TransactionRequiredException is thrown if no transaction is active. On success - the executeUpdate
JPA Doc
13

javax.persistence.TypedQuery

for a criteria query TransactionRequiredException - if there is no transaction QueryTimeoutException ... back TransactionRequiredException - if a lock mode has been set and there is no transaction PessimisticLockException ... is rolled back TransactionRequiredException - if a lock mode has been set and there is no transaction
JPA Doc
10

javax.persistence.Query

query TransactionRequiredException - if there is no transaction QueryTimeoutException ... exceeds the query timeout value set and only the statement is rolled back TransactionRequiredException ... the query timeout value set and only the statement is rolled back TransactionRequiredException - if a lock
JPA Doc
5

executeUpdate()

Method javax.persistence.Query int executeUpdate() Execute an update or delete statement. Returns: the number of entities updated or deleted Throws: IllegalStateException - if called for a Java Persistence query language SELECT statement or for a criteria query TransactionRequiredException
JPA Doc
5

find(entityClass, primaryKey, lockMode)

TransactionRequiredException - if there is no transaction and a lock mode other than NONE is specified
JPA Doc
5

find(entityClass, primaryKey, lockMode, properties)

TransactionRequiredException - if there is no transaction and a lock mode other than NONE is specified
JPA Doc
5

find(entityClass, primaryKey, lockMode, properties)

TransactionRequiredException - if there is no transaction and a lock mode other than NONE is specified
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