Package | Description |
---|---|
org.javalite.activejdbc |
ActiveJDBC - the agile Java ORM.
|
org.javalite.conversion |
Classes to manage data conversions, se Data conversions
|
org.javalite.validation |
Data validation , see
Validations.
|
Modifier and Type | Method and Description |
---|---|
static void |
ModelDelegate.convertWith(Class<? extends Model> clazz,
Converter converter,
String... attributeNames) |
protected static void |
Model.convertWith(Converter converter,
String... attributeNames)
Registers a custom converter for the specified attributes.
|
Modifier and Type | Class and Description |
---|---|
class |
BlankToNullConverter
Converts instances of String that are empty or contain only whitespaces to null.
|
class |
ConverterAdapter<S,T>
Converts instances of S to T.
|
class |
DateToStringConverter
|
class |
StringToSqlDateConverter
|
class |
StringToTimestampConverter
|
class |
ZeroToNullConverter
Converts instances of Number that are zero to null.
|
Modifier and Type | Method and Description |
---|---|
<S,T> Converter<S,T> |
ValidationSupport.converterForClass(String attribute,
Class<S> sourceClass,
Class<T> destinationClass)
Returns converter for specified model attribute, able to convert from sourceClass to destinationClass.
|
<T> Converter<Object,T> |
ValidationSupport.converterForValue(String attribute,
Object value,
Class<T> destinationClass)
Returns converter for specified model attribute, able to convert value to an instance of destinationClass.
|
Modifier and Type | Method and Description |
---|---|
void |
ValidationSupport.convertWith(Converter converter,
String... attributes)
Registers converter for specified model attributes.
|
void |
ValidationSupport.convertWith(Converter converter,
String attribute)
Registers converter for specified model attribute.
|
Copyright © 2020 JavaLite. All rights reserved.