JPA Method
in javax.persistence.EntityManager

StoredProcedureQuery createNamedStoredProcedureQuery(
  String name
)


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 will be returned as a list of type Object[].

Parameters:
name - name assigned to the stored procedure query in metadata
Return:
the new stored procedure query instance
Throws:
IllegalArgumentException - if a query has not been defined with the given name
Since:
JPA 2.1