generator.setParameter(AppOutputConstants.INTERFACE_ID, value);
q = generator.selectQuery(em);
results = q.getResultList();
if (results.size() != 0) {
for (Object result : results) {
ApplicationOutput applicationOutput = (ApplicationOutput) result;
ApplicationOutputResource applicationOutputResource =
(ApplicationOutputResource) AppCatalogJPAUtils.getResource(
AppCatalogResourceType.APPLICATION_OUTPUT, applicationOutput);
appInputResources.add(applicationOutputResource);
}
}
} else if (fieldName.equals(AppOutputConstants.OUTPUT_KEY)) {
generator.setParameter(AppOutputConstants.OUTPUT_KEY, value);
q = generator.selectQuery(em);
results = q.getResultList();
if (results.size() != 0) {
for (Object result : results) {
ApplicationOutput applicationOutput = (ApplicationOutput) result;
ApplicationOutputResource applicationOutputResource =
(ApplicationOutputResource) AppCatalogJPAUtils.getResource(
AppCatalogResourceType.APPLICATION_OUTPUT, applicationOutput);
appInputResources.add(applicationOutputResource);
}
}
} else if (fieldName.equals(AppOutputConstants.DATA_TYPE)) {
generator.setParameter(AppOutputConstants.DATA_TYPE, value);
q = generator.selectQuery(em);
results = q.getResultList();
if (results.size() != 0) {
for (Object result : results) {
ApplicationOutput applicationOutput = (ApplicationOutput) result;
ApplicationOutputResource applicationOutputResource =
(ApplicationOutputResource) AppCatalogJPAUtils.getResource(
AppCatalogResourceType.APPLICATION_OUTPUT, applicationOutput);
appInputResources.add(applicationOutputResource);
}