Class PlSqlQueryExecuterFactory

  • All Implemented Interfaces:
    JRQueryExecuterFactory, QueryExecuterFactory, Designated

    public class PlSqlQueryExecuterFactory
    extends JRJdbcQueryExecuterFactory
    Query executer factory for Oracle queries, both inline SQL and stored procedures. The normal JRJdbcQueryExecuterFactory can be used with Oracle for inline SQL, but not stored procedures.

    To use with an oracle stored procedure that returns results via a REF CURSOR you declare a parameter of type java.sql.ResultSet, and pass that to the stored procedure. For example, if you have a stored procedure named "do_stuff" that takes a string as the first parameter and returns results via the second parameter you would use a query that looks like:
    {call do_stuff($P{the_string_param}, $P{the_result_set_param})}

    This factory creates Oracle query executers for SQL queries.

    Author:
    Barry Klawans (bklawans@users.sourceforge.net) based off of work by Lucian Chirita (lucianc@users.sourceforge.net) in JRJdbcQueryExecuterFactory.java