generator.setParameter(GSISSHSubmissionConstants.MONITOR_MODE, value);
q = generator.selectQuery(em);
results = q.getResultList();
if (results.size() != 0) {
for (Object result : results) {
GSISSHSubmission gsisshSubmission = (GSISSHSubmission) result;
GSISSHSubmissionResource gsisshSubmissionResource =
(GSISSHSubmissionResource) AppCatalogJPAUtils.getResource(
AppCatalogResourceType.GSISSH_SUBMISSION, gsisshSubmission);
gsiSSHSubmissionResourceList.add(gsisshSubmissionResource);
}
}
} else if (fieldName.equals(GSISSHSubmissionConstants.INSTALLED_PATH)) {
generator.setParameter(GSISSHSubmissionConstants.INSTALLED_PATH, value);
q = generator.selectQuery(em);
results = q.getResultList();
if (results.size() != 0) {
for (Object result : results) {
GSISSHSubmission gsisshSubmission = (GSISSHSubmission) result;
GSISSHSubmissionResource gsisshSubmissionResource =
(GSISSHSubmissionResource) AppCatalogJPAUtils.getResource(
AppCatalogResourceType.GSISSH_SUBMISSION, gsisshSubmission);
gsiSSHSubmissionResourceList.add(gsisshSubmissionResource);
}
}
} else if (fieldName.equals(GSISSHSubmissionConstants.SSH_PORT)) {
generator.setParameter(GSISSHSubmissionConstants.SSH_PORT, value);
q = generator.selectQuery(em);
results = q.getResultList();
if (results.size() != 0) {
for (Object result : results) {
GSISSHSubmission gsisshSubmission = (GSISSHSubmission) result;
GSISSHSubmissionResource gsisshSubmissionResource =
(GSISSHSubmissionResource) AppCatalogJPAUtils.getResource(
AppCatalogResourceType.GSISSH_SUBMISSION, gsisshSubmission);
gsiSSHSubmissionResourceList.add(gsisshSubmissionResource);
}
}
} else if (fieldName.equals(GSISSHSubmissionConstants.RESOURCE_JOB_MANAGER)) {
generator.setParameter(GSISSHSubmissionConstants.RESOURCE_JOB_MANAGER, value);
q = generator.selectQuery(em);
results = q.getResultList();
if (results.size() != 0) {
for (Object result : results) {
GSISSHSubmission gsisshSubmission = (GSISSHSubmission) result;
GSISSHSubmissionResource gsisshSubmissionResource =
(GSISSHSubmissionResource) AppCatalogJPAUtils.getResource(
AppCatalogResourceType.GSISSH_SUBMISSION, gsisshSubmission);
gsiSSHSubmissionResourceList.add(gsisshSubmissionResource);
}