primaryKey
EntityDefinition.PrimaryKey primaryKey()
- Returns:
- the
EntityDefinition.PrimaryKeyinstance
static interface static interface static interface static interface static interface static final is.codion.common.property.PropertyValue<Boolean>caption()columns()conditionProvider(ConditionType conditionType) ConditionProvider associated with the given typeentity()Entity instance based on this definitionEntity instance based on this definitionEntity instance based on this definitionexists()booleanorderBy()<T> Entity.KeyprimaryKey(T value) Entity.Key instance based on this definition, initialised with the given valuebooleanreadOnly()booleanConditionProvider associated with the given typeconditionType - the condition typeIllegalArgumentException - in case no ConditionProvider is associated with the given conditionTypeEntityDefinition.Attributes instanceEntityDefinition.Columns instanceEntityDefinition.ForeignKeys instanceEntityDefinition.PrimaryKey instanceEntity instance based on this definitionEntity instanceEntity instance based on this definitionvalues - the valuesEntity instanceIllegalArgumentException - in case any of the value attributes are not part of the entity.Entity instance based on this definitionvalues - the valuesoriginalValues - the original valuesEntity instanceIllegalArgumentException - in case any of the value attributes are not part of the entity.Entity.Key instance based on this definition, initialised with the given valueT - the key value typevalue - the key value, assuming a single value keyEntity.Key instanceIllegalStateException - in case the given primary key is a composite keyIllegalArgumentException - in case the value is not of the correct type