com.healthmarketscience.jackcess
Class SimpleImportFilter
java.lang.Object
com.healthmarketscience.jackcess.SimpleImportFilter
- All Implemented Interfaces:
- ImportFilter
public class SimpleImportFilter
- extends Object
- implements ImportFilter
Simple concrete implementation of ImportFilter which just returns the given
values.
- Author:
- James Ahlborn
INSTANCE
public static final SimpleImportFilter INSTANCE
SimpleImportFilter
public SimpleImportFilter()
filterColumns
public List<Column> filterColumns(List<Column> destColumns,
ResultSetMetaData srcColumns)
throws SQLException,
IOException
- Description copied from interface:
ImportFilter
- The columns that should be used to create the imported table.
- Specified by:
filterColumns
in interface ImportFilter
- Parameters:
destColumns
- the columns as determined by the import code, may be
directly modified and returnedsrcColumns
- 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
public Object[] filterRow(Object[] row)
throws SQLException,
IOException
- Description copied from interface:
ImportFilter
- The desired values for the row.
- Specified by:
filterRow
in interface ImportFilter
- 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.