|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.storage.search.implementation.BasicConstraint
org.mmbase.storage.search.implementation.BasicFieldConstraint
org.mmbase.storage.search.implementation.BasicFieldValueBetweenConstraint
public class BasicFieldValueBetweenConstraint
Basic implementation.
| Field Summary |
|---|
| Fields inherited from class org.mmbase.storage.search.implementation.BasicConstraint |
|---|
modifiable |
| Constructor Summary | |
|---|---|
BasicFieldValueBetweenConstraint(StepField field,
Object lowerLimit,
Object upperLimit)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Compares this constraint to the specified object. |
Object |
getLowerLimit()
Gets the value of the lower limit of the range specified for this constraint. |
Object |
getUpperLimit()
Gets the value of the upper limit of the range specified for this constraint. |
int |
hashCode()
|
BasicFieldValueBetweenConstraint |
setLowerLimit(Object lowerLimit)
Sets the lower limit property. |
BasicFieldValueBetweenConstraint |
setUpperLimit(Object upperLimit)
Sets the upper limit property. |
String |
toString()
Returns a string representation of this FieldValueBetweenConstraint. |
| Methods inherited from class org.mmbase.storage.search.implementation.BasicFieldConstraint |
|---|
getField, getFieldName, isCaseSensitive, matches, setCaseSensitive |
| Methods inherited from class org.mmbase.storage.search.implementation.BasicConstraint |
|---|
getBasicSupportLevel, isInverse, setInverse, setUnmodifiable |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mmbase.storage.search.FieldConstraint |
|---|
getField, isCaseSensitive, matches |
| Methods inherited from interface org.mmbase.storage.search.Constraint |
|---|
getBasicSupportLevel, isInverse, setUnmodifiable |
| Constructor Detail |
|---|
public BasicFieldValueBetweenConstraint(StepField field,
Object lowerLimit,
Object upperLimit)
Depending on the field type, the limit values must be of type
String or Number.
field - The associated field.lowerLimit - The lower limit.upperLimit - The upper limit.
IllegalArgumentException - when an invalid argument is supplied.| Method Detail |
|---|
public BasicFieldValueBetweenConstraint setLowerLimit(Object lowerLimit)
Depending on the field type, the value must be of type
String or Number.
lowerLimit - The non-null lower limit property value.
BasicFieldValueBetweenConstraint instance.
IllegalArgumentException - when an invalid argument is supplied.public BasicFieldValueBetweenConstraint setUpperLimit(Object upperLimit)
Depending on the field type, the value must be of type
String or Number.
upperLimit - The non-null upper limit property value.
BasicFieldValueBetweenConstraint instance.
IllegalArgumentException - when an invalid argument is supplied.public Object getLowerLimit()
FieldValueBetweenConstraint
getLowerLimit in interface FieldValueBetweenConstraintpublic Object getUpperLimit()
FieldValueBetweenConstraint
getUpperLimit in interface FieldValueBetweenConstraintpublic boolean equals(Object obj)
Constrainttrue if and only if the argument is a non-null
Constraint object representing the same constraint(s).
equals in interface Constraintequals in class BasicFieldConstraintobj - The object to compare with.
true if the objects are equal,
false otherwise.public int hashCode()
hashCode in interface ConstrainthashCode in class BasicFieldConstraintpublic String toString()
FieldValueBetweenConstraintisInverse()
FieldConstraint#getField().getAlias()
isCaseSensitive()
getValues()
getValues()
toString in interface FieldValueBetweenConstrainttoString in class BasicFieldConstraint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||