*/
@Override
public Organization getOrganizationById(int orgId) {
try
{
Organization org = jdbcTemplate.queryForObject(
"SELECT OrgId, OrgName, CDate, MDate FROM Organization WHERE OrgId = ?",
new Object[]{orgId},
new RowMapper<Organization>() {
public Organization mapRow(ResultSet rs, int rowNum) throws SQLException {
Organization org = new Organization();
org.setOrganizationId(rs.getInt(1)) ;
org.setOrganizationName(rs.getString(2)) ;
org.setCreatedDateTime(rs.getDate(3)) ;
org.setModifiedDateTime(rs.getDate(4)) ;
return org;
}
});
return org ;
}catch(EmptyResultDataAccessException e)