Execute an update or delete statement.
- Returns:
- the number of entities updated or deleted.
- Throws:
- if called for a Jakarta Persistence query language SELECT statement or for a criteria query.IllegalStateException- if the query execution exceeds the query timeout value set and the transaction is rolled back.PersistenceException- if there is no transaction or the persistence context has not been joined to the transaction.TransactionRequiredException- if the statement execution exceeds the query timeout value set and only the statement is rolled back.QueryTimeoutException
- Since:
- Jakarta Persistence (JPA) 1.0