public class DefaultColumnFilter extends Object implements IColumnFilter
Constructor and Description |
---|
DefaultColumnFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(String tableName,
Column column)
Tests whether or not the specified column of the specified tableName
should be included by this filter.
|
void |
excludeColumn(String columnPattern)
Add a new refused column name pattern for all tables.
|
void |
excludeColumns(Column[] columns)
Add specified columns to excluded column name list.
|
static ITable |
excludedColumnsTable(ITable table,
Column[] columns)
Returns a table backed by the specified table but with specified
columns excluded.
|
static ITable |
excludedColumnsTable(ITable table,
String[] columnNames)
Returns a table backed by the specified table but with specified
columns excluded.
|
void |
includeColumn(String columnPattern)
Add a new accepted column name pattern for all tables.
|
void |
includeColumns(Column[] columns)
Add specified columns to accepted column name list.
|
static ITable |
includedColumnsTable(ITable table,
Column[] columns)
Returns a table backed by the specified table that only exposes specified
columns.
|
static ITable |
includedColumnsTable(ITable table,
String[] columnNames)
Returns a table backed by the specified table that only exposes specified
columns.
|
String |
toString() |
public void includeColumn(String columnPattern)
columnPattern
- The column pattern to be supportedpublic void includeColumns(Column[] columns)
public void excludeColumn(String columnPattern)
public void excludeColumns(Column[] columns)
public static ITable includedColumnsTable(ITable table, String[] columnNames) throws DataSetException
DataSetException
public static ITable includedColumnsTable(ITable table, Column[] columns) throws DataSetException
DataSetException
public static ITable excludedColumnsTable(ITable table, String[] columnNames) throws DataSetException
DataSetException
public static ITable excludedColumnsTable(ITable table, Column[] columns) throws DataSetException
DataSetException
public boolean accept(String tableName, Column column)
IColumnFilter
accept
in interface IColumnFilter
tableName
- The tableName to be testedcolumn
- The column to be testedtrue
if and only if the given parameter set should be includedCopyright © 2002–2019. All rights reserved.