question: private int nameToOutputIndex ( String parameterName ) throws SQLException { parameterMetadata . readMetadataFromDbIfRequired ( ) ; for ( int i = 0 ; i < parameterMetadata . getParameterCount ( ) ; i ++ ) { String name = parameterMetadata . getName ( i + 1 ) ; if ( name != null && name . equalsIgnoreCase ( parameterName ) ) { if ( outputParameterMapper [ i ] == - 1 ) { throw new SQLException ( "Parameter '" + parameterName + "' is not declared as output parameter with method registerOutParameter" ) ; } return outputParameterMapper [ i ] ; } } throw new SQLException ( "there is no parameter with the name " + parameterName ) ; }
target:  Convert parameter name to output parameter index in the query.