Package cz.cvut.kbss.jopa.query
Interface QueryParser
- All Known Implementing Classes:
SoqlQueryParser
,Sparql11QueryParser
public interface QueryParser
Used to parse queries into builders which enable the query to be further manipulated, e.g., set parameters.
-
Method Summary
Modifier and TypeMethodDescriptionparseQuery
(String query) Parses the specified query string and returns a query holder instance containing the parsed query.default QueryHolder
parseQuery
(String query, Class<?> resultClass) Parses the specified query string and returns a query holder instance containing the parsed query.
-
Method Details
-
parseQuery
Parses the specified query string and returns a query holder instance containing the parsed query.- Parameters:
query
- The query to parse- Returns:
- Query holder with the parsed query
-
parseQuery
Parses the specified query string and returns a query holder instance containing the parsed query.The provided result class can be used when processing the query to make adjustments.
- Parameters:
query
- Query to parseresultClass
- Result class provided by the client- Returns:
- Query holder with the parsed query
-