|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.validator.RangeValidator
public class RangeValidator
The value has to be in a defined range, the constraint is also applied on DB
| Constructor Summary | |
|---|---|
RangeValidator()
|
|
| Method Summary | |
|---|---|
void |
apply(org.hibernate.mapping.Property property)
|
void |
initialize(Range parameters)
Take the annotations values |
boolean |
isValid(java.lang.Object value)
does the object/element pass the constraints |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RangeValidator()
| Method Detail |
|---|
public void initialize(Range parameters)
Validator
initialize in interface Validator<Range>public boolean isValid(java.lang.Object value)
Validator
isValid in interface Validator<Range>public void apply(org.hibernate.mapping.Property property)
apply in interface PropertyConstraint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||