StoredProcedureQuery createStoredProcedureQuery(
String procedureName
)
Create an instance of StoredProcedureQuery for executing a stored procedure in the database.
Parameters must be registered before the stored procedure can be executed.
If the stored procedure returns one or more result sets, any result set is returned as a list of type Object[].
- Parameters:
procedureName- name of the stored procedure in the database
- Return:
- the new stored procedure query instance
- Throws:
- IllegalArgumentException - if a stored procedure of the given name does not exist (or if query execution will fail)
- Since:
- JPA 2.1