generator.setParameter(DataMoveProtocolConstants.RESOURCE_ID, value);
q = generator.selectQuery(em);
results = q.getResultList();
if (results.size() != 0) {
for (Object result : results) {
DataMovementProtocol dataMovementProtocol = (DataMovementProtocol) result;
DataMovementProtocolResource dataMovementProtocolResource =
(DataMovementProtocolResource) AppCatalogJPAUtils.getResource(AppCatalogResourceType.DATA_MOVEMENT_PROTOCOL, dataMovementProtocol);
dataMoveProtocolResourcesList.add(dataMovementProtocolResource);
}
}
} else if (fieldName.equals(DataMoveProtocolConstants.DATA_MOVE_TYPE)) {
generator.setParameter(DataMoveProtocolConstants.DATA_MOVE_TYPE, value);
q = generator.selectQuery(em);
results = q.getResultList();
if (results.size() != 0) {
for (Object result : results) {
DataMovementProtocol dataMovementProtocol = (DataMovementProtocol) result;
DataMovementProtocolResource dataMovementProtocolResource =
(DataMovementProtocolResource) AppCatalogJPAUtils.getResource(AppCatalogResourceType.DATA_MOVEMENT_PROTOCOL, dataMovementProtocol);
dataMoveProtocolResourcesList.add(dataMovementProtocolResource);
}
}
} else if (fieldName.equals(DataMoveProtocolConstants.DATA_MOVE_ID)) {
generator.setParameter(DataMoveProtocolConstants.DATA_MOVE_ID, value);
q = generator.selectQuery(em);
results = q.getResultList();
if (results.size() != 0) {
for (Object result : results) {
DataMovementProtocol dataMovementProtocol = (DataMovementProtocol) result;
DataMovementProtocolResource dataMovementProtocolResource =
(DataMovementProtocolResource) AppCatalogJPAUtils.getResource(AppCatalogResourceType.DATA_MOVEMENT_PROTOCOL, dataMovementProtocol);
dataMoveProtocolResourcesList.add(dataMovementProtocolResource);
}
}