X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;ds=inline;f=test%2Fjpatest-eclipselink%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fsupport%2Fpersistence%2Feclipselink%2FEclipselinkTables.java;fp=test%2Fjpatest-eclipselink%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fsupport%2Fpersistence%2Feclipselink%2FEclipselinkTables.java;h=29872d016b5b79e0735a4252e145adff71259ad3;hb=42c1fc20fd76f0797685690e0eb4acfd676b1cfd;hp=0000000000000000000000000000000000000000;hpb=38c307650e5db3d2f09f193ecac06ad1cdcf9d53;p=utils diff --git a/test/jpatest-eclipselink/src/main/java/org/wamblee/support/persistence/eclipselink/EclipselinkTables.java b/test/jpatest-eclipselink/src/main/java/org/wamblee/support/persistence/eclipselink/EclipselinkTables.java new file mode 100644 index 00000000..29872d01 --- /dev/null +++ b/test/jpatest-eclipselink/src/main/java/org/wamblee/support/persistence/eclipselink/EclipselinkTables.java @@ -0,0 +1,34 @@ +/* + * Copyright 2005-2010 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.wamblee.support.persistence.eclipselink; + +import org.dbunit.dataset.DataSetException; +import org.dbunit.dataset.filter.ITableFilterSimple; + +import java.util.Arrays; +import java.util.List; + +/** + * Toplink-specific tables. + */ +public class EclipselinkTables implements ITableFilterSimple { + private static final List TABLES = Arrays + .asList(new String[] { "SEQUENCE" }); + + public boolean accept(String aTableName) throws DataSetException { + return TABLES.contains(aTableName); + } +}