Java Reference
In-Depth Information
Table 8.8 Methods of the Query class that return a ValueExp object indicating an attribute value
to be used in a query expression. (continued)
Method
Return type
Description
Returns a ValueExp indicating a float value
value( float )
ValueExp
Returns a ValueExp indicating a int value
value( int )
ValueExp
Returns a ValueExp indicating a long value
value( long )
ValueExp
Returns a ValueExp indicating a Number value
value( java.lang.Number )
ValueExp
Returns a ValueExp indicating a String value
value( String )
ValueExp
Finally, Table 8.9 shows the methods used to create objects that can be used to
form more complex query expressions. Arguments to these methods are Value-
Exp objects—indicating that an expression is being created between two values.
Table 8.9 Methods of the Query class that create QueryExp objects (or subclasses) that can be
used in more complex query expressions.
Method
Return type
Description
Creates an expression that means one value is
between two other values
between( ValueExp,
ValueExp, ValueExp )
QueryExp
Creates a new ValueExp by dividing the first Value-
Exp by the second
div( ValueExp,
ValueExp)
ValueExp
Creates a new ValueExp by subtracting the second
ValueExp from the first
minus( ValueExp,
ValueExp)
ValueExp
Creates a new ValueExp by adding the first Value-
Exp to the second
plus( ValueExp,
ValueExp)
ValueExp
Creates a new ValueExp by multiplying the first
ValueExp by the second
times( ValueExp,
ValueExp)
ValueExp
Creates an expression that means the first ValueExp
should be equal to the second
eq( ValueExp,
ValueExp)
QueryExp
Creates an expression that means the first ValueExp
should be greater than or equal to the second
geq( ValueExp,
ValueExp)
QueryExp
Creates an expression that means the first ValueExp
should be greater than the second
gt( ValueExp,
ValueExp)
QueryExp
Creates an expression that means the first ValueExp
should be in the list of following ValueExp objects
in( ValueExp,
ValueExp[])
QueryExp
Creates an expression that means the first ValueExp
should less than or equal to the second
leq( ValueExp,
ValueExp)
QueryExp
Search WWH ::




Custom Search