a12d5a6252016e86b61fb31f85c0b1c952c9a848
[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. This implementation selects
8  * all tables with the "XYZ" prefix.
9  */
10 public class MyTables implements ITableFilterSimple {
11
12     /**
13      * 
14      * @param aJpaTables
15      *            Specific tables used by the JPA provider in addition to those
16      *            for the entities.
17      */
18     public MyTables() {
19         // Empty.
20     }
21
22     public boolean accept(String tableName) throws DataSetException {
23         return tableName.startsWith("XYZ_");
24     }
25
26 }