public class VectorFile2DatabaseImporter extends java.lang.Object implements SOMToolboxApp
Modifier and Type | Class and Description |
---|---|
private class |
VectorFile2DatabaseImporter.InputVectorImporter
This class customises the handling of data read from the file by storing it in the DB.
|
private class |
VectorFile2DatabaseImporter.TemplateVectorImporter
This class customises the handling of data read from the file by storing it in the DB.
|
SOMToolboxApp.Type
Modifier and Type | Field and Description |
---|---|
static SOMToolboxApp.Type |
APPLICATION_TYPE |
static java.lang.String |
DESCRIPTION |
static java.lang.String |
LONG_DESCRIPTION |
static com.martiansoftware.jsap.Parameter[] |
OPTIONS |
DEV_BY_STRING, HOMEPAGE, INFO, INFO_TEXT, LICENSE_TEXT, REQUIRED_MEMBERS, TYPE_GROUPED_COMPARATOR
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Starts the import to the database.
|
public static final com.martiansoftware.jsap.Parameter[] OPTIONS
public static final java.lang.String DESCRIPTION
public static final java.lang.String LONG_DESCRIPTION
public static final SOMToolboxApp.Type APPLICATION_TYPE
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
java.sql.SQLException
java.io.IOException
public static void main(java.lang.String[] args) throws java.sql.SQLException, java.io.IOException
args
- Needed program arguments:
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.