Class JRSqlLessOrGreaterClause
- java.lang.Object
-
- net.sf.jasperreports.engine.query.SQLLessOrGreaterBaseClause
-
- net.sf.jasperreports.engine.query.JRSqlLessOrGreaterClause
-
- All Implemented Interfaces:
JRClauseFunction
public class JRSqlLessOrGreaterClause extends SQLLessOrGreaterBaseClause
Base LESS/GREATER clause function for SQL queries.The first token in the $X{...} syntax is the function ID token. Possible values for the LESS | GREATER clause function ID token are:
LESS- in this case theLESS THANoperator<will be applied.LESS]- in this case theLESS OR EQUALoperator<=will be applied.GREATER- in this case theGREATER THANoperator>will be applied.[GREATER- in this case theGREATER OR EQUALoperator>=will be applied.
- Author:
- Sanda Zaharia (shertage@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description protected static JRSqlLessOrGreaterClausesingleton-
Fields inherited from class net.sf.jasperreports.engine.query.SQLLessOrGreaterBaseClause
CLAUSE_TRUISM, EXCEPTION_MESSAGE_KEY_QUERY_LESS_GREATER_CLAUSE_DB_COLUMN_TOKEN_MISSING, EXCEPTION_MESSAGE_KEY_QUERY_LESS_GREATER_CLAUSE_NAME_TOKEN_MISSING, EXCEPTION_MESSAGE_KEY_QUERY_LESS_GREATER_CLAUSE_PARAMETER_TOKEN_MISSING, OPERATOR_GREATER, OPERATOR_GREATER_OR_EQUAL, OPERATOR_LESS, OPERATOR_LESS_OR_EQUAL, POSITION_CLAUSE_ID, POSITION_DB_COLUMN, POSITION_PARAMETER
-
-
Constructor Summary
Constructors Constructor Description JRSqlLessOrGreaterClause()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClauseFunctionParameterHandlercreateParameterHandler(JRQueryClauseContext queryContext, String clauseId, String parameterName)static JRSqlLessOrGreaterClauseinstance()Returns the singleton function instance.-
Methods inherited from class net.sf.jasperreports.engine.query.SQLLessOrGreaterBaseClause
apply, handleLessOrGreaterOperator
-
-
-
-
Field Detail
-
singleton
protected static final JRSqlLessOrGreaterClause singleton
-
-
Method Detail
-
instance
public static JRSqlLessOrGreaterClause instance()
Returns the singleton function instance.- Returns:
- the singleton function instance
-
createParameterHandler
protected ClauseFunctionParameterHandler createParameterHandler(JRQueryClauseContext queryContext, String clauseId, String parameterName)
- Specified by:
createParameterHandlerin classSQLLessOrGreaterBaseClause
-
-