Class StandardSingleQueryClauseFunctionBundle
- java.lang.Object
-
- net.sf.jasperreports.engine.query.StandardSingleQueryClauseFunctionBundle
-
- All Implemented Interfaces:
QueryClauseFunctionBundle
public class StandardSingleQueryClauseFunctionBundle extends Object implements QueryClauseFunctionBundle
Query clause function bundle for a single query language.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description StandardSingleQueryClauseFunctionBundle(String queryLanguage)
Creates a bundle for a query language
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFunction(String clauseId, JRClauseFunction function)
Registers a query clause function.JRClauseFunction
getFunction(String queryLanguage, String clauseId)
Returns a clause function that applies to the specified query language and clause Id.
-
-
-
Constructor Detail
-
StandardSingleQueryClauseFunctionBundle
public StandardSingleQueryClauseFunctionBundle(String queryLanguage)
Creates a bundle for a query language- Parameters:
queryLanguage
- the query language
-
-
Method Detail
-
addFunction
public void addFunction(String clauseId, JRClauseFunction function)
Registers a query clause function.- Parameters:
clauseId
- the clause Idfunction
- the function implementation
-
getFunction
public JRClauseFunction getFunction(String queryLanguage, String clauseId)
Description copied from interface:QueryClauseFunctionBundle
Returns a clause function that applies to the specified query language and clause Id.- Specified by:
getFunction
in interfaceQueryClauseFunctionBundle
- Parameters:
queryLanguage
- the query languageclauseId
- the clause Id- Returns:
- a corresponding query function or
null
if the bundle doesn't know of such clause
-
-