public class DataColumnFactory extends Object
Most users of hrorm will have no need to directly use this.
Constructor and Description |
---|
DataColumnFactory() |
Modifier and Type | Method and Description |
---|---|
static <ENTITY,BUILDER> |
bigDecimalColumn(String name,
String prefix,
Function<ENTITY,BigDecimal> getter,
BiConsumer<BUILDER,BigDecimal> setter,
boolean nullable) |
static <ENTITY,BUILDER> |
booleanColumn(String name,
String prefix,
Function<ENTITY,Boolean> getter,
BiConsumer<BUILDER,Boolean> setter,
boolean nullable) |
static <DBTYPE,CLASSTYPE,ENTITY,BUILDER> |
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> |
genericColumn(String name,
String prefix,
Function<ENTITY,TYPE> getter,
BiConsumer<BUILDER,TYPE> setter,
GenericColumn<TYPE> genericColumn,
boolean nullable) |
static <ENTITY,BUILDER> |
instantColumn(String name,
String prefix,
Function<ENTITY,Instant> getter,
BiConsumer<BUILDER,Instant> setter,
boolean nullable) |
static <ENTITY,BUILDER> |
longBackedBooleanColumn(String name,
String prefix,
Function<ENTITY,Boolean> getter,
BiConsumer<BUILDER,Boolean> setter,
boolean nullable) |
static <ENTITY,BUILDER> |
longColumn(String name,
String prefix,
Function<ENTITY,Long> getter,
BiConsumer<BUILDER,Long> setter,
boolean nullable) |
static <ENTITY,BUILDER> |
stringColumn(String name,
String prefix,
Function<ENTITY,String> getter,
BiConsumer<BUILDER,String> setter,
boolean nullable) |
static <TYPE,ENTITY,BUILDER> |
stringConverterColumn(String name,
String prefix,
Function<ENTITY,TYPE> getter,
BiConsumer<BUILDER,TYPE> setter,
Converter<TYPE,String> converter,
boolean nullable) |
static <ENTITY,BUILDER> |
textBackedBooleanColumn(String name,
String prefix,
Function<ENTITY,Boolean> getter,
BiConsumer<BUILDER,Boolean> setter,
boolean nullable) |
public static <ENTITY,BUILDER> Column<BigDecimal,BigDecimal,ENTITY,BUILDER> bigDecimalColumn(String name, String prefix, Function<ENTITY,BigDecimal> getter, BiConsumer<BUILDER,BigDecimal> setter, boolean nullable)
public static <ENTITY,BUILDER> Column<Long,Long,ENTITY,BUILDER> longColumn(String name, String prefix, Function<ENTITY,Long> getter, BiConsumer<BUILDER,Long> setter, boolean nullable)
public static <ENTITY,BUILDER> Column<Boolean,Boolean,ENTITY,BUILDER> booleanColumn(String name, String prefix, Function<ENTITY,Boolean> getter, BiConsumer<BUILDER,Boolean> setter, boolean nullable)
public static <ENTITY,BUILDER> Column<Boolean,String,ENTITY,BUILDER> textBackedBooleanColumn(String name, String prefix, Function<ENTITY,Boolean> getter, BiConsumer<BUILDER,Boolean> setter, boolean nullable)
public static <ENTITY,BUILDER> Column<Boolean,Long,ENTITY,BUILDER> longBackedBooleanColumn(String name, String prefix, Function<ENTITY,Boolean> getter, BiConsumer<BUILDER,Boolean> setter, boolean nullable)
public static <ENTITY,BUILDER> Column<String,String,ENTITY,BUILDER> stringColumn(String name, String prefix, Function<ENTITY,String> getter, BiConsumer<BUILDER,String> setter, boolean nullable)
public static <ENTITY,BUILDER> Column<Timestamp,Instant,ENTITY,BUILDER> instantColumn(String name, String prefix, Function<ENTITY,Instant> getter, BiConsumer<BUILDER,Instant> setter, boolean nullable)
public static <TYPE,ENTITY,BUILDER> Column<String,TYPE,ENTITY,BUILDER> stringConverterColumn(String name, String prefix, Function<ENTITY,TYPE> getter, BiConsumer<BUILDER,TYPE> setter, Converter<TYPE,String> converter, boolean nullable)
public static <TYPE,ENTITY,BUILDER> Column<TYPE,TYPE,ENTITY,BUILDER> genericColumn(String name, String prefix, Function<ENTITY,TYPE> getter, BiConsumer<BUILDER,TYPE> setter, GenericColumn<TYPE> genericColumn, boolean nullable)
public static <DBTYPE,CLASSTYPE,ENTITY,BUILDER> Column<DBTYPE,CLASSTYPE,ENTITY,BUILDER> convertedGenericColumn(String name, String prefix, Function<ENTITY,CLASSTYPE> getter, BiConsumer<BUILDER,CLASSTYPE> setter, GenericColumn<DBTYPE> genericColumn, Converter<CLASSTYPE,DBTYPE> converter, boolean nullable)
Copyright © 2019. All rights reserved.