Interface JRQueryClauseContext
public interface JRQueryClauseContext
A query clause handling context, as seen from a
clause function.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddQueryMultiParameters(String parameterName, int count) Records a multi-valued query parameter.voidaddQueryMultiParameters(String parameterName, int count, boolean ignoreNulls) Records a multi-valued query parameter with null values to be ignored.voidaddQueryParameter(Class<?> type, Object value) Records a query parameter based on a provided value.voidaddQueryParameter(String parameterName) Records a query parameter.Returns a canonical query language for this query execution.Returns the JasperReportsContext associated with the current query execution.getValueParameter(String parameterName) Return a value parameter from the report parameters map.Returns the query text buffer.
-
Method Details
-
queryBuffer
StringBuffer queryBuffer()Returns the query text buffer.- Returns:
- the query text buffer
-
getDataset
JRDataset getDataset() -
getValueParameter
Return a value parameter from the report parameters map.- Parameters:
parameterName- the parameter name- Returns:
- the parameter
-
addQueryParameter
Records a query parameter.- Parameters:
parameterName- the parameter name
-
addQueryMultiParameters
Records a multi-valued query parameter.- Parameters:
parameterName- the parameter namecount- the value count
-
addQueryMultiParameters
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
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
-