|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjsky.catalog.AbstractSearchCondition
jsky.catalog.ValueSearchCondition
public class ValueSearchCondition
Represents a search condition for values in a given table column, or parameters to a query or request.
| Constructor Summary | |
|---|---|
ValueSearchCondition(FieldDesc fieldDesc,
java.lang.Comparable val)
Create a new ValueSearchCondition for the given column or parameter description. |
|
ValueSearchCondition(FieldDesc fieldDesc,
double val)
Create a new numerical ValueSearchCondition for the given column or parameter description. |
|
ValueSearchCondition(FieldDesc fieldDesc,
java.lang.String val)
Create a new String ValueSearchCondition for the given column or parameter description. |
|
| Method Summary | |
|---|---|
java.lang.Comparable |
getVal()
Return the value (actually a Double or String) |
java.lang.String |
getValueAsString()
Return the value as a String. |
boolean |
isTrueFor(java.lang.Comparable val)
Return true if the condition is true for the given value. |
boolean |
isTrueFor(double val)
Return true if the condition is true for the given numeric value. |
static void |
main(java.lang.String[] args)
Test cases |
| Methods inherited from class jsky.catalog.AbstractSearchCondition |
|---|
getFieldDesc, getId, getName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ValueSearchCondition(FieldDesc fieldDesc,
java.lang.Comparable val)
public ValueSearchCondition(FieldDesc fieldDesc,
double val)
public ValueSearchCondition(FieldDesc fieldDesc,
java.lang.String val)
| Method Detail |
|---|
public java.lang.Comparable getVal()
public boolean isTrueFor(java.lang.Comparable val)
val - The value to be checked against the condition.
public boolean isTrueFor(double val)
val - The value to be checked against the condition.
public java.lang.String getValueAsString()
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||