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

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


       
        if (!validate(settings)) {
            System.exit(1);
        }

        ExportConfiguration config = null;
       
        if (configFile != null) {
            JAXBContext c = ExportConfiguration.getJAXBContext();
            Unmarshaller um = c.createUnmarshaller();
            config = (ExportConfiguration) um.unmarshal(new FileReader(configFile));
        }
       
        if (config == null) {
            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);
       
        if (doExport) {
            Output output = Settings.getOutputObject(format, ioFileName);
           
            try {
View Full Code Here

TOP

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

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.