Class ProductQueryService

java.lang.Object
de.dlr.proseo.model.service.ProductQueryService

@Service public class ProductQueryService extends Object
Service class to execute a product query on the prosEO database
Author:
Dr. Thomas Bassler
  • Field Details

    • FACILITY_QUERY_SQL

      public static final String FACILITY_QUERY_SQL
      See Also:
    • FACILITY_QUERY_SQL_SUBSELECT

      public static final String FACILITY_QUERY_SQL_SUBSELECT
  • Constructor Details

    • ProductQueryService

      public ProductQueryService()
  • Method Details

    • getProductColumnMapping

      public Map<String,String> getProductColumnMapping()
      Provides a mapping of Product attributes to SQL column names
      Returns:
      the attribute mapping
    • executeQuery

      public boolean executeQuery(ProductQuery productQuery, boolean checkOnly) throws IllegalArgumentException
      Execute the query of the given product query and check additional conditions (e. g. selection time interval coverage). If successful, the query and its satisfying products are updated (these updates must be persisted by the calling method).
      Parameters:
      productQuery - the product query to execute
      checkOnly - indicates whether to store check result and satisfying products for future reference
      Returns:
      true, if the query is satisfied (its list of satisfying products will then be set, unless checkOnly is true), false otherwise
      Throws:
      IllegalArgumentException - if the product query is incomplete