private < T , U > U queryStreamWithOrdinalParams ( String sql , PreparedStatementSetter pss , RowMapper < T > mapper , Function < ? super Stream < T > , U > handleStream ) { SQLExceptionTranslator excTranslator = jdbcTemplate . getExceptionTranslator ( ) ; ResultSetExtractor < U > extractor = new StreamResultSetExtractor ( sql , mapper , handleStream , excTranslator ) ; return jdbcTemplate . query ( sql , pss , extractor ) ; }
Executes a quey for stream with ordinal parameters .