org.dbunit.dataset.filter
Class IncludeTableFilter

java.lang.Object
  extended byorg.dbunit.dataset.filter.AbstractTableFilter
      extended byorg.dbunit.dataset.filter.IncludeTableFilter
All Implemented Interfaces:
ITableFilter

public class IncludeTableFilter
extends AbstractTableFilter
implements ITableFilter

This filter exposes only allowed tables from the filtered dataset. This implementation do not modify the original table sequence from the filtered dataset and support duplicate table names.

Since:
Mar 7, 2003
Version:
$Revision: 1.8 $
Author:
Manuel Laflamme

Constructor Summary
IncludeTableFilter()
          Create a new empty IncludeTableFilter.
IncludeTableFilter(java.lang.String[] tableNames)
          Create a new IncludeTableFilter which allow access to specified tables.
 
Method Summary
 void includeTable(java.lang.String patternName)
          Add a new accepted table name pattern.
 boolean isEmpty()
           
 boolean isValidName(java.lang.String tableName)
          Returns true if specified table is allowed by this filter.
 
Methods inherited from class org.dbunit.dataset.filter.AbstractTableFilter
accept, getTableNames, iterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.dbunit.dataset.filter.ITableFilter
accept, getTableNames, iterator
 

Constructor Detail

IncludeTableFilter

public IncludeTableFilter()
Create a new empty IncludeTableFilter. Use includeTable(java.lang.String) to allow access to some tables.


IncludeTableFilter

public IncludeTableFilter(java.lang.String[] tableNames)
Create a new IncludeTableFilter which allow access to specified tables.

Method Detail

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.


isEmpty

public boolean isEmpty()

isValidName

public boolean isValidName(java.lang.String tableName)
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


Copyright © 2002-2005 DbUnit.org. All Rights Reserved.