Package org.rhq.helpers.perftest.support.config

Examples of org.rhq.helpers.perftest.support.config.Entity


        try {
            Map<Entity, String> entityQueries = getEntityQueries(config);

            Map<Class<?>, Set<ColumnValues>> pksToLoad = new HashMap<Class<?>, Set<ColumnValues>>();
            for (Map.Entry<Entity, String> entry : entityQueries.entrySet()) {
                Entity entity = entry.getKey();
                String query = entry.getValue();

                String tableName = MappingTranslator.getTableName(config.getClassForEntity(entity));

                Set<ColumnValues> pks = getPksFromQuery(connection, tableName, query);
View Full Code Here


            config = new ExportConfiguration();
           
            //only use the entities from the command line if no config file
            //was specified.
            for(String entity : entities) {
                Entity e = new Entity();
                e.setName(entity);
                e.setIncludeAllFields(true);
                e.setFilter("SELECT * FROM " + MappingTranslator.getTableName(config.getClassForEntity(e)));
                config.getEntities().add(e);
            }           
        }
        config.setSettings(settings);
       
View Full Code Here

     *
     * @param edge the edge from the full entity dependency graph to check the validity of.
     * @return true if valid (i.e. to be included in the output), false otherwise.
     */
    public boolean isValid(Edge edge) {
        Entity from = edg.getEntity(edge.getFrom().getEntity());
        Entity to = edg.getEntity(edge.getTo().getEntity());

        //check if we should include all the explicitly defined dependent entities
        //implicitly.
        if (edg.isIncludeExplicitDependentsImplicitly()) {
            if (edge.getFromField() != null) {
View Full Code Here

TOP

Related Classes of org.rhq.helpers.perftest.support.config.Entity

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.