|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.query.JRSqlAbstractEqualClause
public abstract class JRSqlAbstractEqualClause
Base (NOT) EQUAL clause function for SQL queries.
The first token in the $X{...} syntax is the function ID token. Possible values for the (NOT) EQUAL clause function ID token are:
Field Summary | |
---|---|
protected static int |
POSITION_DB_COLUMN
|
protected static int |
POSITION_PARAMETER
|
Constructor Summary | |
---|---|
protected |
JRSqlAbstractEqualClause()
|
Method Summary | |
---|---|
void |
apply(JRClauseTokens clauseTokens,
JRQueryClauseContext queryContext)
Creates a (NOT) EQUAL SQL clause. |
protected void |
finalizeClause(java.lang.StringBuffer sbuffer,
java.lang.String param,
JRQueryClauseContext queryContext)
Finalizes the query string |
protected abstract void |
handleEqualOperator(java.lang.StringBuffer sBuffer,
java.lang.String param,
JRQueryClauseContext queryContext)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int POSITION_DB_COLUMN
protected static final int POSITION_PARAMETER
Constructor Detail |
---|
protected JRSqlAbstractEqualClause()
Method Detail |
---|
public void apply(JRClauseTokens clauseTokens, JRQueryClauseContext queryContext)
The method expects two clause tokens (after the ID token):
The EQUAL function constructs either a column = ?
or an
column IS NULL
clause, depending on the parameter's value.
The NOTEQUAL function constructs either a column <> ?
or an
column IS NOT NULL
clause, depending on the parameter's value.
apply
in interface JRClauseFunction
clauseTokens
- the clause tokensqueryContext
- the query contextprotected void finalizeClause(java.lang.StringBuffer sbuffer, java.lang.String param, JRQueryClauseContext queryContext)
sbuffer
- param
- queryContext
- protected abstract void handleEqualOperator(java.lang.StringBuffer sBuffer, java.lang.String param, JRQueryClauseContext queryContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |