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);
}
}