Examples of GSISSHExport


Examples of org.apache.aiaravata.application.catalog.data.model.GSISSHExport

            em.getTransaction().begin();
            AppCatalogQueryGenerator generator = new AppCatalogQueryGenerator(GSISSH_EXPORT);
            generator.setParameter(GSISSHExportConstants.SUBMISSION_ID, ids.get(GSISSHExportConstants.SUBMISSION_ID));
            generator.setParameter(GSISSHExportConstants.EXPORT, ids.get(GSISSHExportConstants.EXPORT));
            Query q = generator.selectQuery(em);
            GSISSHExport gsisshExport = (GSISSHExport) q.getSingleResult();
            GSISSHExportResource gsisshExportResource =
                    (GSISSHExportResource) AppCatalogJPAUtils.getResource(AppCatalogResourceType.GSISSH_EXPORT
                            , gsisshExport);
            em.getTransaction().commit();
            em.close();
View Full Code Here

Examples of org.apache.aiaravata.application.catalog.data.model.GSISSHExport

                generator.setParameter(GSISSHExportConstants.EXPORT, value);
                q = generator.selectQuery(em);
                results = q.getResultList();
                if (results.size() != 0) {
                    for (Object result : results) {
                        GSISSHExport gsisshExport = (GSISSHExport) result;
                        GSISSHExportResource gsisshExportResource =
                                (GSISSHExportResource) AppCatalogJPAUtils.getResource(AppCatalogResourceType.GSISSH_EXPORT, gsisshExport);
                        gsiSSHExportResources.add(gsisshExportResource);
                    }
                }
            } else if (fieldName.equals(GSISSHExportConstants.SUBMISSION_ID)) {
                generator.setParameter(GSISSHExportConstants.SUBMISSION_ID, value);
                q = generator.selectQuery(em);
                results = q.getResultList();
                if (results.size() != 0) {
                    for (Object result : results) {
                        GSISSHExport gsisshExport = (GSISSHExport) result;
                        GSISSHExportResource gsisshExportResource =
                                (GSISSHExportResource) AppCatalogJPAUtils.getResource(AppCatalogResourceType.GSISSH_EXPORT, gsisshExport);
                        gsiSSHExportResources.add(gsisshExportResource);
                    }
                }
View Full Code Here

Examples of org.apache.aiaravata.application.catalog.data.model.GSISSHExport

                generator.setParameter(GSISSHExportConstants.SUBMISSION_ID, value);
                q = generator.selectQuery(em);
                results = q.getResultList();
                if (results.size() != 0) {
                    for (Object result : results) {
                        GSISSHExport gsisshExport = (GSISSHExport) result;
                        gsiSSHExportIDs.add(gsisshExport.getSubmissionID());
                    }
                }
            } else if (fieldName.equals(GSISSHExportConstants.EXPORT)) {
                generator.setParameter(GSISSHExportConstants.EXPORT, value);
                q = generator.selectQuery(em);
                results = q.getResultList();
                if (results.size() != 0) {
                    for (Object result : results) {
                        GSISSHExport gsisshExport = (GSISSHExport) result;
                        gsiSSHExportIDs.add(gsisshExport.getSubmissionID());
                    }
                }
            } else {
                em.getTransaction().commit();
                em.close();
View Full Code Here

Examples of org.apache.aiaravata.application.catalog.data.model.GSISSHExport

    public void save() throws AppCatalogException {
        EntityManager em = null;
        try {
            em = AppCatalogJPAUtils.getEntityManager();
            GSISSHExport existingGSIExport = em.find(GSISSHExport.class, new GSISSHExportPK(submissionID, export));
            em.close();

            em = AppCatalogJPAUtils.getEntityManager();
            em.getTransaction().begin();
            GSISSHSubmission gsisshSubmission = em.find(GSISSHSubmission.class, submissionID);
            if (existingGSIExport != null) {
                existingGSIExport.setSubmissionID(submissionID);
                existingGSIExport.setExport(export);
                existingGSIExport.setGsisshJobSubmission(gsisshSubmission);
                em.merge(existingGSIExport);
            } else {
                GSISSHExport gsisshExport = new GSISSHExport();
                gsisshExport.setSubmissionID(submissionID);
                gsisshExport.setExport(export);
                gsisshExport.setGsisshJobSubmission(gsisshSubmission);
                em.persist(gsisshExport);
            }
            em.getTransaction().commit();
            em.close();
        } catch (Exception e) {
View Full Code Here

Examples of org.apache.aiaravata.application.catalog.data.model.GSISSHExport

        }

        EntityManager em = null;
        try {
            em = AppCatalogJPAUtils.getEntityManager();
            GSISSHExport gsisshExport = em.find(GSISSHExport.class, new GSISSHExportPK(ids.get(GSISSHExportConstants.SUBMISSION_ID),
                    ids.get(GSISSHExportConstants.EXPORT)));

            em.close();
            return gsisshExport != null;
        } catch (ApplicationSettingsException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.