Ejemplo n.º 1
0
  @Override
  public boolean load(CacheWrapper wrapper, int nodeIndex) throws Throwable {

    FpbValue value = (FpbValue) wrapper.get(null, wrapper.createKey(this.getKey(), nodeIndex));
    if (value == null) return false;
    TpccOrderLine orderline = value.getOrderline();

    this.ol_i_id = orderline.getOlIId();
    this.ol_supply_w_id = orderline.getOlSupplyWId();
    this.ol_delivery_d = orderline.getOlDeliveryD();
    this.ol_quantity = orderline.getOlQuantity();
    this.ol_amount = orderline.getOlAmount();
    this.ol_dist_info = orderline.getOlDistInfo();

    return true;
  }