org.apache.cayenne.annotations.validators
Annotation Type Past


@Retention(value=RUNTIME)
@Target(value={FIELD,PARAMETER,METHOD,ANNOTATION_TYPE})
@Constraint(check=PastCheck.class)
public @interface Past

Does the date appear in the Past


Optional Element Summary
 int daysFromNow
          Allows the user to augment the check by a nummber days
 java.lang.String message
           
 

daysFromNow

public abstract int daysFromNow
Allows the user to augment the check by a nummber days

Returns:
int the number of days to change
Default:
0

message

public abstract java.lang.String message
Default:
"cayenne-past-message"


Copyright © 2007. All Rights Reserved.