ENTITY
- The class that the KeylessDao
will support.BUILDER
- The class that builds the ENTITY
type.public class IndirectKeylessDaoBuilder<ENTITY,BUILDER> extends AbstractKeylessDaoBuilder<ENTITY,BUILDER,IndirectKeylessDaoBuilder<ENTITY,BUILDER>> implements KeylessDaoDescriptor<ENTITY,BUILDER>
IndirectKeylessDaoBuilder
provides mechanisms for defining the relationship between
a Java type and the table that backs it.
Using this builder (as opposed to the DaoBuilder
or IndirectDaoBuilder
)
will allow support for entities that do not have primary keys, but that support comes at
a price. A KeylessDao
supports fewer methods than a standard Dao
and these entities cannot be joined to other objects or have children or be children to other objects.
In general, the regular variants should be preferred.
childrenDescriptors, columnCollection, daoBuilderHelper
Constructor and Description |
---|
IndirectKeylessDaoBuilder(String table,
Supplier<BUILDER> supplier,
Function<BUILDER,ENTITY> buildFunction) |
Modifier and Type | Method and Description |
---|---|
KeylessDao<ENTITY> |
buildDao(Connection connection)
Creates a
Dao for performing CRUD operations of type ENTITY . |
buildFunction, getColumnCollection, notNull, setSqlTypeName, supplier, tableName, withBigDecimalColumn, withBooleanColumn, withConvertedGenericColumn, withConvertingStringColumn, withGenericColumn, withInstantColumn, withIntegerBooleanColumn, withJoinColumn, withLongColumn, withStringBooleanColumn, withStringColumn, withUniqueConstraint
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allColumns, buildFunction, dataColumns, getColumnCollection, joinColumns, joinedSelectStrategies, nonJoinColumns, select, supplier, tableName
public KeylessDao<ENTITY> buildDao(Connection connection)
Dao
for performing CRUD operations of type ENTITY
.connection
- The SQL connection this Dao
will use
for its operations.Dao
.Copyright © 2019. All rights reserved.