| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vivoweb.harvester.util.CSVtoJDBC
public class CSVtoJDBC
This Class takes the data from a csv file and places it into a database
| Constructor Summary | |
|---|---|
| CSVtoJDBC(ArgList argList)ArgList Constructor | |
| CSVtoJDBC(java.lang.String[] args)Command line Constructor | |
| CSVtoJDBC(java.lang.String filename,
          java.sql.Connection output,
          java.lang.String tableName)Library style Constructor | |
| CSVtoJDBC(java.lang.String filename,
          java.lang.String jdbcDriverClass,
          java.lang.String connLine,
          java.lang.String username,
          java.lang.String password,
          java.lang.String tableName)Library style Constructor | |
| Method Summary | |
|---|---|
|  void | execute()Move CSV data into a recordHandler | 
| static void | main(java.lang.String... args)Main method | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public CSVtoJDBC(java.lang.String filename,
                 java.sql.Connection output,
                 java.lang.String tableName)
          throws org.apache.commons.vfs.FileSystemException
filename - CSV to read fromoutput - The database connection for the outputtableName - table name into which to output
org.apache.commons.vfs.FileSystemException - error establishing connection to file
public CSVtoJDBC(java.lang.String filename,
                 java.lang.String jdbcDriverClass,
                 java.lang.String connLine,
                 java.lang.String username,
                 java.lang.String password,
                 java.lang.String tableName)
          throws java.io.IOException
filename - CSV to read fromjdbcDriverClass - jdbc driver classconnLine - the jdbc connection lineusername - username with which to connectpassword - password with which to connecttableName - table name into which to output
java.io.IOException - error establishing connection to database or file
public CSVtoJDBC(java.lang.String[] args)
          throws java.io.IOException
args - command line arguments
java.io.IOException - error establishing connection to database or file
public CSVtoJDBC(ArgList argList)
          throws java.io.IOException
argList - option set of parsed args
java.io.IOException - error establishing connection to database or file| Method Detail | 
|---|
public void execute()
             throws java.io.IOException
java.io.IOException - error reading from database or filepublic static void main(java.lang.String... args)
args - commandline arguments| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||