Package org.dbunit.dataset.filter
Class DefaultTableFilter
java.lang.Object
org.dbunit.dataset.filter.AbstractTableFilter
org.dbunit.dataset.filter.DefaultTableFilter
- All Implemented Interfaces:
ITableFilter,ITableFilterSimple
This filter exposes only tables matching include patterns and not matching
exclude patterns. This implementation do not modify the original table
sequence from the filtered dataset and support duplicate table names.
- Since:
- Apr 17, 2004
- Version:
- $Revision$
- Author:
- Manuel Laflamme
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexcludeTable(String patternName) Add a new refused table pattern name.voidincludeTable(String patternName) Add a new accepted table name pattern.booleanisValidName(String tableName) Returnstrueif specified table is allowed by this filter.Methods inherited from class org.dbunit.dataset.filter.AbstractTableFilter
accept, getTableNames, iteratorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.dbunit.dataset.filter.ITableFilter
getTableNames, iteratorMethods inherited from interface org.dbunit.dataset.filter.ITableFilterSimple
accept
-
Constructor Details
-
DefaultTableFilter
public DefaultTableFilter()
-
-
Method Details
-
includeTable
Add a new accepted table name pattern. The following wildcard characters are supported: '*' matches zero or more characters, '?' matches one character. -
excludeTable
Add a new refused table pattern name. The following wildcard characters are supported: '*' matches zero or more characters, '?' matches one character. -
isValidName
Description copied from class:AbstractTableFilterReturnstrueif specified table is allowed by this filter. This legacy method, now replaced by accept, still exist for compatibily with older environment- Specified by:
isValidNamein classAbstractTableFilter- Throws:
DataSetException
-