Class ServiceQuerySpecifications

    • Method Detail

      • selectFrom

        public org.springframework.data.jpa.domain.Specification<org.n52.series.db.beans.ServiceEntity> selectFrom​(org.springframework.data.jpa.domain.Specification<org.n52.series.db.beans.DatasetEntity> filter)
        Matches service included in a result of a given filter, i.e.
           where id in (select fk_service_id from dataset where <filter>)
         
        Parameters:
        filter - the query
        Returns:
        a boolean expression
      • matchServices

        public <T extends org.n52.series.db.beans.DescribableEntity> org.springframework.data.jpa.domain.Specification<T> matchServices​(Collection<String> ids)
        Description copied from class: ParameterQuerySpecifications
        Matches datasets having service with given ids. For example:
          where service.id in (<ids>)
         
        In case of DbQuery.isMatchDomainIds() returns true the following query path will be used:
          where service.identifier in (<ids>)
         
        Overrides:
        matchServices in class ParameterQuerySpecifications
        Parameters:
        ids - the ids to match
        Returns:
        a boolean expression or null when given ids are null or empty