| java.lang.Object dinamica.AbstractModule dinamica.GenericTransaction dinamica.AbstractValidator dinamica.validators.CanDeleteRecord
CanDeleteRecord | public class CanDeleteRecord extends AbstractValidator (Code) | | This validator can be used to detect if there are
any related records in another table before trying to
delete a certain record. Returns TRUE if there are no
related records meaning that the record can be deleted.
You will need to call this validator for every referential
integrity check before deleting a record.
Rrequires 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.
(c) 2004 Martin Cordova
This code is released under the LGPL license
Dinamica Framework - http://www.martincordova.com
author: Martin Cordova (dinamica@martincordova.com) |
|
|