if (success) {
if (!_sameConnection) { conn.commit(); }
} else {
if (!_sameConnection) { conn.rollback(); }
throw new PersistenceException(Messages.format(
"persist.keyGenFailed", getClass().getName()));
}
} catch (SQLException ex) {
try {
if (!_sameConnection) { conn.rollback(); }
} catch (SQLException ex2) {
LOG.warn ("Problem rolling back JDBC transaction.", ex2);
}
throw new PersistenceException(Messages.format(
"persist.keyGenSQL", getClass().getName(), ex.toString()), ex);
} finally {
try {
if (stmt != null) { stmt.close(); }
} catch (SQLException ex) {