private void storeExceptions(@SuppressWarnings("rawtypes") Iterator itr) throws SQLException {
LOG.log(MessageLogLevel.INFO, "storing exceptions");
PreparedStatement exStmt = connection
.prepareStatement("INSERT INTO SynsetException VALUES(?,?,?,?)");
while (itr.hasNext()) {
Exc exc = (Exc) itr.next();
exStmt.setString(4, exc.getLemma());
@SuppressWarnings("rawtypes")
Iterator excItr = exc.getExceptions().iterator();
while (excItr.hasNext()) {
exStmt.setInt(1, nextId());
exStmt.setString(2, exc.getPOS().getKey());
exStmt.setString(3, (String) excItr.next());
exStmt.execute();
}
}
}