Class DatasetFESCriterionGenerator

java.lang.Object
org.n52.sensorweb.server.db.old.dao.FESCriterionGenerator
org.n52.sensorweb.server.db.old.dao.DatasetFESCriterionGenerator

public class DatasetFESCriterionGenerator extends FESCriterionGenerator
Class to create a criterion for datasets from an FES filter.
  • Constructor Details

    • DatasetFESCriterionGenerator

      public DatasetFESCriterionGenerator(org.hibernate.Criteria criteria, boolean unsupportedIsTrue, boolean matchDomainIds, boolean complexParent)
      Creates a new DatasetFESCriterionGenerator.
      Parameters:
      criteria - the criteria
      unsupportedIsTrue - if the generator encounters a filter expression it could not translate it may generate a criterion that is always true or always false depending on this flag
      matchDomainIds - if filter on observation parameters like feature, offering or procedure should match on their respective domain identifiers or on the primary keys in the database
      complexParent - if the queries should result in the parent observation and hide the child observations
  • Method Details

    • createDataCriterion

      protected org.hibernate.criterion.Criterion createDataCriterion(org.hibernate.criterion.Criterion criterion)
      Description copied from class: FESCriterionGenerator
      Create a Criterion for a property of the associated data entity.
      Specified by:
      createDataCriterion in class FESCriterionGenerator
      Parameters:
      criterion - the criterion
      Returns:
      the criterion
    • createDatasetCriterion

      protected org.hibernate.criterion.Criterion createDatasetCriterion(String property, org.n52.shetland.ogc.filter.ComparisonFilter filter)
      Description copied from class: FESCriterionGenerator
      Create a Criterion for a property of the associated data set.
      Specified by:
      createDatasetCriterion in class FESCriterionGenerator
      Parameters:
      property - the property of the data set to apply the filter to
      filter - the comparison filter
      Returns:
      the criterion
    • createDatasetCriterion

      protected org.hibernate.criterion.Criterion createDatasetCriterion(String property, org.n52.shetland.ogc.filter.SpatialFilter filter)
      Description copied from class: FESCriterionGenerator
      Create a Criterion for a property of the associated data set.
      Specified by:
      createDatasetCriterion in class FESCriterionGenerator
      Parameters:
      property - the property of the data set to apply the filter to
      filter - the spatial filter
      Returns:
      the criterion
    • createResultCriterion

      protected org.hibernate.criterion.Criterion createResultCriterion(org.n52.shetland.ogc.filter.ComparisonFilter filter)
      Description copied from class: FESCriterionGenerator
      Create a Criterion for the specified result filter.
      Specified by:
      createResultCriterion in class FESCriterionGenerator
      Parameters:
      filter - the filter
      Returns:
      the criterion