ar.com.ktulu.dict
Class DBify
java.lang.Object
|
+--ar.com.ktulu.dict.DBify
- public class DBify
- extends java.lang.Object
Reads a dictionary from a flat file and store this information into a
database using jdbc.
Its usage is:
DBify url name data index batch [batch_size]
The needed command line arguments are:
- url JDBC url (for example: jdbc:postgresql:dicts)
- name Dictionary name
- index File where the index is
- data File where the dictionary is
- batch (true/false) If you want to use batchs to insert into
database (more efficient but not all drivers support it)
- batch_size A number telling the amount of inserts in each batch
(default:
MAXST)
- Author:
- Luis Parravicini
- See Also:
MAXST
|
Field Summary |
static int |
MAXST
Default value for the amount of inserts in each batch. |
|
Constructor Summary |
DBify()
|
|
Method Summary |
void |
doit(java.lang.String url,
java.lang.String name,
java.lang.String fidx,
java.lang.String fname,
boolean useBatchs,
int max)
|
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAXST
public static int MAXST
- Default value for the amount of inserts in each batch.
DBify
public DBify()
doit
public void doit(java.lang.String url,
java.lang.String name,
java.lang.String fidx,
java.lang.String fname,
boolean useBatchs,
int max)
throws java.sql.SQLException,
java.io.IOException
java.sql.SQLException
java.io.IOException
main
public static void main(java.lang.String[] args)