CHILD
- The child entity typePARENT
- The parent entity typeCHILDBUILDER
- The class used to construct new CHILD
instancesPARENTBUILDER
- The class used to construct new PARENT
instancespublic interface ParentColumn<CHILD,PARENT,CHILDBUILDER,PARENTBUILDER> extends Column<Long,Long,CHILD,CHILDBUILDER>
Most users of hrorm will have no need to directly use this.
Modifier and Type | Method and Description |
---|---|
Long |
getParentId(CHILD child) |
default boolean |
isParentColumn()
Flag indicating whether this column represents a reference to a parent entity.
|
void |
setParentPrimaryKey(PrimaryKey<PARENT,PARENTBUILDER> parentPrimaryKey) |
BiConsumer<CHILDBUILDER,PARENT> |
setter() |
asGenericColumn, fromResultSet, getName, getPrefix, getSqlTypeName, isNullable, isPrimaryKey, notNull, populate, setSqlTypeName, setValue, supportedTypes, toClassType, withPrefix
void setParentPrimaryKey(PrimaryKey<PARENT,PARENTBUILDER> parentPrimaryKey)
BiConsumer<CHILDBUILDER,PARENT> setter()
default boolean isParentColumn()
Column
isParentColumn
in interface Column<Long,Long,CHILD,CHILDBUILDER>
Copyright © 2019. All rights reserved.