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 THAN
operator<
will be applied.LESS]
- in this case theLESS OR EQUAL
operator<=
will be applied.GREATER
- in this case theGREATER THAN
operator>
will be applied.[GREATER
- in this case theGREATER OR EQUAL
operator>=
will be applied.
- Author:
- Sanda Zaharia (shertage@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description protected static JRSqlLessOrGreaterClause
singleton
-
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 ClauseFunctionParameterHandler
createParameterHandler(JRQueryClauseContext queryContext, String clauseId, String parameterName)
static JRSqlLessOrGreaterClause
instance()
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:
createParameterHandler
in classSQLLessOrGreaterBaseClause
-
-