Package org.jitterbit.integration.data.structure.database

Examples of org.jitterbit.integration.data.structure.database.ObjectAliasGenerator


        }
        return eff;
    }

    private DbTables toDbTables(Map<DatabaseObject, Integer> effectiveTableUsage, BeginEndQuote quotes) {
        ObjectAliasGenerator aliasGenerator = new ObjectAliasGenerator(quotes, getIncludedTables());
        aliasGenerator.setTableUsage(effectiveTableUsage);
        DbTablesFactory factory = new DbTablesFactory(aliasGenerator);
        return factory.create(effectiveTableUsage, quotes);
    }
View Full Code Here


        return false;
    }

    public DatabaseObject[] getTablesIncludingAliases(BeginEndQuote quotes) {
        DatabaseObject[] includedTables = getIncludedTables();
        ObjectAliasGenerator aliasGenerator = new ObjectAliasGenerator(quotes, includedTables);
        List<DatabaseObject> tablesWithAliases = Lists.newArrayList();
        for (DatabaseObject table : includedTables) {
            tablesWithAliases.add(table);
            int count = getUsageCount(table);
            for (int n = 1; n < count; ++n) {
                String alias = aliasGenerator.getAlias(table);
                tablesWithAliases.add(table.createCopy(alias));
            }
        }
        return tablesWithAliases.toArray(new DatabaseObject[tablesWithAliases.size()]);
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.structure.database.ObjectAliasGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.