| java.lang.Object velosurf.validation.FieldConstraint
All known Subclasses: velosurf.validation.Range, velosurf.validation.NotNull, velosurf.validation.Regex, velosurf.validation.OneOf, velosurf.validation.Reference, velosurf.validation.Email, velosurf.validation.NotEmpty, velosurf.validation.Length, velosurf.validation.DateRange,
FieldConstraint | abstract public class FieldConstraint (Code) | | This class encapsulates a constraint on a column of an entity, used to validate data
before an update or an insert.
author: Claude Brisson |
getMessage | public String getMessage()(Code) | | get the error message
the error message |
setMessage | public void setMessage(String msg)(Code) | | error message setter
Parameters: msg - error message |
validate | public boolean validate(Object data, Locale locale) throws SQLException(Code) | | validate data against this constraint.
Parameters: data - to validate Parameters: locale - true if the data respects the constraint |
validate | public boolean validate(Object data) throws SQLException(Code) | | validate data against this constraint.
Parameters: data - data to validate true if data respects the constaint throws: SQLException - |
|
|