throw new ContentPersistenceExceptions(exceptionArrayList);
}
article.setArticleId(articleId);
if (article.hasCategoryMappings()) {
Iterator catMaps = article.getCategoryMappings().iterator();
CategoryMapping currentCm = null;
while (catMaps.hasNext()) {
currentCm = (CategoryMapping) catMaps.next();
try {
CatMapCSHelper.storeCatMapping(currentCm, con, article.getArticleId());
}
catch (SQLException sql) {
CategoryMappingPersistenceException cmpe =
new CategoryMappingPersistenceException(sql.getMessage(),
"Error attempting to create category mapping with category name " +
currentCm.getCategoryName() + " and article ID " +
article.getArticleId());
exceptionArrayList.add(cmpe);
}
}
}