Package org.openbravo.service.dataset

Examples of org.openbravo.service.dataset.DataSetService$BaseStringComparator


    setBigBazaarAdminContext();

    Map<String, Object> parameters = new HashMap<String, Object>();
    parameters.put("ClientID", "0");

    final DataSetService dss = DataSetService.getInstance();
    final OBCriteria<DataSet> obc = OBDal.getInstance().createCriteria(DataSet.class);
    final List<DataSet> ds = obc.list();
    for (final DataSet d : ds) {
      log.debug("Exporting DataSet: " + d.getName());
      log.debug(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
      final List<DataSetTable> dts = d.getDataSetTableList();
      for (final DataSetTable dt : dts) {
        log.debug("Exporting DataSetTable: " + dt.getTable().getName());
        final List<DataSetColumn> dcs = dt.getDataSetColumnList();

        final List<BaseOBObject> bobs = dss.getExportableObjects(dt, "0", parameters);
        for (final BaseOBObject bob : bobs) {
          final List<Property> ps = dss.getExportableProperties(bob, dt, dcs);
          final StringBuilder sb = new StringBuilder();
          sb.append(bob.getIdentifier() + " has " + ps.size() + " properties to export");
          // . Values: ");
          // for (Property p : ps) {
          // final Object value = bob.get(p.getName());
View Full Code Here

TOP

Related Classes of org.openbravo.service.dataset.DataSetService$BaseStringComparator

Copyright © 2018 www.massapicom. 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.