Search in sources :

Example 11 with ExcludeTable

use of org.apache.cayenne.dbsync.reverse.dbimport.ExcludeTable in project cayenne by apache.

the class FiltersConfigBuilderTest method testCompact_02.

@Test
public void testCompact_02() {
    ReverseEngineering engineering = new ReverseEngineering();
    engineering.addCatalog(new Catalog("catalogName"));
    engineering.addSchema(new Schema("schemaName01"));
    engineering.addSchema(new Schema("schemaName02"));
    engineering.addIncludeTable(new IncludeTable("table1"));
    engineering.addExcludeTable(new ExcludeTable("table2"));
    engineering.addIncludeColumn(new IncludeColumn("includeColumn"));
    FiltersConfigBuilder builder = new FiltersConfigBuilder(engineering);
    builder.compact();
    assertEquals("ReverseEngineering: \n" + "  Catalog: catalogName\n" + "    Schema: schemaName01\n" + "      IncludeTable: table1\n" + "        IncludeColumn: includeColumn\n" + "      ExcludeTable: table2\n" + "    Schema: schemaName02\n" + "      IncludeTable: table1\n" + "        IncludeColumn: includeColumn\n" + "      ExcludeTable: table2\n\n" + "  Use primitives", engineering.toString());
}
Also used : ReverseEngineering(org.apache.cayenne.dbsync.reverse.dbimport.ReverseEngineering) Schema(org.apache.cayenne.dbsync.reverse.dbimport.Schema) IncludeTable(org.apache.cayenne.dbsync.reverse.dbimport.IncludeTable) IncludeColumn(org.apache.cayenne.dbsync.reverse.dbimport.IncludeColumn) Catalog(org.apache.cayenne.dbsync.reverse.dbimport.Catalog) ExcludeTable(org.apache.cayenne.dbsync.reverse.dbimport.ExcludeTable) Test(org.junit.Test)

Aggregations

ExcludeTable (org.apache.cayenne.dbsync.reverse.dbimport.ExcludeTable)11 Catalog (org.apache.cayenne.dbsync.reverse.dbimport.Catalog)6 IncludeTable (org.apache.cayenne.dbsync.reverse.dbimport.IncludeTable)6 Schema (org.apache.cayenne.dbsync.reverse.dbimport.Schema)5 ExcludeColumn (org.apache.cayenne.dbsync.reverse.dbimport.ExcludeColumn)4 IncludeColumn (org.apache.cayenne.dbsync.reverse.dbimport.IncludeColumn)4 IncludeProcedure (org.apache.cayenne.dbsync.reverse.dbimport.IncludeProcedure)4 ReverseEngineering (org.apache.cayenne.dbsync.reverse.dbimport.ReverseEngineering)4 Test (org.junit.Test)4 ExcludeProcedure (org.apache.cayenne.dbsync.reverse.dbimport.ExcludeProcedure)3 FilterContainer (org.apache.cayenne.dbsync.reverse.dbimport.FilterContainer)2 DbImportTreeNode (org.apache.cayenne.modeler.dialog.db.load.DbImportTreeNode)2 ArrayList (java.util.ArrayList)1 DbImportConfiguration (org.apache.cayenne.dbsync.reverse.dbimport.DbImportConfiguration)1 PatternParam (org.apache.cayenne.dbsync.reverse.dbimport.PatternParam)1 DbLoaderDelegate (org.apache.cayenne.dbsync.reverse.dbload.DbLoaderDelegate)1 FiltersConfigBuilder (org.apache.cayenne.dbsync.reverse.filters.FiltersConfigBuilder)1 DBConnectionInfo (org.apache.cayenne.modeler.pref.DBConnectionInfo)1