java.lang.Object
ch.tocco.nice2.optional.qualification.impl.drools.helper.QueryHelper

public class QueryHelper extends Object
  • Method Details

    • getQueryResultLoader

      public static BiFunction<String,Object[],org.kie.api.runtime.rule.QueryResults> getQueryResultLoader(org.kie.api.runtime.KieSession session)
    • getQueryResultLoaderForRHS

      public static BiFunction<String,Object[],org.kie.api.runtime.rule.QueryResults> getQueryResultLoaderForRHS(org.kie.api.runtime.KieSession session)
    • requireSingleQueryResult

      public static <T> T requireSingleQueryResult(BiFunction<String,Object[],org.kie.api.runtime.rule.QueryResults> queryResultLoader, String query, String identifier, Class<T> expectedType, Object... arguments)
    • getSingleQueryResult

      @Nullable public static <T> T getSingleQueryResult(BiFunction<String,Object[],org.kie.api.runtime.rule.QueryResults> queryResultLoader, String query, String identifier, Class<T> expectedType, Object... arguments)
    • getQueryResults

      public static <T> List<T> getQueryResults(BiFunction<String,Object[],org.kie.api.runtime.rule.QueryResults> queryResultLoader, String query, String identifier, Class<T> expectedType, Object... arguments)