Class ParameterQuerySpecifications
- java.lang.Object
-
- org.n52.sensorweb.server.db.query.QuerySpecifications
-
- org.n52.sensorweb.server.db.query.ParameterQuerySpecifications
-
- Direct Known Subclasses:
CategoryQuerySpecifications,FeatureQuerySpecifications,OfferingQuerySpecifications,PhenomenonQuerySpecifications,PlatformQuerySpecifications,ProcedureQuerySpecifications,ServiceQuerySpecifications,TagQuerySpecifications
public class ParameterQuerySpecifications extends QuerySpecifications
-
-
Field Summary
-
Fields inherited from class org.n52.sensorweb.server.db.query.QuerySpecifications
dbQuery, entityManager
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedParameterQuerySpecifications(DbQuery dbQuery, javax.persistence.EntityManager entityManager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <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)static ParameterQuerySpecificationsof(DbQuery dbQuery, javax.persistence.EntityManager entityManager)-
Methods inherited from class org.n52.sensorweb.server.db.query.QuerySpecifications
getIdPredicate, getTimespanEnd, getTimespanStart
-
-
-
-
Constructor Detail
-
ParameterQuerySpecifications
protected ParameterQuerySpecifications(DbQuery dbQuery, javax.persistence.EntityManager entityManager)
-
-
Method Detail
-
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(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 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
-
-