예제 #1
0
 /** @inheritdoc */
 @Override
 public Long getKey(p7p5 entity) {
   if (entity != null) {
     return entity.getId();
   } else {
     return null;
   }
 }
예제 #2
0
  /** @inheritdoc */
  @Override
  protected void bindValues(SQLiteStatement stmt, p7p5 entity) {
    stmt.clearBindings();

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

    Integer lfdc = entity.getLfdc();
    if (lfdc != null) {
      stmt.bindLong(2, lfdc);
    }

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

    Integer lfac = entity.getLfac();
    if (lfac != null) {
      stmt.bindLong(4, lfac);
    }

    Integer origen = entity.getOrigen();
    if (origen != null) {
      stmt.bindLong(5, origen);
    }

    String obser = entity.getObser();
    if (obser != null) {
      stmt.bindString(6, obser);
    }

    Integer id_formulario = entity.getId_formulario();
    if (id_formulario != null) {
      stmt.bindLong(7, id_formulario);
    }
  }