public class DefaultColumnFilter extends java.lang.Object implements IColumnFilter
| Constructor and Description |
|---|
DefaultColumnFilter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.lang.String tableName,
Column column)
Tests whether or not the specified column of the specified tableName
should be included by this filter.
|
void |
excludeColumn(java.lang.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,
java.lang.String[] columnNames)
Returns a table backed by the specified table but with specified
columns excluded.
|
void |
includeColumn(java.lang.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,
java.lang.String[] columnNames)
Returns a table backed by the specified table that only exposes specified
columns.
|
java.lang.String |
toString() |
public void includeColumn(java.lang.String columnPattern)
columnPattern - The column pattern to be supportedpublic void includeColumns(Column[] columns)
public void excludeColumn(java.lang.String columnPattern)
public void excludeColumns(Column[] columns)
public static ITable includedColumnsTable(ITable table, java.lang.String[] columnNames) throws DataSetException
DataSetExceptionpublic static ITable includedColumnsTable(ITable table, Column[] columns) throws DataSetException
DataSetExceptionpublic static ITable excludedColumnsTable(ITable table, java.lang.String[] columnNames) throws DataSetException
DataSetExceptionpublic static ITable excludedColumnsTable(ITable table, Column[] columns) throws DataSetException
DataSetExceptionpublic boolean accept(java.lang.String tableName,
Column column)
IColumnFilteraccept in interface IColumnFiltertableName - The tableName to be testedcolumn - The column to be testedtrue if and only if the given parameter set should be includedpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2002-2018. All Rights Reserved.