use of org.apache.cayenne.dbsync.reverse.dbimport.FilterContainer in project cayenne by apache.
the class AddPatternParamAction method addPatternParamToContainer.
private void addPatternParamToContainer(Class paramClass, Object selectedObject, String name, DbImportTreeNode node) {
FilterContainer container = (FilterContainer) selectedObject;
PatternParam element = null;
if (paramClass == ExcludeTable.class) {
element = new ExcludeTable(name);
container.addExcludeTable((ExcludeTable) element);
} else if (paramClass == IncludeColumn.class) {
element = new IncludeColumn(name);
container.addIncludeColumn((IncludeColumn) element);
} else if (paramClass == ExcludeColumn.class) {
element = new ExcludeColumn(name);
container.addExcludeColumn((ExcludeColumn) element);
} else if (paramClass == IncludeProcedure.class) {
element = new IncludeProcedure(name);
container.addIncludeProcedure((IncludeProcedure) element);
} else if (paramClass == ExcludeProcedure.class) {
element = new ExcludeProcedure(name);
container.addExcludeProcedure((ExcludeProcedure) element);
}
node.add(new DbImportTreeNode(element));
}
Aggregations