Class StoredProcedureOutcome<T>

  • Type Parameters:
    T - Type of the returned result, which has to be Object[]
    All Implemented Interfaces:
    Outcome<T>

    public final class StoredProcedureOutcome<T>
    extends Object
    implements Outcome<T>
    Outcome of a stored procedure with OUT parameters.
    Since:
    0.17
    • Constructor Detail

      • StoredProcedureOutcome

        public StoredProcedureOutcome​(int... indexes)
        Ctor.
        Parameters:
        indexes - Indexes of the OUT params. Index count starts from 1.
    • Method Detail

      • handle

        public T handle​(ResultSet rset,
                        Statement stmt)
                 throws SQLException
        Description copied from interface: Outcome
        Process the result set and return some value.
        Specified by:
        handle in interface Outcome<T>
        Parameters:
        rset - The result set to process
        stmt - The statement used in the run
        Returns:
        The result
        Throws:
        SQLException - If something goes wrong inside