Code example for ResultSet

Methods: getBoolean, getString

0
     
    @Override 
    public SynonymType mapRow(ResultSet rs, int rowCount)
            throws SQLException { 
        SynonymType synonymType = new SynonymType();
        synonymType.setCurrent(rs.getBoolean("is_current"));
        synonymType.setSynonymName(rs.getString("sname").replace(",", ""));
        synonymType.setCvtName(rs.getString("cvtname"));
        return synonymType;
    } 
}