ENTITY
- The type of the entity being representedBUILDER
- The type of the class that can construct new ENTITY
instancespublic interface PrimaryKey<ENTITY,BUILDER> extends Column<Long,Long,ENTITY,BUILDER>
Most users of hrorm will have no need to directly use this.
Modifier and Type | Method and Description |
---|---|
Long |
getKey(ENTITY item) |
String |
getSequenceName()
The name of the database sequence that is used to populate this key
|
void |
optimisticSetKey(ENTITY item,
Long id)
Sets the key onto the object
|
asGenericColumn, fromResultSet, getName, getPrefix, getSqlTypeName, isNullable, isParentColumn, isPrimaryKey, notNull, populate, setSqlTypeName, setValue, supportedTypes, toClassType, withPrefix
void optimisticSetKey(ENTITY item, Long id)
item
- the object whose key is to be setid
- the primary key to assign itString getSequenceName()
Copyright © 2019. All rights reserved.