dinamica.validators |
|
Java Source File Name | Type | Comment |
ArrayNotEmptyValidator.java | Class | Generic validator to test if an array based parameter
is empty. |
CanDeleteRecord.java | Class | This validator can be used to detect if there are
any related records in another table before trying to
delete a certain record. |
DateRangeValidator.java | Class | Generic validator for date ranges (date from - date to).
Will return FALSE if date2 < date1, requires two custom attributes named "date1" and "date2",
representing the field names of the two recordset fields to use
in the validation logic. |
DoubleRangeValidator.java | Class | Generic validator for double value ranges (value-from - value-to).
Will return FALSE if value2 < value1, requires two custom attributes named "value1" and "value2",
representing the field names of the two recordset fields to use
in the validation logic. |
DuplicatedKeyValidator.java | Class | Generic Validator to test if a record key is duplicated,
requires the following custom attributes:
- sql: query to find any related record.
|
IntegerRangeValidator.java | Class | Generic validator for integer value ranges (value-from - value-to).
Will return FALSE if value2 < value1, requires two custom attributes named "value1" and "value2",
representing the field names of the two recordset fields to use
in the validation logic. |
MatchEqualValidator.java | Class | Returns TRUE if value1.equals(value2).
value1 and value2 must be of type String. |
NoRecordsFound.java | Class | This validator returns FALSE if no rows are returned
by a given SQL query. |
NotEmpty.java | Class | Verificar que un conjunto de campos del request no sean nulos. |
SQLPatternTransformer.java | Class | This validator transforms the value (if not null) of the corresponding
parameter, by appending a '%' at the end of the text or by enclosing the
the value between '%' characters.
It is used to create search patterns for SQL queries like 'value starts with..' that can
be used in sql LIKE expressions. |
TimeValidator.java | Class | This validator returns FALSE if the corresponding field
cannot be parsed as a valid time with format HH:mm
If parameter's value is NULL then the validator returns TRUE
Requires the following custom attributes:
- parameter: Name of the request parameter to validate.
|
UpperCaseTransformer.java | Class | This validator does not validate but transforms the value of the target parameter
by transforming its contents to upper case characters. |