use of org.opencastproject.serviceregistry.impl.jpa.ServiceRegistrationJpaImpl in project opencast by opencast.
the class ServiceRegistryJpaImpl method getServiceRegistration.
protected ServiceRegistrationJpaImpl getServiceRegistration(EntityManager em, String serviceType, String host) {
try {
Query q = em.createNamedQuery("ServiceRegistration.getRegistration");
q.setParameter("serviceType", serviceType);
q.setParameter("host", host);
return (ServiceRegistrationJpaImpl) q.getSingleResult();
} catch (NoResultException e) {
return null;
}
}
Aggregations