Class QueryHelper
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.drools.helper.QueryHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic BiFunction
<String, Object[], org.kie.api.runtime.rule.QueryResults> getQueryResultLoader
(org.kie.api.runtime.KieSession session) static BiFunction
<String, Object[], org.kie.api.runtime.rule.QueryResults> getQueryResultLoaderForRHS
(org.kie.api.runtime.KieSession session) static <T> List
<T> getQueryResults
(BiFunction<String, Object[], org.kie.api.runtime.rule.QueryResults> queryResultLoader, String query, String identifier, Class<T> expectedType, Object... arguments) static <T> T
getSingleQueryResult
(BiFunction<String, Object[], org.kie.api.runtime.rule.QueryResults> queryResultLoader, String query, String identifier, Class<T> expectedType, Object... arguments) static <T> T
requireSingleQueryResult
(BiFunction<String, Object[], org.kie.api.runtime.rule.QueryResults> queryResultLoader, String query, String identifier, Class<T> expectedType, Object... arguments)
-
Method Details
-
getQueryResultLoader
public static BiFunction<String,Object[], getQueryResultLoaderorg.kie.api.runtime.rule.QueryResults> (org.kie.api.runtime.KieSession session) -
getQueryResultLoaderForRHS
public static BiFunction<String,Object[], getQueryResultLoaderForRHSorg.kie.api.runtime.rule.QueryResults> (org.kie.api.runtime.KieSession session) -
requireSingleQueryResult
-
getSingleQueryResult
-
getQueryResults
-