Package | Description |
---|---|
org.javalite.activejdbc |
ActiveJDBC - the agile Java ORM.
|
org.javalite.activejdbc.validation |
Data validation , see
Validations.
|
Modifier and Type | Method and Description |
---|---|
static ValidationBuilder |
Model.addValidator(Validator validator)
Adds a validator to the model.
|
static ValidationBuilder |
ModelDelegate.convertDate(Class<? extends Model> clazz,
String attributeName,
String format) |
protected static ValidationBuilder |
Model.convertDate(String attributeName,
String format)
Converts a named attribute to
java.sql.Date if possible. |
static ValidationBuilder |
ModelDelegate.convertTimestamp(Class<? extends Model> clazz,
String attributeName,
String format) |
protected static ValidationBuilder |
Model.convertTimestamp(String attributeName,
String format)
Converts a named attribute to
java.sql.Timestamp if possible. |
static ValidationBuilder |
ModelDelegate.validateEmailOf(Class<? extends Model> clazz,
String attributeName) |
protected static ValidationBuilder |
Model.validateEmailOf(String attributeName)
Validates email format.
|
static ValidationBuilder |
ModelDelegate.validatePresenceOf(Class<? extends Model> clazz,
String... attributeNames) |
protected static ValidationBuilder |
Model.validatePresenceOf(String... attributeNames)
The validation will not pass if the value is either an empty string "", or null.
|
static ValidationBuilder |
ModelDelegate.validateRange(Class<? extends Model> clazz,
String attributeName,
Number min,
Number max) |
protected static ValidationBuilder |
Model.validateRange(String attributeName,
Number min,
Number max)
Validates range.
|
static ValidationBuilder |
ModelDelegate.validateRegexpOf(Class<? extends Model> clazz,
String attributeName,
String pattern) |
protected static ValidationBuilder |
Model.validateRegexpOf(String attributeName,
String pattern)
Validates an attribite format with a ree hand regular expression.
|
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 |
NumericValidationBuilder |
Copyright © 2019 JavaLite. All rights reserved.