Exemple #1
0
  @Override
  protected void prepareUpdate(Manager.RestrictedStatement statement) throws SQLException {

    statement.setNextString(retailer.name());
    statement.setNextDouble(cost);
    statement.setNextLong(id);
  }
Exemple #2
0
  @Override
  protected void syncResultSet(Manager.RestrictedResult result) throws SQLException {

    id = result.nextLong();
    deviceId = result.nextLong();
    retailer = Retailer.valueOf(result.nextString());
    cost = result.nextDouble();
  }