From 536dba67c7c64d0d012b544c50ce52af72de06bd Mon Sep 17 00:00:00 2001 From: amontano Date: Sat, 26 Jun 2004 13:12:51 +0000 Subject: [PATCH] Now inserts manually also using SQL statements. --- .../org/thdl/lex/util/DictionaryImporter.java | 202 ++++++++++++++---- 1 file changed, 161 insertions(+), 41 deletions(-) diff --git a/src/java/org/thdl/lex/util/DictionaryImporter.java b/src/java/org/thdl/lex/util/DictionaryImporter.java index 192ebbc..124381c 100644 --- a/src/java/org/thdl/lex/util/DictionaryImporter.java +++ b/src/java/org/thdl/lex/util/DictionaryImporter.java @@ -6,6 +6,7 @@ import java.util.*; import org.thdl.lex.*; import org.thdl.lex.component.*; import org.thdl.tib.scanner.Manipulate; +import java.sql.*; public class DictionaryImporter { @@ -18,6 +19,7 @@ public class DictionaryImporter private static Integer proj; private static String publicCons; private static Integer label; + private static Statement sqlStatement; public final static int delimiterGeneric=0; public final static int delimiterAcip=1; @@ -28,7 +30,7 @@ public class DictionaryImporter { String entrada, s1, s2, alternateWords[]; int marker, marker2, len, currentLine=1; - long start = System.currentTimeMillis(); + //long start = System.currentTimeMillis(); while ((entrada = in.readLine())!=null) { @@ -68,56 +70,136 @@ public class DictionaryImporter alternateWords = s1.split(";"); for (marker2=0; marker2