Examples of PubInfo


Examples of com.xmultra.processor.db.cms.content.PubInfo

    if (pubInfoMap.containsKey(pubName)) {
      return (PubInfo)pubInfoMap.get(pubName);
    }
    ResultSet rs = null;
      PreparedStatement ps = null;
      PubInfo pi = null;
      try {
        ps = con.prepareStatement(PublicationHelper.GET_PUB_INFO_SQL);
        ps.setString(1, pubName);
        rs = ps.executeQuery();
        pi = null;
        while (rs.next()) {
          int siteId = rs.getInt(1);
          int pubId = rs.getInt(2);
          pi = new PubInfo(siteId, pubId);
          pubInfoMap.put(pubName, pi);
        }
      }
      finally {
        if (rs != null) {
View Full Code Here

Examples of com.xmultra.processor.db.cms.content.PubInfo

                article.getArticleId());
            exceptionArrayList.add(cmpe);
          }
        }
      }
      PubInfo pi = null;
      try {
        pi = PublicationHelper.getPubInfoFromPubName(article.getPubName(), con);
      }
      catch (SQLException se) {
        // If there's a problem inserting the article, it's impossible to store
        // related content, so just throw exception.
        RelatedPackagePersistenceException rpe =
            new RelatedPackagePersistenceException(se.getMessage(),
            "Error trying to retrieve publication information for article " +
            article.getArticleId());
        exceptionArrayList.add(rpe);
        throw new ContentPersistenceExceptions(exceptionArrayList);
      }
      contentPackage.setSiteId(pi.getSiteId());
      contentPackage.setPubId(pi.getPubId());
    }

    if (contentPackage.hasPhotoPackage()) {
      PhotoPackage currentPhotoPkg = contentPackage.getPhotoPackage();
      currentPhotoPkg.setPubId(contentPackage.getPubId());
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.