org.hibernate.validator
Class PastValidator

java.lang.Object
  extended by org.hibernate.validator.PastValidator
All Implemented Interfaces:
Serializable, PropertyConstraint, Validator<Past>

public class PastValidator
extends Object
implements Validator<Past>, PropertyConstraint, Serializable

Check that a given date is in the past, and apply the same restriction at the DB level

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
PastValidator()
           
 
Method Summary
 void apply(org.hibernate.mapping.Property property)
           
 void initialize(Past parameters)
          Take the annotations values
 boolean isValid(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

PastValidator

public PastValidator()
Method Detail

initialize

public void initialize(Past parameters)
Description copied from interface: Validator
Take the annotations values

Specified by:
initialize in interface Validator<Past>

isValid

public boolean isValid(Object value)
Description copied from interface: Validator
does the object/element pass the constraints

Specified by:
isValid in interface Validator<Past>

apply

public void apply(org.hibernate.mapping.Property property)
Specified by:
apply in interface PropertyConstraint