Interface NativeQueryEvaluator<NativeQueryType, NativeResultType>

Type Parameters:
NativeQueryType - the type used to represent the native query
NativeResultType - the type used to represent the results as the native format
All Known Implementing Classes:
HttpQueryEvaluator, MongoDBQueryEvaluator, SparqlQueryEvaluator, SQLParameterizedQueryEvaluator, SQLQueryEvaluator

public interface NativeQueryEvaluator<NativeQueryType, NativeResultType>
A NativeQueryEvaluator can evaluate native queries over a datasource. Implementations needs to specify which type of query can be evaluated and what is the result type.
The evaluator's job is to hide the use of jdbc or other libraries from a higher point of view.
  • Method Summary

    Modifier and Type
    Method
    Description
    Evaluate the given query and returns the result This should not do anymore work
  • Method Details

    • evaluate

      Evaluate the given query and returns the result This should not do anymore work
      Parameters:
      query - to evaluate
      Returns:
      an optional which contains the results of the query if everything went right, an empty optional otherwise