Default validator does not check anything. It sets attribute value to the one specified in validator.
You can find more information in comments below. Overrided methods can be found in corresponding base class or interface.
class CDbValidatorDefault :public CDbValidator
{
public:
// IDbValidator methods
bool Validate(CDbModel *model, IDbAttribute *attribute, String &error) override;
CDbValidatorDefault();
CDbValidatorDefault *setValue(const DbValue &value); // Set value to be set to attribute
static ReleasablePtr<CDbValidatorDefault> Create(); // Helper static method to create validator in form used in model rule adding methods
};
Namespace: | nitisa |
Include: | Nitisa/Db/DbValidatorDefault.h |