Modifier and Type | Field and Description |
---|---|
static Converter<Instant,Timestamp> |
Converters.INSTANT_TIMESTAMP_CONVERTER
This
Converter translates between the Instant
class and the Timestamp and is used by the built-in
support for Instant . |
static Converter<Boolean,Long> |
Converters.ONE_ZERO_BOOLEAN_LONG_CONVERTER
This
Converter translates true values to 1 and false values to 0. |
static Converter<Boolean,String> |
Converters.T_F_BOOLEAN_STRING_CONVERTER
This
Converter translates true values to "T" and false values to "F". |
Modifier and Type | Method and Description |
---|---|
static Converter<Boolean,Long> |
Converters.booleanConverter(Long trueValue,
Long falseValue)
Produces a converter instance for encoding boolean values as
Long values. |
static Converter<Boolean,String> |
Converters.booleanConverter(String trueValue,
String falseValue)
Produces a converter instance for encoding boolean values as
String values. |
static <T> Converter<T,T> |
Converters.identity()
Produces an empty
Converter that does no transformations. |
Modifier and Type | Method and Description |
---|---|
static <DBTYPE,CLASSTYPE,ENTITY,BUILDER> |
DataColumnFactory.convertedGenericColumn(String name,
String prefix,
Function<ENTITY,CLASSTYPE> getter,
BiConsumer<BUILDER,CLASSTYPE> setter,
GenericColumn<DBTYPE> genericColumn,
Converter<CLASSTYPE,DBTYPE> converter,
boolean nullable) |
static <TYPE,ENTITY,BUILDER> |
DataColumnFactory.stringConverterColumn(String name,
String prefix,
Function<ENTITY,TYPE> getter,
BiConsumer<BUILDER,TYPE> setter,
Converter<TYPE,String> converter,
boolean nullable) |
<T,U> B |
AbstractKeylessDaoBuilder.withConvertedGenericColumn(String columnName,
Function<ENTITY,U> getter,
BiConsumer<ENTITYBUILDER,U> setter,
GenericColumn<T> genericColumn,
Converter<U,T> converter)
Describes a data element of type
U that can be stored in
a GenericColumn that stores objects of type T . |
<E> B |
AbstractKeylessDaoBuilder.withConvertingStringColumn(String columnName,
Function<ENTITY,E> getter,
BiConsumer<ENTITYBUILDER,E> setter,
Converter<E,String> converter)
Describes a data element with a particular type (like an enumeration) that
is persisted using a
String representation. |
Constructor and Description |
---|
ColumnImpl(GenericColumn<DBTYPE> genericColumn,
String prefix,
String name,
Function<ENTITY,CLASSTYPE> getter,
BiConsumer<BUILDER,CLASSTYPE> setter,
String sqlTypeName,
boolean nullable,
Converter<CLASSTYPE,DBTYPE> converter) |
Copyright © 2019. All rights reserved.