If a ProcedureQuery has OUT parameters, they are wrapped in a separate List in the query result. Such list will contain a single Map with OUT parameter values.
Executing ProcedureQuery via {@link org.apache.cayenne.access.DataContext#performQuery(Query)} makes sense only ifthe stored procedure returns a single result set (or alternatively returns a result via OUT parameters and no other result sets). It is still OK if data modification occurs as a side effect. However if the query returns more then one result set, a more generic form should be used: {@link org.apache.cayenne.access.DataContext#performGenericQuery(Query)}.
@author Andrus Adamchik
|
|