Package org.openbravo.model.ad.utility

Examples of org.openbravo.model.ad.utility.ReferenceDataStore


          final String originalId = xec.getEntityResolver().getOriginalId(ins);
          // completely new object, manually added to the xml
          if (originalId == null) {
            continue;
          }
          final ReferenceDataStore rdl = OBProvider.getInstance().get(ReferenceDataStore.class);
          if (ins instanceof ClientEnabled) {
            rdl.setClient(((ClientEnabled) ins).getClient());
          }
          if (ins instanceof OrganizationEnabled) {
            rdl.setOrganization(((OrganizationEnabled) ins).getOrganization());
          }
          rdl.setGeneric(originalId);
          rdl.setSpecific((String) ins.getId());
          rdl.setTable(OBDal.getInstance().get(Table.class, ins.getEntity().getTableId()));
          if (module != null) {
            rdl.setModule(module);
          }
          OBDal.getInstance().save(rdl);
        }
        OBDal.getInstance().flush();
      } finally {
View Full Code Here

TOP

Related Classes of org.openbravo.model.ad.utility.ReferenceDataStore

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.