T
- The entity represented by this key.public interface PrimaryKey<T> extends TypedColumn<T>
Most users of hrorm will have no need to directly use this.
Modifier and Type | Method and Description |
---|---|
Long |
getKey(T item)
Extracts the primary key
|
String |
getSequenceName()
The name of the database sequence that is used to populate this key
|
void |
setKey(T item,
Long id)
Sets the key onto the object
|
getName, getPrefix, isPrimaryKey, notNull, populate, setValue, withPrefix
Copyright © 2018. All rights reserved.