src/test/java/spwrap/Customer.java
public Customer map(Result<?> result) {
        if (result.isResultSet()) {
            // ResultSetMapper
            // SAME order and types of result set of list_customers stored proc
            return new Customer(result.getInt(1), result.getString(2), result.getString(3));
        } else {
            // TypedOutputParamMapper
            // SAME order and types of output params of get_customer stored proc
            return new Customer(null, result.getString(1), result.getString(2));
        }
    }
/*
     * (non-Javadoc)
     *
     * @see spwrap.Caller.OutputParamMapper#map(spwrap.result.Result)
     *
     * this method implement both interface TypedOutputParamMapper and
     * ResultSetMapper, so to distinguish between both of them use #isResultSet
     * or #isCallableStatement as below
     */


this method implement both interface TypedOutputParamMapper and
ResultSetMapper, so to distinguish between both of them use #isResultSet
or #isCallableStatement as below
this method implement both interface TypedOutputParamMapper and ResultSetMapper so to distinguish between both of them use #isResultSet or #isCallableStatement as below
public Customer map(Result<?> result) {
        if (result.isResultSet()) {
            return new Customer(result.getInt(1), result.getString(2), result.getString(3));
        } else {
            return new Customer(null, result.getString(1), result.getString(2));
        }
    }
public Customer map ( Result < ? > result ) { if ( result . isResultSet ( ) ) { return new Customer ( result . getInt ( 1 ) , result . getString ( 2 ) , result . getString ( 3 ) ) ; } else { return new Customer ( null , result . getString ( 1 ) , result . getString ( 2 ) ) ; } }
(non-Javadoc)
 @see spwrap.Caller.OutputParamMapper#map(spwrap.result.Result)
( non - Javadoc ) @see spwrap . Caller . OutputParamMapper#map ( spwrap . result . Result )
// ResultSetMapper // SAME order and types of result set of list_customers stored proc // TypedOutputParamMapper // SAME order and types of output params of get_customer stored proc