primary
boolean primary()
Note that this method returns true for empty keys representing entities without a defined primary key
- Returns:
- true if this key represents a primary key
<T> Column<T>column()Collection<Column<?>>columns()copy()Entity.Key.Builder instance, initialized with the values in this key.<T> Tstatic LinkedHashMap<EntityType,List<Entity.Key>> groupByType(Collection<Entity.Key> keys) booleanbooleanbooleanisNull()boolean<T> Optional<T>optional()Optional.<T> Optional<T>booleanprimary()type()<T> Tvalue()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 columnOptionalIllegalArgumentException - in case this column is not part of this keyEntity.Key.Builder instance, initialized with the values in this key.keys - the entity keys to map by entityType