class generating from ResultSet