com.healthmarketscience.jackcess
Interface ImportFilter

All Known Implementing Classes:
SimpleImportFilter

public interface ImportFilter

Interface which allows customization of the behavior of the Database import/copy methods.

Author:
James Ahlborn

Method Summary
 List<Column> filterColumns(List<Column> destColumns, ResultSetMetaData srcColumns)
          The columns that should be used to create the imported table.
 Object[] filterRow(Object[] row)
          The desired values for the row.
 

Method Detail

filterColumns

List<Column> filterColumns(List<Column> destColumns,
                           ResultSetMetaData srcColumns)
                           throws SQLException,
                                  IOException
The columns that should be used to create the imported table.

Parameters:
destColumns - the columns as determined by the import code, may be directly modified and returned
srcColumns - the sql metadata, only available if importing from a JDBC source
Returns:
the columns to use when creating the import table
Throws:
SQLException
IOException

filterRow

Object[] filterRow(Object[] row)
                   throws SQLException,
                          IOException
The desired values for the row.

Parameters:
row - the row data as determined by the import code, may be directly modified
Returns:
the row data as it should be written to the import table. if null, the row will be skipped
Throws:
SQLException
IOException


Copyright © 2005-2013 Health Market Science. All Rights Reserved.