ps.setString(4, language.getCompiler());
ps.setLong(5, user);
ps.setTimestamp(6, new Timestamp(new Date().getTime()));
ps.setLong(7, language.getId());
if (ps.executeUpdate() == 0) {
throw new PersistenceException("no such language");
}
} finally {
Database.dispose(ps);
}
this.allLanguages.put(language.getId(), language);
}
} catch (PersistenceException pe) {
throw pe;
} catch (Exception e) {
throw new PersistenceException("Failed to update language.", e);
} finally {
Database.dispose(conn);
}
}