Example #1
0
 /** @inheritdoc */
 @Override
 public Long getKey(Firsatlarim entity) {
   if (entity != null) {
     return entity.getId();
   } else {
     return null;
   }
 }
Example #2
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);
    }
  }