示例#1
0
 public void readEntity(Cursor cursor, FoodLocale foodlocale, int i) {
   boolean flag2 = true;
   Object obj1 = null;
   Object obj;
   if (cursor.isNull(i + 0)) {
     obj = null;
   } else {
     obj = Long.valueOf(cursor.getLong(i + 0));
   }
   foodlocale.setId(((Long) (obj)));
   if (cursor.isNull(i + 1)) {
     obj = null;
   } else {
     obj = cursor.getString(i + 1);
   }
   foodlocale.setValue(((String) (obj)));
   if (cursor.isNull(i + 2)) {
     obj = null;
   } else {
     obj = cursor.getString(i + 2);
   }
   foodlocale.setLabel(((String) (obj)));
   if (cursor.isNull(i + 3)) {
     obj = null;
   } else {
     boolean flag;
     if (cursor.getShort(i + 3) != 0) {
       flag = true;
     } else {
       flag = false;
     }
     obj = Boolean.valueOf(flag);
   }
   foodlocale.setSupportsLookupByBarCode(((Boolean) (obj)));
   if (cursor.isNull(i + 4)) {
     cursor = obj1;
   } else {
     boolean flag1;
     if (cursor.getShort(i + 4) != 0) {
       flag1 = flag2;
     } else {
       flag1 = false;
     }
     cursor = Boolean.valueOf(flag1);
   }
   foodlocale.setImageUpload(cursor);
 }
示例#2
0
 protected Long updateKeyAfterInsert(FoodLocale foodlocale, long l) {
   foodlocale.setId(Long.valueOf(l));
   return Long.valueOf(l);
 }