ENTITY
- The type representing the enitity being persisted.ENTITYBUILDER
- The type of object that can build an ENTITY
instance.public interface KeyedDaoDescriptor<ENTITY,ENTITYBUILDER> extends DaoDescriptor<ENTITY,ENTITYBUILDER>
ENTITY
.
KeyedDaos are able to persist, update and select records uniquely, by Primary Key.
Most users of hrorm will have no need to directly use this.
Modifier and Type | Method and Description |
---|---|
default List<Column<ENTITY,ENTITYBUILDER>> |
allColumns()
All the columns of the underlying table, both data type and join type.
|
Function<ENTITYBUILDER,ENTITY> |
buildFunction() |
List<ChildrenDescriptor<ENTITY,?,ENTITYBUILDER,?>> |
childrenDescriptors()
The definitions of any entities that are owned by type
ENTITY |
default SortedMap<String,Column<ENTITY,ENTITYBUILDER>> |
columnMap(String... columnNames) |
default List<Column<ENTITY,ENTITYBUILDER>> |
dataColumnsWithParent() |
default boolean |
hasParent() |
List<JoinColumn<ENTITY,?,ENTITYBUILDER,?>> |
joinColumns()
The columns that contain references to foreign keys to other objects
|
<P,PB> ParentColumn<ENTITY,P,ENTITYBUILDER,PB> |
parentColumn() |
PrimaryKey<ENTITY,ENTITYBUILDER> |
primaryKey()
The primary key for objects of type
ENTITY |
dataColumns, dataColumnsWithParent, supplier, tableName
List<JoinColumn<ENTITY,?,ENTITYBUILDER,?>> joinColumns()
joinColumns
in interface KeylessDaoDescriptor<ENTITY,ENTITYBUILDER>
PrimaryKey<ENTITY,ENTITYBUILDER> primaryKey()
ENTITY
primaryKey
in interface DaoDescriptor<ENTITY,ENTITYBUILDER>
List<ChildrenDescriptor<ENTITY,?,ENTITYBUILDER,?>> childrenDescriptors()
ENTITY
childrenDescriptors
in interface KeylessDaoDescriptor<ENTITY,ENTITYBUILDER>
<P,PB> ParentColumn<ENTITY,P,ENTITYBUILDER,PB> parentColumn()
parentColumn
in interface KeylessDaoDescriptor<ENTITY,ENTITYBUILDER>
Function<ENTITYBUILDER,ENTITY> buildFunction()
buildFunction
in interface KeylessDaoDescriptor<ENTITY,ENTITYBUILDER>
default boolean hasParent()
hasParent
in interface KeylessDaoDescriptor<ENTITY,ENTITYBUILDER>
default List<Column<ENTITY,ENTITYBUILDER>> allColumns()
allColumns
in interface KeylessDaoDescriptor<ENTITY,ENTITYBUILDER>
default List<Column<ENTITY,ENTITYBUILDER>> dataColumnsWithParent()
dataColumnsWithParent
in interface KeylessDaoDescriptor<ENTITY,ENTITYBUILDER>
default SortedMap<String,Column<ENTITY,ENTITYBUILDER>> columnMap(String... columnNames)
columnMap
in interface KeylessDaoDescriptor<ENTITY,ENTITYBUILDER>
Copyright © 2019. All rights reserved.