|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dbunit.dataset.filter.DefaultColumnFilter
public class DefaultColumnFilter
Implementation of the IColumnFilter interface that exposes columns matching include patterns and not matching exclude patterns.
Constructor Summary | |
---|---|
DefaultColumnFilter()
|
Method Summary | |
---|---|
boolean |
accept(java.lang.String tableName,
Column column)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultColumnFilter()
Method Detail |
---|
public void includeColumn(java.lang.String columnPattern)
public 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
DataSetException
public static ITable includedColumnsTable(ITable table, Column[] columns) throws DataSetException
DataSetException
public static ITable excludedColumnsTable(ITable table, java.lang.String[] columnNames) throws DataSetException
DataSetException
public static ITable excludedColumnsTable(ITable table, Column[] columns) throws DataSetException
DataSetException
public boolean accept(java.lang.String tableName, Column column)
accept
in interface IColumnFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |