primaryKey
public boolean primaryKey()
Returns the value of the
primaryKey record component.- Returns:
- the value of the
primaryKeyrecord component
name - 列名type - 数据库类型length - 长度,默认-1scale - 精度,默认-1primaryKey - 是否主键unique - 是否唯一nullable - 是否允许空autoIncrement - 是否自增comment - 列注释,没有时为nulldefaultValue - 默认值,没有时为nulldefinition - 列完整定义,没有时为nullSerializable, SegmentSegment.DefaultbooleanautoIncrement record component.comment()comment record component.defaultValue record component.definition record component.final booleanfinal inthashCode()intlength()length record component.name()name record component.booleannullable()nullable record component.booleanprimaryKey record component.intscale()scale record component.final StringtoString()type()type record component.booleanunique()unique record component.staticableColumnDef record class.name - the value for the name record componenttype - the value for the type record componentlength - the value for the length record componentscale - the value for the scale record componentprimaryKey - the value for the primaryKey record componentunique - the value for the unique record componentnullable - the value for the nullable record componentautoIncrement - the value for the autoIncrement record componentcomment - the value for the comment record componentdefaultValue - the value for the defaultValue record componentdefinition - the value for the definition record componentObjects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.primaryKey record component.primaryKey record componentautoIncrement record component.autoIncrement record componentdefaultValue record component.defaultValue record componentdefinition record component.definition record component