JPA Method
in javax.persistence.EntityManager

StoredProcedureQuery createStoredProcedureQuery(
  String procedureName, 
  String... resultSetMappings
)


Create an instance of StoredProcedureQuery for executing a stored procedure in the database.

Parameters must be registered before the stored procedure can be executed.

The resultSetMapping arguments must be specified in the order in which the result sets will be returned by the stored procedure invocation.

Parameters:
procedureName - name of the stored procedure in the database
resultSetMappings - the names of the result set mappings to be used in mapping result sets returned by the stored procedure
Return:
the new stored procedure query instance
Throws:
IllegalArgumentException - if a stored procedure or result set mapping of the given name does not exist (or the query execution will fail)
Since:
JPA 1.0