Modifier and Type | Method and Description |
---|---|
IndirectDaoBuilder<ENTITY,BUILDER> |
IndirectDaoBuilder.notNull()
Sets the most recent column added to this DaoBuilder to prevent it allowing
nulls on inserts or updates.
|
IndirectDaoBuilder<ENTITY,BUILDER> |
IndirectDaoBuilder.setSqlTypeName(String sqlTypeName)
Set the SQL type for the most recently added column.
|
IndirectDaoBuilder<ENTITY,BUILDER> |
IndirectDaoBuilder.withBigDecimalColumn(String columnName,
Function<ENTITY,BigDecimal> getter,
BiConsumer<BUILDER,BigDecimal> setter)
Describes a numeric data element with a decimal part.
|
IndirectDaoBuilder<ENTITY,BUILDER> |
IndirectDaoBuilder.withBooleanColumn(String columnName,
Function<ENTITY,Boolean> getter,
BiConsumer<BUILDER,Boolean> setter)
Describes a data element that represents a true/false value that is
backed by a SQL boolean column.
|
<CHILD,CHILDBUILDER> |
IndirectDaoBuilder.withChildren(Function<ENTITY,List<CHILD>> getter,
BiConsumer<BUILDER,List<CHILD>> setter,
DaoDescriptor<CHILD,CHILDBUILDER> childDaoDescriptor)
Describes a relationship between the object
ENTITY and its several
child objects of type U . |
<T,U> IndirectDaoBuilder<ENTITY,BUILDER> |
IndirectDaoBuilder.withConvertedGenericColumn(String columnName,
Function<ENTITY,U> getter,
BiConsumer<BUILDER,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> IndirectDaoBuilder<ENTITY,BUILDER> |
IndirectDaoBuilder.withConvertingStringColumn(String columnName,
Function<ENTITY,E> getter,
BiConsumer<BUILDER,E> setter,
Converter<E,String> converter)
Describes a data element with a particular type (like an enumeration) that
is persisted using a
String representation. |
<T> IndirectDaoBuilder<ENTITY,BUILDER> |
IndirectDaoBuilder.withGenericColumn(String columnName,
Function<ENTITY,T> getter,
BiConsumer<BUILDER,T> setter,
GenericColumn<T> genericColumn)
Describes a data element of type
T that can be stored in
a GenericColumn . |
IndirectDaoBuilder<ENTITY,BUILDER> |
IndirectDaoBuilder.withInstantColumn(String columnName,
Function<ENTITY,Instant> getter,
BiConsumer<BUILDER,Instant> setter)
Describes a data element that represents a time stamp.
|
IndirectDaoBuilder<ENTITY,BUILDER> |
IndirectDaoBuilder.withIntegerBooleanColumn(String columnName,
Function<ENTITY,Boolean> getter,
BiConsumer<BUILDER,Boolean> setter)
Describes a data element that represents a true/false value
and is backed by a column holding an integer value.
|
IndirectDaoBuilder<ENTITY,BUILDER> |
IndirectDaoBuilder.withIntegerColumn(String columnName,
Function<ENTITY,Long> getter,
BiConsumer<BUILDER,Long> setter)
Describes a numeric data element with no decimal or fractional part.
|
<U> IndirectDaoBuilder<ENTITY,BUILDER> |
IndirectDaoBuilder.withJoinColumn(String columnName,
Function<ENTITY,U> getter,
BiConsumer<BUILDER,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. |
IndirectDaoBuilder<ENTITY,BUILDER> |
IndirectDaoBuilder.withParentColumn(String columnName)
Indicator that the column is a reference to an owning parent object.
|
<P> IndirectDaoBuilder<ENTITY,BUILDER> |
IndirectDaoBuilder.withParentColumn(String columnName,
Function<ENTITY,P> getter,
BiConsumer<BUILDER,P> setter)
Indicator that the column is a reference to an owning parent object.
|
IndirectDaoBuilder<ENTITY,BUILDER> |
IndirectDaoBuilder.withPrimaryKey(String columnName,
String sequenceName,
Function<ENTITY,Long> getter,
BiConsumer<BUILDER,Long> setter)
Set data about the primary key of the table for this type.
|
IndirectDaoBuilder<ENTITY,BUILDER> |
IndirectDaoBuilder.withStringBooleanColumn(String columnName,
Function<ENTITY,Boolean> getter,
BiConsumer<BUILDER,Boolean> setter)
Describes a data element that represents a true/false value
and is backed by a column holding a String value.
|
IndirectDaoBuilder<ENTITY,BUILDER> |
IndirectDaoBuilder.withStringColumn(String columnName,
Function<ENTITY,String> getter,
BiConsumer<BUILDER,String> setter)
Describes a text or string data element.
|
IndirectDaoBuilder<ENTITY,BUILDER> |
IndirectDaoBuilder.withUniqueConstraint(String... columnNames)
Describe a unique constraint on this entity.
|
Copyright © 2019. All rights reserved.