}
Console.displayDev("ContentPersistenceHandler",
"Photo package ID is: " + photoPkgId, true, "scb");
currentPhotoPkg.setPackageId(photoPkgId);
Iterator photos = currentPhotoPkg.getPhotos();
Photo currentPhoto = null;
int currentPhotoId = 0;
while (photos.hasNext()) {
currentPhoto = (Photo) photos.next();
currentPhoto.setPubId(contentPackage.getPubId());
currentPhoto.setSiteId(contentPackage.getSiteId());
try {
currentPhotoId = PhotoCSHelper.storePhoto(currentPhoto, photoPkgId, con);
}
catch (SQLException se) {
PhotoPersistenceException ppe =
new PhotoPersistenceException(se.getMessage(),
"Error trying to insert photo");
exceptionArrayList.add(ppe);
currentPhotoId = 0;
}
Console.displayDev("ContentPersistenceHandler",
"Photo ID is: " + currentPhotoId, true, "scb");
currentPhoto.setPhotoId(currentPhotoId);
}
}
if (articleId != -1 && photoPkgId != -1) {
try {