gistoolkit.datasources.mysql
Class MySQLImporter

java.lang.Object
  extended bygistoolkit.datasources.mysql.MySQLImporter

public class MySQLImporter
extends java.lang.Object

Class to import a shape file into the MYSQL Database.


Constructor Summary
MySQLImporter()
          Creates a new instance of MySQLImporter
 
Method Summary
 void doImport()
          read the records from the shape file and insert them into the database.
static void main(java.lang.String[] inArgs)
          The main routine when run as an executable.
 void setDBConnection(java.lang.String inServer, java.lang.String inPort, java.lang.String inDatabaseName, java.lang.String inTableName, java.lang.String inColumnName, java.lang.String inUsername, java.lang.String inPassword)
          Set the requirements for connecting to the server.
 void setShapeFile(java.lang.String inShapeFileName)
          Set the shape file to use for this importer.
static void showHelp()
          Show the help page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySQLImporter

public MySQLImporter()
Creates a new instance of MySQLImporter

Method Detail

setShapeFile

public void setShapeFile(java.lang.String inShapeFileName)
                  throws java.lang.Exception
Set the shape file to use for this importer.

Throws:
java.lang.Exception

setDBConnection

public void setDBConnection(java.lang.String inServer,
                            java.lang.String inPort,
                            java.lang.String inDatabaseName,
                            java.lang.String inTableName,
                            java.lang.String inColumnName,
                            java.lang.String inUsername,
                            java.lang.String inPassword)
                     throws java.lang.Exception
Set the requirements for connecting to the server.

Throws:
java.lang.Exception

doImport

public void doImport()
              throws java.lang.Exception
read the records from the shape file and insert them into the database.

Throws:
java.lang.Exception

main

public static void main(java.lang.String[] inArgs)
The main routine when run as an executable.


showHelp

public static void showHelp()
Show the help page.