logger.logError(errEntry);
return false;
}
catch (ContentPersistenceExceptions cpes) {
Iterator exceptions = cpes.getExceptions().iterator();
ContentPersistenceException cpe = null;
boolean reconnectFlag = false;
while (exceptions.hasNext()) {
cpe = (ContentPersistenceException) exceptions.next();
if (cpe.getSeverityLevel() == ContentPersistenceException.HIGH_SEVERITY) {
this.logError(cpe, "processItem()");
}
else if (cpe.getSeverityLevel() == ContentPersistenceException.LOW_SEVERITY) {
this.logWarning(cpe, "processItem()");
}
if (cpe.reconnect()) {
reconnectFlag = true;
}
}
if (reconnectFlag) {
this.getNewDBConnection();