Package org.apache.airavata.persistance.registry.jpa.model

Examples of org.apache.airavata.persistance.registry.jpa.model.ExperimentConfigData


   
    public void save() throws RegistryException{
        EntityManager em = null;
        try {
            em = ResourceUtils.getEntityManager();
            ExperimentConfigData existingConfig = em.find(ExperimentConfigData.class, experimentResource.getExpID());
            em.close();

            em = ResourceUtils.getEntityManager();
            em.getTransaction().begin();
            ExperimentConfigData configData = new ExperimentConfigData();
            Experiment experiment = em.find(Experiment.class, experimentResource.getExpID());
            configData.setExpId(experimentResource.getExpID());
            configData.setExperiment(experiment);
            configData.setAiravataAutoSchedule(airavataAutoSchedule);
            configData.setOverrideManualParams(overrideManualParams);
            configData.setShareExp(shareExp);
            if (existingConfig != null) {
                existingConfig.setExpId(experimentResource.getExpID());
                existingConfig.setExperiment(experiment);
                existingConfig.setAiravataAutoSchedule(airavataAutoSchedule);
                existingConfig.setOverrideManualParams(overrideManualParams);
View Full Code Here

TOP

Related Classes of org.apache.airavata.persistance.registry.jpa.model.ExperimentConfigData

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.