APIdia Launch Partner
Top Description Methods
io.github.spannm.jackcess.util

public Interface ImportFilter

Known Direct Implementers
io.github.spannm.jackcess.util.SimpleImportFilter
Imports
io.github.spannm.jackcess.ColumnBuilder, java.sql.ResultSetMetaData, java.util.List

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

Method Summary

Modifier and TypeMethod and Description
public List<ColumnBuilder>

Returns:

the columns to use when creating the import table
filterColumns
(List<ColumnBuilder>
the columns as determined by the import code, may be directly modified and returned
destColumns
,
ResultSetMetaData
the sql metadata, only available if importing from a JDBC source
srcColumns
)

The columns that should be used to create the imported table.

public Object[]

Returns:

the row data as it should be written to the import table. if null, the row will be skipped
filterRow
(Object[]
the row data as determined by the import code, may be directly modified
row
)

The desired values for the row.

Method Detail

filterColumnsback to summary
public List<ColumnBuilder> filterColumns(List<ColumnBuilder> destColumns, ResultSetMetaData srcColumns)

The columns that should be used to create the imported table.

Parameters
destColumns:List<ColumnBuilder>

the columns as determined by the import code, may be directly modified and returned

srcColumns:ResultSetMetaData

the sql metadata, only available if importing from a JDBC source

Returns:List<ColumnBuilder>

the columns to use when creating the import table

filterRowback to summary
public Object[] filterRow(Object[] row)

The desired values for the row.

Parameters
row:Object[]

the row data as determined by the import code, may be directly modified

Returns:Object[]

the row data as it should be written to the import table. if null, the row will be skipped