コード例 #1
0
  protected Natures loadCurrentDeep(Cursor cursor, boolean lock) {
    Natures entity = loadCurrent(cursor, 0, lock);
    int offset = getAllColumns().length;

    Stats DecreasedStat = loadCurrentOther(daoSession.getStatsDao(), cursor, offset);
    if (DecreasedStat != null) {
      entity.setDecreasedStat(DecreasedStat);
    }
    offset += daoSession.getStatsDao().getAllColumns().length;

    Stats IncreasedStat = loadCurrentOther(daoSession.getStatsDao(), cursor, offset);
    if (IncreasedStat != null) {
      entity.setIncreasedStat(IncreasedStat);
    }
    offset += daoSession.getStatsDao().getAllColumns().length;

    ContestTypes HatesFlavor = loadCurrentOther(daoSession.getContestTypesDao(), cursor, offset);
    if (HatesFlavor != null) {
      entity.setHatesFlavor(HatesFlavor);
    }
    offset += daoSession.getContestTypesDao().getAllColumns().length;

    ContestTypes LikesFlavor = loadCurrentOther(daoSession.getContestTypesDao(), cursor, offset);
    if (LikesFlavor != null) {
      entity.setLikesFlavor(LikesFlavor);
    }

    return entity;
  }
コード例 #2
0
 /** @inheritdoc */
 @Override
 public Long getKey(Natures entity) {
   if (entity != null) {
     return entity.getId();
   } else {
     return null;
   }
 }
コード例 #3
0
 /** @inheritdoc */
 @Override
 public void readEntity(Cursor cursor, Natures entity, int offset) {
   entity.setId(cursor.getLong(offset + 0));
   entity.setIdentifier(cursor.getString(offset + 1));
   entity.setDecreasedStatId(cursor.getLong(offset + 2));
   entity.setIncreasedStatId(cursor.getLong(offset + 3));
   entity.setHatesFlavorId(cursor.getLong(offset + 4));
   entity.setLikesFlavorId(cursor.getLong(offset + 5));
   entity.setGameIndex(cursor.getLong(offset + 6));
 }
コード例 #4
0
 /** @inheritdoc */
 @Override
 protected void bindValues(SQLiteStatement stmt, Natures entity) {
   stmt.clearBindings();
   stmt.bindLong(1, entity.getId());
   stmt.bindString(2, entity.getIdentifier());
   stmt.bindLong(3, entity.getDecreasedStatId());
   stmt.bindLong(4, entity.getIncreasedStatId());
   stmt.bindLong(5, entity.getHatesFlavorId());
   stmt.bindLong(6, entity.getLikesFlavorId());
   stmt.bindLong(7, entity.getGameIndex());
 }
コード例 #5
0
 /** @inheritdoc */
 @Override
 protected Long updateKeyAfterInsert(Natures entity, long rowId) {
   entity.setId(rowId);
   return rowId;
 }
コード例 #6
0
 @Override
 protected void attachEntity(Natures entity) {
   super.attachEntity(entity);
   entity.__setDaoSession(daoSession);
 }