boolean execute()
Return true if the first result corresponds to a result set, and false if it is an update count or if there are no results other than through INOUT and OUT parameters, if any.
- Return:
- true if first result corresponds to result set
- Throws:
- QueryTimeoutException - if the query 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 2.1