Returning other datatypes from JdbcTemplate and implementing rowmapper