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

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


                generator.setParameter(GFacJobStatusConstants.LOCAL_JOB_ID, localJobID);
                q = generator.selectQuery(em);
                results = q.getResultList();
                if (results.size() != 0) {
                    for (Object result : results) {
                        GFac_Job_Status gFacJobStatus = (GFac_Job_Status) result;
                        GFacJobStatusResource gFacJobStatusResource =
                                (GFacJobStatusResource)Utils.getResource(ResourceType.GFAC_JOB_STATUS, gFacJobStatus);
                        resourceList.add(gFacJobStatusResource);
                    }
                }
View Full Code Here


    @Override
    public void save() {
        EntityManager em = ResourceUtils.getEntityManager();
        em.getTransaction().begin();
        GFac_Job_Status gFacJobStatus = new GFac_Job_Status();
        GFac_Job_Data gFacJobData = em.find(GFac_Job_Data.class, localJobID);
        gFacJobStatus.setgFac_job_data(gFacJobData);
        gFacJobStatus.setLocal_Job_ID(localJobID);
        gFacJobStatus.setStatus_update_time(statusUpdateTime);
        gFacJobStatus.setStatus(status);
        em.persist(gFacJobStatus);
        em.getTransaction().commit();
        em.close();
    }
View Full Code Here

TOP

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

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.