com.partnersoft.v3x.io.sql
Class DataRecordSourceToDatabaseTable

java.lang.Object
  extended by com.partnersoft.v3x.io.sql.DataRecordSourceToDatabaseTable

public class DataRecordSourceToDatabaseTable
extends java.lang.Object

Copies the contents of a DataRecordSource to a database table.


Constructor Summary
DataRecordSourceToDatabaseTable()
           
 
Method Summary
 void close()
          Run this after the last upload.
 DatabaseConnectionConfig getDatabaseConnection()
           
 DataRecordSource getSource()
           
 java.lang.String getTableName()
           
 void initialize()
          Run this before the first upload.
static void main(java.lang.String[] argv)
           
 void setDatabaseConnection(DatabaseConnectionConfig newDatabaseConnection)
           
 void setSource(DataRecordSource newSource)
           
 void setTableName(java.lang.String newTableName)
           
 void upload()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataRecordSourceToDatabaseTable

public DataRecordSourceToDatabaseTable()
Method Detail

initialize

public void initialize()
                throws java.io.IOException,
                       java.sql.SQLException
Run this before the first upload. Sets up some things and creates the table.

Throws:
java.io.IOException
java.sql.SQLException

upload

public void upload()
            throws java.io.IOException,
                   java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException

close

public void close()
           throws java.io.IOException,
                  java.sql.SQLException
Run this after the last upload.

Throws:
java.io.IOException
java.sql.SQLException

getSource

public DataRecordSource getSource()

setSource

public void setSource(DataRecordSource newSource)

getDatabaseConnection

public DatabaseConnectionConfig getDatabaseConnection()

setDatabaseConnection

public void setDatabaseConnection(DatabaseConnectionConfig newDatabaseConnection)

getTableName

public java.lang.String getTableName()

setTableName

public void setTableName(java.lang.String newTableName)

main

public static void main(java.lang.String[] argv)