Friday, 11 October 2013

JDBC Template

If your Query returns single value then use NamedParameterJdbcTemplate:
---------------------------------------------------------------------------

String fanNumber = new NamedParameterJdbcTemplate(
        getJdbcTemplate()).queryForObject(getSQL("OM.GET_ADH_NUM"), params, String.class);

No comments:

Post a Comment