Package | Description |
---|---|
org.javalite.activejdbc |
ActiveJDBC - the agile Java ORM.
|
org.javalite.activejdbc.validation |
Data validation , see
Validations.
|
org.javalite.activejdbc.validation.length |
Modifier and Type | Method and Description |
---|---|
static List<Validator> |
Model.getValidators(Class<? extends Model> clazz) |
static List<Validator> |
ModelDelegate.validatorsOf(Class<? extends Model> clazz) |
Modifier and Type | Method and Description |
---|---|
protected void |
Errors.addValidator(String attributeName,
Validator validator)
Adds a validator whose validation failed.
|
static ValidationBuilder |
Model.addValidator(Validator validator)
Adds a validator to the model.
|
void |
Model.addValidator(Validator validator,
String errorKey)
Binds a validator to an attribute if validation fails.
|
static void |
ModelDelegate.removeValidator(Class<? extends Model> clazz,
Validator validator) |
static void |
Model.removeValidator(Validator validator)
Removes a validator from model.
|
static ValidationBuilder |
ModelDelegate.validateWith(Class<? extends Model> clazz,
Validator validator) |
protected static ValidationBuilder |
Model.validateWith(Validator validator)
Add a custom validator to the model.
|
Modifier and Type | Class and Description |
---|---|
class |
ValidationBuilder<T extends Validator> |
Modifier and Type | Class and Description |
---|---|
class |
AttributePresenceValidator |
class |
DateValidator |
class |
EmailValidator |
class |
NumericValidator |
class |
RangeValidator |
class |
RegexpValidator |
class |
TimestampValidator
Validates presence and correct format of a string and converts it to
java.sql.Timestamp if the
format of correct. |
class |
UniquenessValidator
Naive uniqueness validator.
|
class |
ValidatorAdapter
Subclass this class to create custom validators.
|
Modifier and Type | Class and Description |
---|---|
class |
AttributeLengthValidator
Attribute length validator.
|
Copyright © 2020 JavaLite. All rights reserved.