int executeUpdate()
Return the update count of -1 if there is no pending result or if the first result is not an update count. The provider will call
execute
on the query if needed. - Return:
- the update count or -1 if there is no pending result or if the next result is not an update count.
- Throws:
- TransactionRequiredException - if there is no transaction or the persistence context has not been joined to the transaction
- QueryTimeoutException - if the statement execution exceeds the query timeout value set and only the statement is rolled back
- PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back
- QueryTimeoutException - if the statement execution exceeds the query timeout value set and only the statement is rolled back
- Since:
- JPA 2.1