Package org.rhq.helpers.perftest.support.jpa.mapping

Examples of org.rhq.helpers.perftest.support.jpa.mapping.ColumnValuesTableMap


        return new EntityRelationshipTableIterator(super.iterator(dataSet, reversed), resolvedPks);
    }

    private static String[] getNeccesaryTablesAndSetResolution(IDatabaseConnection connection,
        DependencyInclusionResolver inclusionResolver, Map<Class<?>, Set<ColumnValues>> primaryPks) throws SQLException {
        ColumnValuesTableMap resolution = resolve(connection, inclusionResolver, primaryPks);
        RESOLUTION_IN_CONSTRUCTOR.set(resolution);

        Set<String> tables = new HashSet<String>();

        for (String t : resolution.keySet()) {
            tables.add(t.toLowerCase());
        }
        return tables.toArray(new String[tables.size()]);
    }
View Full Code Here


        return tables.toArray(new String[tables.size()]);
    }

    private static ColumnValuesTableMap resolve(IDatabaseConnection connection,
        DependencyInclusionResolver inclusionResolver, Map<Class<?>, Set<ColumnValues>> primaryPks) throws SQLException {
        ColumnValuesTableMap resolution = new ColumnValuesTableMap();

        EntityDependencyGraph edg = new EntityDependencyGraph();
        edg.addEntities(primaryPks.keySet());

        resolvePks(connection, edg, inclusionResolver, primaryPks, resolution);
View Full Code Here

TOP

Related Classes of org.rhq.helpers.perftest.support.jpa.mapping.ColumnValuesTableMap

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.