com.healthmarketscience.jackcess.util
Interface ImportFilter

All Known Implementing Classes:
SimpleImportFilter

public interface ImportFilter

Interface which allows customization of the behavior of the ImportUtil import methods.

Author:
James Ahlborn
Usage:
General: This class is general use.

Method Summary
 List<ColumnBuilder> filterColumns(List<ColumnBuilder> 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<ColumnBuilder> filterColumns(List<ColumnBuilder> 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–2017 Health Market Science. All rights reserved.