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

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


        try {
            em = ResourceUtils.getEntityManager();
            em.getTransaction().begin();
            ErrorDetail errorDetail = new ErrorDetail();
            errorDetail.setErrorID(errorId);
            Experiment experiment = em.find(Experiment.class, experimentResource.getExpID());
            errorDetail.setExperiment(experiment);
            errorDetail.setExpId(experimentResource.getExpID());
            if (taskDetailResource != null) {
                TaskDetail taskDetail = em.find(TaskDetail.class, taskDetailResource.getTaskId());
                errorDetail.setTask(taskDetail);
View Full Code Here


                scheduling = em.find(Computational_Resource_Scheduling.class, schedulingId);
                scheduling.setSchedulingId(schedulingId);
            } else {
                scheduling = new Computational_Resource_Scheduling();
            }
            Experiment experiment = em.find(Experiment.class, experimentResource.getExpID());
            if (taskDetailResource != null) {
                TaskDetail taskDetail = em.find(TaskDetail.class, taskDetailResource.getTaskId());
                scheduling.setTask(taskDetail);
                scheduling.setTaskId(taskDetailResource.getTaskId());
            }
View Full Code Here

            em = ResourceUtils.getEntityManager();
            em.getTransaction().begin();
            Experiment_Output exOutput = new Experiment_Output();
            exOutput.setEx_key(experimentKey);
            Experiment experiment = em.find(Experiment.class, experimentResource.getExpID());
            exOutput.setExperiment(experiment);
            exOutput.setExperiment_id(experiment.getExpId());
            exOutput.setValue(value);
            exOutput.setOutputKeyType(outputType);
            exOutput.setMetadata(metadata);

            if (existingOutput != null) {
                existingOutput.setEx_key(experimentKey);
                existingOutput.setExperiment(experiment);
                existingOutput.setValue(value);
                existingOutput.setExperiment_id(experiment.getExpId());
                existingOutput.setOutputKeyType(outputType);
                existingOutput.setMetadata(metadata);
                exOutput = em.merge(existingOutput);
            } else {
                em.persist(exOutput);
View Full Code Here

                dataHandling = em.find(AdvancedInputDataHandling.class, dataHandlingId);
                dataHandling.setDataHandlingId(dataHandlingId);
            } else {
                dataHandling = new AdvancedInputDataHandling();
            }
            Experiment experiment = em.find(Experiment.class, experimentResource.getExpID());
            if (taskDetailResource != null) {
                TaskDetail taskDetail = em.find(TaskDetail.class, taskDetailResource.getTaskId());
                dataHandling.setTaskId(taskDetailResource.getTaskId());
                dataHandling.setTask(taskDetail);
            }
View Full Code Here

                dataHandling = em.find(AdvancedOutputDataHandling.class, outputDataHandlingId);
                dataHandling.setOutputDataHandlingId(outputDataHandlingId);
            }else {
                dataHandling = new AdvancedOutputDataHandling();
            }
            Experiment experiment = em.find(Experiment.class, experimentResource.getExpID());
            if (taskDetailResource !=null){
                TaskDetail taskDetail = em.find(TaskDetail.class, taskDetailResource.getTaskId());
                dataHandling.setTaskId(taskDetailResource.getTaskId());
                dataHandling.setTask(taskDetail);
            }
View Full Code Here

            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);
View Full Code Here

TOP

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

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.