public static RatyMapper getMapper() {
return MAPPER;
}
public Raty mapRow(ResultSet rs, int rowNum) throws SQLException {
Raty raty = new Raty();
try {
raty.setId(rs.getLong(COLUMN_ID));
raty.setObjId(rs.getLong(COLUMN_OBJID));
raty.setType(RatyObjType.valueOf(rs.getString(COLUMN_OBJTYPE)));
raty.setUserId(rs.getLong(COLUMN_USERID));
raty.setRatyStar(rs.getInt(COLUMN_RATYSTAR));
raty.setRatyTime(rs.getDate(COLUMN_RATYTIME));
} catch (Exception e) {
return null;
}
return raty;