Modifier and Type | Method and Description |
---|---|
DaoBuilder<T> |
DaoBuilder.notNull()
Sets the most recent column added to this DaoBuilder to prevent it allowing
nulls on inserts or updates.
|
DaoBuilder<T> |
DaoBuilder.withBigDecimalColumn(String columnName,
Function<T,BigDecimal> getter,
BiConsumer<T,BigDecimal> setter)
Describes a numeric data element with a decimal part.
|
DaoBuilder<T> |
DaoBuilder.withBooleanColumn(String columnName,
Function<T,Boolean> getter,
BiConsumer<T,Boolean> setter)
Describes a data element that represents a true/false value.
|
<U> DaoBuilder<T> |
DaoBuilder.withChildren(String parentChildColumnName,
BiConsumer<U,Long> parentSetter,
Function<T,List<U>> getter,
BiConsumer<T,List<U>> setter,
DaoDescriptor<U> daoDescriptor)
Describes a relationship between the object
T and its several
child objects of type U . |
<E> DaoBuilder<T> |
DaoBuilder.withConvertingStringColumn(String columnName,
Function<T,E> getter,
BiConsumer<T,E> setter,
Converter<E,String> converter)
Describes a data element with a particular type (like an enumeration) that
is persisted using a
String representation. |
DaoBuilder<T> |
DaoBuilder.withIntegerColumn(String columnName,
Function<T,Long> getter,
BiConsumer<T,Long> setter)
Describes a numeric data element with no decimal or fractional part.
|
<U> DaoBuilder<T> |
DaoBuilder.withJoinColumn(String columnName,
Function<T,U> getter,
BiConsumer<T,U> setter,
DaoDescriptor<U> daoDescriptor)
Describes a data element that is represented by an
Object of some
other type U with its own table for persistence. |
DaoBuilder<T> |
DaoBuilder.withLocalDateTimeColumn(String columnName,
Function<T,LocalDateTime> getter,
BiConsumer<T,LocalDateTime> setter)
Describes a data element that represents a time stamp.
|
DaoBuilder<T> |
DaoBuilder.withPrimaryKey(String columnName,
String sequenceName,
Function<T,Long> getter,
BiConsumer<T,Long> setter)
Set data about the primary key of the table for this type.
|
DaoBuilder<T> |
DaoBuilder.withStringColumn(String columnName,
Function<T,String> getter,
BiConsumer<T,String> setter)
Describes a text or string data element.
|
Copyright © 2018. All rights reserved.