net.sourceforge.jdbcimporter
Interface DbColumnTranslator

All Superinterfaces:
ColumnTranslator

public interface DbColumnTranslator
extends ColumnTranslator

The DbColumnTranslator interface defines extra methods used to execute queries on the database that is source/destination of the data.

Version:
0.6
Author:
Chris Nagy

Method Summary
 void cleanup()
          Cleanup any database resources (ie.
 void setup(java.sql.Connection con)
          Setup any database resources (ie.
 
Methods inherited from interface net.sourceforge.jdbcimporter.ColumnTranslator
getValue
 

Method Detail

setup

public void setup(java.sql.Connection con)
           throws java.sql.SQLException
Setup any database resources (ie. PreparedStatements). This method is called before the getValue method is called.

Parameters:
con - The connection to the database
Throws:
java.sql.SQLException - If an error occurs

cleanup

public void cleanup()
             throws java.sql.SQLException
Cleanup any database resources (ie. PreparedStatements). This method is called after all the rows are processed.

Throws:
java.sql.SQLException - If an error occurs