private Level(Record record) { this.record = record; this.id = record.getInteger(Schema.LEVELS.ATTRIBUTE_NAMES.ID); this.levelLayoutString = record.getString(Schema.LEVELS.ATTRIBUTE_NAMES.LEVEL_LAYOUT); this.minimumScore = record.getInteger(Schema.LEVELS.ATTRIBUTE_NAMES.MINIMUM_SCORE); }
public static Level findBy(String key, String value) { return adaptFromRecord(Record.findBy(TABLE_NAME, key, value)); }