Examples of load()


Examples of org.pirkaengine.core.PirkaLoader.load()

        context.setEnableCache(true);
        context.setTemplatePath("testdata");
        PirkaLoader loader = new PirkaLoader(context);
       
        String templateName = "Repeat";
        Template tmpl = loader.load(getTemplateFileName(templateName));
        HashMap<String, Object> viewModel = new HashMap<String, Object>();
        viewModel.put("rate", 4);
        String actual = tmpl.generate(viewModel).render();
        assertRenderEquals(templateName, actual);
        return actual;
View Full Code Here

Examples of org.pomizer.wrapper.DeployerChangeSet.load()

       
        try {
            JavaUtils.printToConsole("Loading configuration file...");
           
            DeployerChangeSet changeset = new DeployerChangeSet(configurationFileName);
            changeset.load();
           
            if (0 == changeset.getSize()) {
                JavaUtils.printToConsole("No changes found");
            }
            else {
View Full Code Here

Examples of org.primefaces.model.LazyDataModel.load()

   
    protected void loadLazyData(DataScroller ds, int start, int size) {
        LazyDataModel lazyModel = (LazyDataModel) ds.getValue();
       
        if(lazyModel != null) {     
            List<?> data = lazyModel.load(start, size, null, null, null);
            lazyModel.setPageSize(size);
            lazyModel.setWrappedData(data);
        }
    }
View Full Code Here

Examples of org.radargun.stages.tpcc.domain.Customer.load()

      } else {
         c = new Customer();
         c.setC_id(c_id);
         c.setC_d_id(c_d_id);
         c.setC_w_id(c_w_id);
         found = c.load(basicCache);
         if (!found)
            throw new ElementNotFoundException("C_ID=" + c_id + " C_D_ID=" + c_d_id + " C_W_ID=" + c_w_id + " not found!");
      }

      c.setC_balance(c.getC_balance() + h_amount);
View Full Code Here

Examples of org.radargun.stages.tpcc.domain.District.load()

      w.store(basicCache);

      District d = new District();
      d.setD_id(d_id);
      d.setD_w_id(w_id);
      found = d.load(basicCache);
      if (!found) throw new ElementNotFoundException("D_ID=" + d_id + " D_W_ID=" + w_id + " not found!");

      d.setD_ytd(h_amount);
      d.store(basicCache);
View Full Code Here

Examples of org.radargun.stages.tpcc.domain.Item.load()

         ol_quantity = orderQuantities[ol_number - 1];

         // clause 2.4.2.2 (dot 8.1)
         Item i = new Item();
         i.setI_id(ol_i_id);
         found = i.load(basicCache);
         if (!found) throw new ElementNotFoundException("I_ID=" + ol_i_id + " not found!");


         itemPrices[ol_number - 1] = i.getI_price();
         itemNames[ol_number - 1] = i.getI_name();
View Full Code Here

Examples of org.radargun.stages.tpcc.domain.Order.load()

      for (int id_order = 1; id_order <= TpccTools.NB_MAX_ORDER; id_order++) {
         current = new Order();
         current.setO_id(id_order);
         current.setO_w_id(w_id);
         current.setO_d_id(d_id);
         found = current.load(basicCache);
         if (found && current.getO_c_id() == c_id) {
            list.add(current);
         }
      }
View Full Code Here

Examples of org.radargun.stages.tpcc.domain.OrderLine.load()

         current = new OrderLine();
         current.setOl_w_id(order.getO_w_id());
         current.setOl_d_id(order.getO_d_id());
         current.setOl_o_id(order.getO_id());
         current.setOl_number(i);
         found = current.load(basicCache);
         if (found) list.add(current);
      }
      return list;
   }
}
View Full Code Here

Examples of org.radargun.stages.tpcc.domain.Stock.load()

         // clause 2.4.2.2 (dot 8.2)

         Stock s = new Stock();
         s.setS_i_id(ol_i_id);
         s.setS_w_id(ol_supply_w_id);
         found = s.load(basicCache);
         if (!found) throw new ElementNotFoundException("I_ID=" + ol_i_id + " not found!");


         s_quantity = s.getS_quantity();
         stockQuantities[ol_number - 1] = s_quantity;
View Full Code Here

Examples of org.radargun.stages.tpcc.domain.Warehouse.load()

      String c_data = null, c_new_data, h_data;

      Warehouse w = new Warehouse();
      w.setW_id(w_id);

      boolean found = w.load(basicCache);
      if (!found) throw new ElementNotFoundException("W_ID=" + w_id + " not found!");
      w.setW_ytd(h_amount);
      w.store(basicCache);

      District d = new District();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.