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<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 | 
| void | setKey(BUILDER builder,
      Long id) | 
getName, getPrefix, isNullable, isParentColumn, isPrimaryKey, notNull, populate, setValue, supportedTypes, withPrefixvoid 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.