Package net.didion.jwnl.data

Examples of net.didion.jwnl.data.Exc


  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();
      }
    }
  }
View Full Code Here

TOP

Related Classes of net.didion.jwnl.data.Exc

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.