primaryKey
boolean primaryKey()
- Returns:
- true if this key represents a primary key for an entity, note that this is true for empty keys representing entities without a defined primary key
<T> Column<T>
column()
Collection<Column<?>>
columns()
Entity.Key.Builder
instance, initialized with the values in this key.<T> T
get()
<T> T
boolean
boolean
boolean
isNull()
boolean
<T> Optional<T>
optional()
Optional
.<T> Optional<T>
boolean
EntityDefinition.PrimaryKey.columns()
via EntityDefinition.primaryKey()
.column
- the columncolumn
- the columnT
- the column typeIllegalStateException
- in case this is a composite keyNoSuchElementException
- in case this key contains no valuesT
- the value typeIllegalStateException
- in case this is a composite keyNoSuchElementException
- in case this key contains no valuesOptional
. Note that this method throws an exception if this key is a composite key.T
- the value typeOptional
, useful for single attribute keysIllegalStateException
- in case this is a composite keyNoSuchElementException
- in case this key contains no valuesT
- the value typecolumn
- the columnIllegalArgumentException
- in case this column is not part of this keyT
- the value typecolumn
- the columnOptional
IllegalArgumentException
- in case this column is not part of this keyEntity.Key.Builder
instance, initialized with the values in this key.