Class StoredProcedureQueryImpl

java.lang.Object
org.apache.openjpa.persistence.StoredProcedureQueryImpl
All Implemented Interfaces:
Query, StoredProcedureQuery

public class StoredProcedureQueryImpl extends Object implements StoredProcedureQuery
Implements Store Procedure based query for JPA facade.
A stored procedure query differs from other query types because it may return more than one result set, apart from an optional update count, whereas the traditional query processing in OpenJPA via the abstractions of ResultObjectProvider and org.apache.openjpa.jdbc.sql.Result assumed that a query will return its result in a single list.
This query resorts to a callback mechanism, where the execution of the query returns not a result, but a callback object that can be used to callback to OpenJPA kernel to get a series of results via the traditional result processing pathway.
Author:
Pinaki Poddar, Romain Manni-Bucau