Example #1
0
 /** @inheritdoc */
 @Override
 public void readEntity(Cursor cursor, Firsatlarim entity, int offset) {
   entity.setId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0));
   entity.setFirsat_id(cursor.isNull(offset + 1) ? null : cursor.getLong(offset + 1));
   entity.setSure(cursor.isNull(offset + 2) ? null : cursor.getInt(offset + 2));
   entity.setYararlanildi_mi(cursor.isNull(offset + 3) ? null : cursor.getShort(offset + 3) != 0);
 }
Example #2
0
  protected Firsatlarim loadCurrentDeep(Cursor cursor, boolean lock) {
    Firsatlarim entity = loadCurrent(cursor, 0, lock);
    int offset = getAllColumns().length;

    Firsat firsat = loadCurrentOther(daoSession.getFirsatDao(), cursor, offset);
    entity.setFirsat(firsat);

    return entity;
  }
Example #3
0
 /** @inheritdoc */
 @Override
 public Long getKey(Firsatlarim entity) {
   if (entity != null) {
     return entity.getId();
   } else {
     return null;
   }
 }
Example #4
0
  /** @inheritdoc */
  @Override
  protected void bindValues(SQLiteStatement stmt, Firsatlarim entity) {
    stmt.clearBindings();

    Long id = entity.getId();
    if (id != null) {
      stmt.bindLong(1, id);
    }

    Long firsat_id = entity.getFirsat_id();
    if (firsat_id != null) {
      stmt.bindLong(2, firsat_id);
    }

    Integer sure = entity.getSure();
    if (sure != null) {
      stmt.bindLong(3, sure);
    }

    Boolean yararlanildi_mi = entity.getYararlanildi_mi();
    if (yararlanildi_mi != null) {
      stmt.bindLong(4, yararlanildi_mi ? 1l : 0l);
    }
  }
Example #5
0
 @Override
 protected void attachEntity(Firsatlarim entity) {
   super.attachEntity(entity);
   entity.__setDaoSession(daoSession);
 }
Example #6
0
 /** @inheritdoc */
 @Override
 protected Long updateKeyAfterInsert(Firsatlarim entity, long rowId) {
   entity.setId(rowId);
   return rowId;
 }