Class ParameterQuerySpecifications
java.lang.Object
org.n52.sensorweb.server.db.query.QuerySpecifications
org.n52.sensorweb.server.db.query.ParameterQuerySpecifications
- Direct Known Subclasses:
CategoryQuerySpecifications,DatasetQuerySpecifications,FeatureQuerySpecifications,OfferingQuerySpecifications,PhenomenonQuerySpecifications,PlatformQuerySpecifications,ProcedureQuerySpecifications,ServiceQuerySpecifications,TagQuerySpecifications
-
Field Summary
Fields inherited from class org.n52.sensorweb.server.db.query.QuerySpecifications
dbQuery, entityManager -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedParameterQuerySpecifications(DbQuery dbQuery, javax.persistence.EntityManager entityManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends org.n52.series.db.beans.DescribableEntity>
javax.persistence.criteria.PredicatematchLikeidentifier(javax.persistence.criteria.Root<T> root, javax.persistence.criteria.CriteriaBuilder builder) protected <T extends org.n52.series.db.beans.DescribableEntity>
javax.persistence.criteria.PredicatematchLikeName(javax.persistence.criteria.Root<T> root, javax.persistence.criteria.CriteriaBuilder builder) protected <T extends org.n52.series.db.beans.DescribableEntity>
javax.persistence.criteria.PredicatematchLikeProperty(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>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>static ParameterQuerySpecificationsMethods inherited from class org.n52.sensorweb.server.db.query.QuerySpecifications
getIdPredicate, getTimespanEnd, getTimespanStart
-
Constructor Details
-
ParameterQuerySpecifications
protected ParameterQuerySpecifications(DbQuery dbQuery, javax.persistence.EntityManager entityManager)
-
-
Method Details
-
of
public static ParameterQuerySpecifications of(DbQuery dbQuery, javax.persistence.EntityManager entityManager) -
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
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
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 ofDbQuery.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)
-