use of eu.europa.ec.fisheries.uvms.exchange.entity.serviceregistry.ServiceSetting in project UVMS-ExchangeModule-APP by UnionVMS.
the class ServiceRegistryDaoBean method getServiceSettings.
@Override
public List<ServiceSetting> getServiceSettings(String serviceClassName) throws ExchangeDaoException {
try {
TypedQuery<ServiceSetting> query = em.createNamedQuery(ExchangeConstants.SETTING_FIND_BY_SERVICE, ServiceSetting.class);
query.setParameter("serviceClassName", serviceClassName);
return query.getResultList();
} catch (IllegalArgumentException e) {
LOG.error("[ Error when getting settings ] {}", e.getMessage());
throw new ExchangeDaoException("[ Error when getting settings ] ");
} catch (Exception e) {
LOG.error("[ Error when getting settings ] {}", e.getMessage());
throw new ExchangeDaoException("[ Error when getting settings ] ");
}
}
Aggregations