Package org.nightlabs.jfire.trade

Examples of org.nightlabs.jfire.trade.ArticleContainer


    PersistenceManager pm = event.getPersistenceManager();

    Collection<DirtyObjectID> res = null;
    iterateDirtyObjectID: for (DirtyObjectID dirtyObjectID : event.getDirtyObjectIDs()) {
      ArticleContainer articleContainer = (ArticleContainer) pm.getObjectById(dirtyObjectID.getObjectID());

      AnchorID accID = articleContainer.getCustomerID();
      AnchorID acvID = articleContainer.getVendorID();
      if (customerID != null && !customerID.equals(accID)) {
        if (logger.isDebugEnabled())
          logger.debug("filter: customerID does not match. Skipping: " + dirtyObjectID);

        continue iterateDirtyObjectID;
View Full Code Here


    try {
      monitor.beginTask("Load Delivery Date Information", 500);
      TradeManagerRemote tm = JFireEjb3Factory.getRemoteBean(TradeManagerRemote.class, SecurityReflector.getInitialContextProperties());
      Collection<ArticleContainerDeliveryDateDTO> dtos = tm.getArticleContainerDeliveryDateDTOs(queries);
      for (ArticleContainerDeliveryDateDTO dto : dtos) {
        ArticleContainer ac = getArticleContainer(dto.getArticleContainerID(), fetchGroups, maxFetchDepth, new SubProgressMonitor(monitor, 100 / dtos.size()));
        dto.setArticleContainer(ac);
        Collection<Article> articles = ArticleDAO.sharedInstance().getArticles(dto.getArticleIDs(), fetchGroups, maxFetchDepth, new SubProgressMonitor(monitor, 300 / dtos.size()));
        for (Article article : articles) {
          ArticleID articleID = (ArticleID) JDOHelper.getObjectId(article);
          dto.addArticle(articleID, article);
View Full Code Here

TOP

Related Classes of org.nightlabs.jfire.trade.ArticleContainer

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.