(no commit message)
[utils] / test / enterprise / src / test / java / org / wamblee / support / persistence / MyTables.java
1 package org.wamblee.support.persistence;
2
3 import org.dbunit.dataset.DataSetException;
4 import org.dbunit.dataset.filter.ITableFilterSimple;
5
6 /**
7  * This class describes the tables we are testing. 
8  * This implementation selects all tables with the "XYZ" prefix. 
9  */
10 public class MyTables implements ITableFilterSimple {
11                 
12         /**
13          * 
14          * @param aJpaTables Specific tables used by the JPA provider in addition to those for the 
15          *   entities.  
16          */
17         public MyTables() { 
18                 // Empty.
19         }
20
21         public boolean accept(String tableName) throws DataSetException {
22                 return tableName.startsWith("XYZ_");
23         }
24
25 }