{
log.entering("DestinationGroupDAOImpl", "getDestinationGroup") ;
updateOrganizationId(destGrp) ;
try
{
DestinationGroup destGrp1 = jdbcTemplate.queryForObject(
"SELECT DestGrpId, DestGrpName, RantId, CDate, MDate FROM DestinationGroup WHERE DestGrpName=? AND RantId=? ",
new Object[]{destGrp.getDestGrpName(), destGrp.getOrganizationId()},
new RowMapper<DestinationGroup>() {
public DestinationGroup mapRow(ResultSet rs, int rowNum) throws SQLException {
DestinationGroup dg = new DestinationGroup();
dg.setDestGrpId(rs.getInt(1)) ;
dg.setDestGrpName(rs.getString(2)) ;
dg.setOrganizationId(rs.getInt(3)) ;
dg.setCreatedDateTime(rs.getDate(4)) ;
dg.setModifiedDateTime(rs.getDate(5)) ;
return dg;
}
});
return destGrp1 ;
}catch (EmptyResultDataAccessException e)