Jakarta Persistence (JPA) Method

int getUpdateCount()


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:
PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back.
QueryTimeoutException - if the query execution exceeds the query timeout value set and only the statement is rolled back.
Since:
Jakarta Persistence (JPA) 1.0