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 Details

    • StandardSingleQueryClauseFunctionBundle

      public StandardSingleQueryClauseFunctionBundle(String queryLanguage)
      Creates a bundle for a query language
      Parameters:
      queryLanguage - the query language
  • Method Details

    • addFunction

      public void addFunction(String clauseId, JRClauseFunction function)
      Registers a query clause function.
      Parameters:
      clauseId - the clause Id
      function - 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 interface QueryClauseFunctionBundle
      Parameters:
      queryLanguage - the query language
      clauseId - the clause Id
      Returns:
      a corresponding query function or null if the bundle doesn't know of such clause