ENTITY - The class that the Dao will support.public class DaoBuilder<ENTITY> extends AbstractDaoBuilder<ENTITY,ENTITY,DaoBuilder<ENTITY>> implements SchemaDescriptor<ENTITY,ENTITY>
Also see IndirectDaoBuilder and IndirectKeylessDaoBuilder.
childrenDescriptors, columnCollection, daoBuilderHelper| Constructor and Description |
|---|
DaoBuilder(String tableName,
Supplier<ENTITY> supplier)
Create a new DaoBuilder instance.
|
| Modifier and Type | Method and Description |
|---|---|
DaoBuilder<ENTITY> |
withPrimaryKey(String columnName,
String sequenceName,
Function<ENTITY,Long> getter,
BiConsumer<ENTITY,Long> setter)
Set data about the primary key of the table for this type.
|
buildDao, buildQueries, childrenDescriptors, childSelectStrategy, notNull, parentColumn, setSqlTypeName, uniquenessConstraints, withChildren, withChildSelectStrategy, withParentColumn, withParentColumn, withUniqueConstraintbuildFunction, getColumnCollection, supplier, tableName, withBigDecimalColumn, withBooleanColumn, withConvertedGenericColumn, withConvertingStringColumn, withGenericColumn, withInstantColumn, withIntegerBooleanColumn, withJoinColumn, withLongColumn, withStringBooleanColumn, withStringColumnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildQueries, uniquenessConstraintschildrenDescriptors, childSelectStrategy, hasParent, parentColumn, parentColumnName, primaryKey, validateConsistencyOfJoinedSelectStrategiesallColumns, buildFunction, dataColumns, getColumnCollection, joinColumns, joinedSelectStrategies, nonJoinColumns, select, supplier, tableNamepublic DaoBuilder<ENTITY> withPrimaryKey(String columnName, String sequenceName, Function<ENTITY,Long> getter, BiConsumer<ENTITY,Long> setter)
columnName - The name of the column in the table that holds the primary key.sequenceName - The name of the sequence that will provide new keys.getter - The function to call to get the primary key value from an object instance.setter - The function to call to set the primary key value to an object instance.Copyright © 2019. All rights reserved.