Class ParameterQuerySpecifications

    • Constructor Detail

      • ParameterQuerySpecifications

        protected ParameterQuerySpecifications​(DbQuery dbQuery,
                                               javax.persistence.EntityManager entityManager)
    • Method Detail

      • matchServices

        public <T extends org.n52.series.db.beans.DescribableEntity> org.springframework.data.jpa.domain.Specification<T> matchServices​(org.n52.series.db.beans.ServiceEntity service)
      • matchServices

        public <T extends org.n52.series.db.beans.DescribableEntity> org.springframework.data.jpa.domain.Specification<T> matchServices()
        Matches datasets having service with given ids.
        Returns:
        a boolean expression
        See Also:
        matchServices(Collection)
      • matchServices

        public <T extends org.n52.series.db.beans.DescribableEntity> org.springframework.data.jpa.domain.Specification<T> matchServices​(String... ids)
        Matches datasets having service with given ids.
        Parameters:
        ids - the ids to match
        Returns:
        a boolean expression
        See Also:
        matchServices(Collection)
      • matchServices

        public <T extends org.n52.series.db.beans.DescribableEntity> org.springframework.data.jpa.domain.Specification<T> matchServices​(Collection<String> ids)
        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>)
         
        Parameters:
        ids - the ids to match
        Returns:
        a boolean expression or null when given ids are null or empty