org.dbunit.dataset.filter
Class DefaultTableFilter
java.lang.Object
org.dbunit.dataset.filter.AbstractTableFilter
org.dbunit.dataset.filter.DefaultTableFilter
- All Implemented Interfaces:
- ITableFilter
public class DefaultTableFilter
- extends AbstractTableFilter
- implements ITableFilter
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: 554 $
- Author:
- Manuel Laflamme
Method Summary |
void |
excludeTable(java.lang.String patternName)
Add a new refused table pattern name. |
void |
includeTable(java.lang.String patternName)
Add a new accepted table name pattern. |
boolean |
isValidName(java.lang.String tableName)
Returns true if specified table is allowed by this filter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultTableFilter
public DefaultTableFilter()
includeTable
public void includeTable(java.lang.String patternName)
- Add a new accepted table name pattern.
The following wildcard characters are supported:
'*' matches zero or more characters,
'?' matches one character.
excludeTable
public void excludeTable(java.lang.String patternName)
- Add a new refused table pattern name.
The following wildcard characters are supported:
'*' matches zero or more characters,
'?' matches one character.
isValidName
public boolean isValidName(java.lang.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
Copyright © 2002-2008. All Rights Reserved.