|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dftproject.genesis.core.data.nodes.CompareExpression
public class CompareExpression
An expression which matches objects according to a comparison.
| Field Summary | |
|---|---|
static java.lang.String |
EQ
Match all objects equal to the given value. |
static java.lang.String |
GE
Match all objects greater than or equal to the given value. |
static java.lang.String |
GT
Match all objects strictly greater than the given value. |
static java.lang.String |
LE
Match all objects less than or equal to the given value. |
static java.lang.String |
LT
Match all objects strictly less than the given value. |
static java.lang.String |
NE
Match all objects not equal to the given value. |
java.lang.String |
op
The comparison operator. |
java.lang.String |
value
The value to compare against. |
| Constructor Summary | |
|---|---|
CompareExpression(java.lang.String op,
java.lang.String value)
Creates an expression that matches all objects compared to the given value with the given operator. |
|
| Method Summary | |
|---|---|
java.lang.String |
getSQL(DataConnection conn,
java.lang.String table)
Returns the SQL fragment this expression represents. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String GE
public static final java.lang.String GT
public static final java.lang.String LE
public static final java.lang.String LT
public static final java.lang.String EQ
public static final java.lang.String NE
public java.lang.String op
public java.lang.String value
| Constructor Detail |
|---|
public CompareExpression(java.lang.String op,
java.lang.String value)
op - the comparison operatorvalue - the value| Method Detail |
|---|
public java.lang.String getSQL(DataConnection conn,
java.lang.String table)
IExpression
getSQL in interface IExpressionconn - a data connectiontable - alias of the table this expression uses
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||