| java.lang.Object dinamica.AbstractModule dinamica.GenericTransaction dinamica.AbstractValidator dinamica.validators.DuplicatedKeyValidator
DuplicatedKeyValidator | public class DuplicatedKeyValidator extends AbstractValidator (Code) | | Generic Validator to test if a record key is duplicated,
requires the following custom attributes:
- sql: query to find any related record. You may use field makers
that will be replaced by the corresponding request parameters passed
as a recordset to the isValid method.
If you don't use the SQL query you may use the
attributes shown below (not recommended).
- table: name of the search table.
- column: name of the search column, also the
name of the parameter whose value will be used.
- varchar: true|false indicates if the column is of type varchar or alike,
this is used to demarcate the column search value with the proper delimiter, if any.
Works only for text or numeric values, dates not allowed.
Creation date: 10/feb/2004
Last Update: 10/feb/2004
(c) 2004 Martin Cordova
This code is released under the LGPL license
author: Martin Cordova (dinamica@martincordova.com) |
|
|