예제 #1
0
 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);
 }
예제 #2
0
 public static Level findBy(String key, String value) {
   return adaptFromRecord(Record.findBy(TABLE_NAME, key, value));
 }