Interface JRQueryClauseContext
-
public interface JRQueryClauseContext
A query clause handling context, as seen from aclause function
.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addQueryMultiParameters(String parameterName, int count)
Records a multi-valued query parameter.void
addQueryMultiParameters(String parameterName, int count, boolean ignoreNulls)
Records a multi-valued query parameter with null values to be ignored.void
addQueryParameter(Class<?> type, Object value)
Records a query parameter based on a provided value.void
addQueryParameter(String parameterName)
Records a query parameter.String
getCanonicalQueryLanguage()
Returns a canonical query language for this query execution.JasperReportsContext
getJasperReportsContext()
Returns the JasperReportsContext associated with the current query execution.JRValueParameter
getValueParameter(String parameterName)
Return a value parameter from the report parameters map.StringBuffer
queryBuffer()
Returns the query text buffer.
-
-
-
Method Detail
-
queryBuffer
StringBuffer queryBuffer()
Returns the query text buffer.- Returns:
- the query text buffer
-
getValueParameter
JRValueParameter getValueParameter(String parameterName)
Return a value parameter from the report parameters map.- Parameters:
parameterName
- the parameter name- Returns:
- the parameter
-
addQueryParameter
void addQueryParameter(String parameterName)
Records a query parameter.- Parameters:
parameterName
- the parameter name
-
addQueryMultiParameters
void addQueryMultiParameters(String parameterName, int count)
Records a multi-valued query parameter.- Parameters:
parameterName
- the parameter namecount
- the value count
-
addQueryMultiParameters
void addQueryMultiParameters(String parameterName, int count, boolean ignoreNulls)
Records a multi-valued query parameter with null values to be ignored.- Parameters:
parameterName
- the parameter namecount
- the value countignoreNulls
- flag that indicates whether the null values should be ignored
-
addQueryParameter
void addQueryParameter(Class<?> type, Object value)
Records a query parameter based on a provided value.- Parameters:
type
- the parameter type if specifiedvalue
- the parameter value
-
getJasperReportsContext
JasperReportsContext getJasperReportsContext()
Returns the JasperReportsContext associated with the current query execution.- Returns:
- the current JasperReportsContext
-
getCanonicalQueryLanguage
String getCanonicalQueryLanguage()
Returns a canonical query language for this query execution.The canonical language is used to retrieve extensions for the query executer.
- Returns:
- the canonical query language
-
-