public static FanMapper getMapper() {
return MAPPER;
}
public Fan mapRow(ResultSet rs, int rowNum) throws SQLException {
Fan fan = new Fan();
fan.setId(rs.getLong(COLUMN_ID));
fan.setFanId(rs.getLong(COLUMN_FAN_ID));
fan.setFanNickname(rs.getString(COLUMN_FAN_NICKNAME));
fan.setFanPortrait(rs.getString(COLUMN_FAN_PORTRAIT));
fan.setIdolId(rs.getLong(COLUMN_IDOL_ID));
fan.setIdolNickname(rs.getString(COLUMN_IDOL_NICKNAME));
fan.setIdolPortrait(rs.getString(COLUMN_IDOL_PORTRAIT));
fan.setIdolType(IdolType.valueOf(rs.getString(COLUMN_IDOL_TYPE)));
fan.setAttentionType(rs.getBoolean(COLUMN_ATTENTION_TYPE));
fan.setActivity(Activity.valueOf(rs.getString(COLUMN_ACTIVITY)));
fan.setCreateTime(rs.getTimestamp(COLUMN_CREATTIME));
return fan;
}