Class ParameterTypeSelectorClauseFunction
- java.lang.Object
-
- net.sf.jasperreports.engine.query.ParameterTypeSelectorClauseFunction
-
- All Implemented Interfaces:
JRClauseFunction
public class ParameterTypeSelectorClauseFunction extends Object implements JRClauseFunction
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXCEPTION_MESSAGE_KEY_QUERY_PARAMETER_TYPE_SELECTOR_CLAUSE_IMPLEMENTATION_NOT_FOUNDstatic StringEXCEPTION_MESSAGE_KEY_QUERY_PARAMETER_TYPE_SELECTOR_CLAUSE_REQUIRED_TOKEN_NOT_FOUND
-
Constructor Summary
Constructors Constructor Description ParameterTypeSelectorClauseFunction(int... parameterPositions)
-
Method Summary
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_QUERY_PARAMETER_TYPE_SELECTOR_CLAUSE_IMPLEMENTATION_NOT_FOUND
public static final String EXCEPTION_MESSAGE_KEY_QUERY_PARAMETER_TYPE_SELECTOR_CLAUSE_IMPLEMENTATION_NOT_FOUND
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_QUERY_PARAMETER_TYPE_SELECTOR_CLAUSE_REQUIRED_TOKEN_NOT_FOUND
public static final String EXCEPTION_MESSAGE_KEY_QUERY_PARAMETER_TYPE_SELECTOR_CLAUSE_REQUIRED_TOKEN_NOT_FOUND
- See Also:
- Constant Field Values
-
-
Method Detail
-
apply
public void apply(JRClauseTokens clauseTokens, JRQueryClauseContext queryContext)
Description copied from interface:JRClauseFunctionHandles a query clause chunk.- Specified by:
applyin interfaceJRClauseFunction- Parameters:
clauseTokens- the clause tokensqueryContext- the query context
-
determineParameterType
protected Class<?> determineParameterType(JRClauseTokens clauseTokens, JRQueryClauseContext queryContext, int parameterPosition)
-
getForParameterTypes
protected JRClauseFunction getForParameterTypes(JRClauseTokens clauseTokens, JRQueryClauseContext queryContext, List<Class<?>> parameterTypes)
-
getCache
protected Map<Object,JRClauseFunction> getCache(JRQueryClauseContext queryContext)
-
parameterTypesFunctionCacheKey
protected Object parameterTypesFunctionCacheKey(JRClauseTokens clauseTokens, JRQueryClauseContext queryContext, List<Class<?>> parameterTypes)
-
selectForParameterTypes
protected JRClauseFunction selectForParameterTypes(JRClauseTokens clauseTokens, JRQueryClauseContext queryContext, List<Class<?>> parameterTypes)
-
selectFromCandidates
protected JRClauseFunction selectFromCandidates(List<Pair<List<Class<?>>,JRClauseFunction>> candidateFunctions)
-
findSupportedTypes
protected List<Class<?>> findSupportedTypes(ParameterTypesClauseFunction typesFunction, List<Class<?>> parameterTypes)
-
findSupportedType
protected Class<?> findSupportedType(Collection<Class<?>> supportedTypes, Class<?> parameterType)
-
-