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

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