at.tuwien.ifs.somtoolbox.database
Class VectorFile2DatabaseImporter
java.lang.Object
at.tuwien.ifs.somtoolbox.database.VectorFile2DatabaseImporter
- All Implemented Interfaces:
- SOMToolboxApp
public class VectorFile2DatabaseImporter
- extends java.lang.Object
- implements SOMToolboxApp
Imports input and template vector files to a database.
- Version:
- $Id: VectorFile2DatabaseImporter.java 3683 2010-07-15 09:13:01Z frank $
- Author:
- Rudolf Mayer
Constructor Summary |
VectorFile2DatabaseImporter(java.lang.String inputVectorFile,
java.lang.String templateVectorFile,
java.lang.String databaseServerAddress,
java.lang.String databaseName,
java.lang.String user,
java.lang.String password,
java.lang.String databaseTableNamePrefix)
|
Method Summary |
static void |
main(java.lang.String[] args)
Starts the import to the database. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OPTIONS
public static final com.martiansoftware.jsap.Parameter[] OPTIONS
DESCRIPTION
public static final java.lang.String DESCRIPTION
- See Also:
- Constant Field Values
LONG_DESCRIPTION
public static final java.lang.String LONG_DESCRIPTION
- See Also:
- Constant Field Values
APPLICATION_TYPE
public static final SOMToolboxApp.Type APPLICATION_TYPE
VectorFile2DatabaseImporter
public VectorFile2DatabaseImporter(java.lang.String inputVectorFile,
java.lang.String templateVectorFile,
java.lang.String databaseServerAddress,
java.lang.String databaseName,
java.lang.String user,
java.lang.String password,
java.lang.String databaseTableNamePrefix)
throws java.sql.SQLException,
java.io.IOException
- Throws:
java.sql.SQLException
java.io.IOException
main
public static void main(java.lang.String[] args)
throws java.sql.SQLException,
java.io.IOException
- Starts the import to the database.
- Parameters:
args
- Needed program arguments:
- -v inputVectorFile, mandatory
- -t templateVectorFile, mandatory
- --dbName databaseName, mandatory
- --tablePrefix databaseTableNamePrefix, mandatory
- --server databaseServerAddress, optional
- --user databaseUser, optional
- --password databasePassword, optional
- Throws:
java.sql.SQLException
- If there is a problem connecting to the database.
java.io.IOException
- If the input or template vector file can't be read.