Examples of loadData()


Examples of com.gwesm.dao.CastorDAO.loadData()

   * @throws DAOException
   */
  public static void main(final String[] args) throws DAOException {

    DAO dao = new CastorDAO();
    GWESM gwesm = dao.loadData("testsData" + File.separator
        + "GWESM-Sample.xml");
    Account account = gwesm.getAccounts().get(1);

    Display display = new Display();
    final Shell shell = new Shell(display);
View Full Code Here

Examples of com.gwesm.dao.DAO.loadData()

   * @throws DAOException
   */
  public static void main(final String[] args) throws DAOException {

    DAO dao = new CastorDAO();
    GWESM gwesm = dao.loadData("testsData\\GWESM-Sample.xml");

    Character character = gwesm.getAccounts().get(0).getCharacters().get(0);

    Display display = new Display();
    final Shell shell = new Shell(display, SWT.CLOSE | SWT.TITLE | SWT.MIN);
View Full Code Here

Examples of com.gwesm.dao.DAO.loadData()

public class TestMVP {

  public void testname() throws Exception {
    DAO dao = new CastorDAO();
    GWESM gwesm = dao.loadData("testsData\\GWESM-Sample.xml");

    // Character character = null;
    //
    // StatisticsPresenter p = new StatisticsPresenter(gwesm, character);
    // StatisticsView v = new StatisticsView();
View Full Code Here

Examples of com.gwesm.dao.DAO.loadData()

public class TestDAO {

  @Test
  public void testLoadSave() throws Exception {
    DAO dao = new CastorDAO();
    GWESM gwesm = dao.loadData("testsData\\GWESM-Sample.xml");
    dao.saveData(gwesm, "testsData\\outputs\\GWESM-Sample-Output.xml");
  }
}
View Full Code Here

Examples of com.gwesm.dao.DAO.loadData()

    // Sauvegarde
    dao.saveData(gwesm, outputFile);

    // Chargement
    GWESM loadedGwesm = dao.loadData(outputFile);
    // Verif persistence
    Assert.assertEquals(1, loadedGwesm.getAccounts().size());

  }
}
View Full Code Here

Examples of com.gwesm.dao.DAO.loadData()

  }

  public static void main(final String[] args) throws DAOException {

    DAO dao = new CastorDAO();
    GWESM gwesm = dao.loadData("testsData" + File.separator
        + "GWESM-Sample.xml");
    Account account = gwesm.getAccounts().get(0);

    Display display = new Display();
    final Shell shell = new Shell(display);
View Full Code Here

Examples of com.gwesm.dao.DAO.loadData()

   * @throws DAOException
   */
  public static void main(final String[] args) throws DAOException {

    DAO dao = new CastorDAO();
    GWESM gwesm = dao.loadData("testsData" + File.separator
        + "GWESM-Sample.xml");
    Account account = gwesm.getAccounts().get(1);

    Display display = new Display();
    final Shell shell = new Shell(display);
View Full Code Here

Examples of com.haulmont.yarg.loaders.ReportDataLoader.loadData()

    }

    protected List<Map<String, Object>> getQueryData(BandData parentBand, ReportBand band, ReportQuery reportQuery, Map<String, Object> paramsMap) {
        try {
            ReportDataLoader dataLoader = loaderFactory.createDataLoader(reportQuery.getLoaderType());
            return dataLoader.loadData(reportQuery, parentBand, paramsMap);
        } catch (ValidationException e) {
            throw e;
        } catch (Exception e) {
            throw new DataLoadingException(String.format("An error occurred while loading data for band [%s] and query [%s].", band.getName(), reportQuery.getName()), e);
        }
View Full Code Here

Examples of com.haulmont.yarg.loaders.impl.GroovyDataLoader.loadData()

    public void testGroovyLoader() throws Exception {
        GroovyDataLoader groovyDataLoader = new GroovyDataLoader(new DefaultScriptingImpl());
        BandData rootBand = new BandData("band1", null, BandOrientation.HORIZONTAL);
        rootBand.setData(Collections.<String, Object>emptyMap());

        List<Map<String, Object>> result = groovyDataLoader.loadData(
                new ReportQueryImpl("", "return [['a':123, 'b':321], ['a':456, 'b':654]]", "groovy", null, null)
                , rootBand, Collections.<String, Object>emptyMap());
        printResult(result);
    }
View Full Code Here

Examples of com.haulmont.yarg.loaders.impl.JsonDataLoader.loadData()

                "}";

        Map<String, Object> params = new HashMap<String, Object>();
        params.put("param1", json);

        List<Map<String, Object>> maps = jsonDataLoader.loadData(reportQuery, rootBand, params);
        Assert.assertEquals(2, maps.size());

        Map<String, Object> book1 = maps.get(0);
        Assert.assertEquals("Sayings of the Century", book1.get("title"));
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.