Package de.dlr.proseo.model.service
Class ProductQueryService
java.lang.Object
de.dlr.proseo.model.service.ProductQueryService
Service class to execute a product query on the prosEO database
- Author:
- Dr. Thomas Bassler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecuteQuery(ProductQuery productQuery, boolean checkOnly) Execute the query of the given product query and check additional conditions (e. g. selection time interval coverage).Provides a mapping of Product attributes to SQL column names
-
Field Details
-
FACILITY_QUERY_SQL
- See Also:
-
FACILITY_QUERY_SQL_SUBSELECT
-
-
Constructor Details
-
ProductQueryService
public ProductQueryService()
-
-
Method Details
-
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 executecheckOnly- 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
-