com.healthmarketscience.jackcess
Class SimpleImportFilter

java.lang.Object
  extended by 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

Field Summary
static SimpleImportFilter INSTANCE
           
 
Constructor Summary
SimpleImportFilter()
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final SimpleImportFilter INSTANCE
Constructor Detail

SimpleImportFilter

public SimpleImportFilter()
Method Detail

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 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

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.