Return the update count or -1 if there is no pending result or if the next result is not an update count.
- Returns:
- update count or -1 if there is no pending result or if the next result is not an update count.
- Throws:
- if the query execution exceeds the query timeout value set and the transaction is rolled back.PersistenceException- if the query execution exceeds the query timeout value set and only the statement is rolled back.QueryTimeoutException
- Since:
- Jakarta Persistence (JPA) 1.0