Class ParameterQuerySpecifications

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ParameterQuerySpecifications​(DbQuery dbQuery, javax.persistence.EntityManager entityManager)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected <T extends org.n52.series.db.beans.DescribableEntity>
      javax.persistence.criteria.Predicate
      matchLikeidentifier​(javax.persistence.criteria.Root<T> root, javax.persistence.criteria.CriteriaBuilder builder)  
      protected <T extends org.n52.series.db.beans.DescribableEntity>
      javax.persistence.criteria.Predicate
      matchLikeName​(javax.persistence.criteria.Root<T> root, javax.persistence.criteria.CriteriaBuilder builder)  
      protected <T extends org.n52.series.db.beans.DescribableEntity>
      javax.persistence.criteria.Predicate
      matchLikeProperty​(javax.persistence.criteria.Root<T> root, javax.persistence.criteria.CriteriaBuilder builder, String property)  
      <T extends org.n52.series.db.beans.DescribableEntity>
      org.springframework.data.jpa.domain.Specification<T>
      matchServices()
      Matches datasets having service with given ids.
      <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.
      <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.
      <T extends org.n52.series.db.beans.DescribableEntity>
      org.springframework.data.jpa.domain.Specification<T>
      matchServices​(org.n52.series.db.beans.ServiceEntity service)  
      <T extends org.n52.series.db.beans.DescribableEntity>
      org.springframework.data.jpa.domain.Specification<T>
      matchsLike()  
      static ParameterQuerySpecifications of​(DbQuery dbQuery, javax.persistence.EntityManager entityManager)  
    • 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
      • matchsLike

        public <T extends org.n52.series.db.beans.DescribableEntity> org.springframework.data.jpa.domain.Specification<T> matchsLike()
      • matchLikeName

        protected <T extends org.n52.series.db.beans.DescribableEntity> javax.persistence.criteria.Predicate matchLikeName​(javax.persistence.criteria.Root<T> root,
                                                                                                                           javax.persistence.criteria.CriteriaBuilder builder)
      • matchLikeidentifier

        protected <T extends org.n52.series.db.beans.DescribableEntity> javax.persistence.criteria.Predicate matchLikeidentifier​(javax.persistence.criteria.Root<T> root,
                                                                                                                                 javax.persistence.criteria.CriteriaBuilder builder)
      • matchLikeProperty

        protected <T extends org.n52.series.db.beans.DescribableEntity> javax.persistence.criteria.Predicate matchLikeProperty​(javax.persistence.criteria.Root<T> root,
                                                                                                                               javax.persistence.criteria.CriteriaBuilder builder,
                                                                                                                               String property)