ObjectDB ObjectDB

executeUpdate() - JPA Query's method

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 - if there is no 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
Since:
JPA 1.0