ArrayList<PublisherInfo> pInfo = null;
String sql = "SELECT PUBLISHER_ID, PUBLISHER_NAME FROM ODB_PUBLISHER_INFO WHERE PUBLISHER_ID=?";
//SqlParameterSource param = new MapSqlParameterSource("publisherID", pubID);
try {
//pInfo = jdbcTemp.query(sql, param, new PublisherInfoResultSetExtractor());
pInfo = (ArrayList<PublisherInfo> ) jdbcTemp.getJdbcOperations().query(sql, new Object[] {pubID} , new PublisherInfoRowMapper());
} catch (IncorrectResultSizeDataAccessException ex) {
log.info("Publisher " + pubID + " does not exist...");
}
return (pInfo.size()> 0)?pInfo.get(0):null;