Class ExcludeTableFilter

java.lang.Object
org.dbunit.dataset.filter.AbstractTableFilter
org.dbunit.dataset.filter.ExcludeTableFilter
All Implemented Interfaces:
ITableFilter, ITableFilterSimple

public class ExcludeTableFilter extends AbstractTableFilter implements ITableFilter
This filter hides specified tables from the filtered dataset. This implementation do not modify the original table order from the filtered dataset and support duplicate table names.
Since:
Mar 7, 2003
Version:
$Revision$
Author:
Manuel Laflamme
  • Constructor Details

    • ExcludeTableFilter

      public ExcludeTableFilter()
      Create a new empty ExcludeTableFilter. Use excludeTable(java.lang.String) to hide some tables.
    • ExcludeTableFilter

      public ExcludeTableFilter(String[] tableNames)
      Create a new ExcludeTableFilter which prevent access to specified tables.
  • Method Details

    • excludeTable

      public void excludeTable(String patternName)
      Add a new refused table pattern name. The following wildcard characters are supported: '*' matches zero or more characters, '?' matches one character.
    • isEmpty

      public boolean isEmpty()
    • isValidName

      public boolean isValidName(String tableName) throws DataSetException
      Description copied from class: AbstractTableFilter
      Returns true if specified table is allowed by this filter. This legacy method, now replaced by accept, still exist for compatibily with older environment
      Specified by:
      isValidName in class AbstractTableFilter
      Throws:
      DataSetException