@Override protected void prepareUpdate(Manager.RestrictedStatement statement) throws SQLException { statement.setNextString(retailer.name()); statement.setNextDouble(cost); statement.setNextLong(id); }
@Override protected void syncResultSet(Manager.RestrictedResult result) throws SQLException { id = result.nextLong(); deviceId = result.nextLong(); retailer = Retailer.valueOf(result.nextString()); cost = result.nextDouble(); }