Package | Description |
---|---|
org.javalite.activejdbc | |
org.javalite.activejdbc.validation |
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)
Deprecated.
use {@link #dateFormat(Class, String, String...) instead
|
protected static ValidationBuilder |
Model.convertDate(String attributeName,
String format)
Deprecated.
use {@link #dateFormat(String, String...) instead
|
static ValidationBuilder |
ModelDelegate.convertTimestamp(Class<? extends Model> clazz,
String attributeName,
String format)
Deprecated.
use {@link #timestampFormat(Class, String, String...) instead
|
protected static ValidationBuilder |
Model.convertTimestamp(String attributeName,
String format)
Deprecated.
use {@link #timestampFormat(String, String...) instead
|
protected static ValidationBuilder |
ModelDelegate.convertWith(Class<? extends Model> clazz,
Converter converter)
Deprecated.
|
protected static ValidationBuilder |
Model.convertWith(Converter converter)
Deprecated.
|
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 © 2016 JavaLite. All rights reserved.