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 SummaryModifier and TypeMethodDescriptionparseQuery(String query) Parses the specified query string and returns a query holder instance containing the parsed query.default QueryHolderparseQuery(String query, Class<?> resultClass) Parses the specified query string and returns a query holder instance containing the parsed query.
- 
Method Details- 
parseQueryParses 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
 
- 
parseQueryParses 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 parse
- resultClass- Result class provided by the client
- Returns:
- Query holder with the parsed query
 
 
-