primaryKey
public boolean primaryKey()
Returns the value of the
primaryKey record component.- Returns:
- the value of the
primaryKeyrecord component
field - 字段名column - 列名type - 类型,可能包含泛型,Class|ParameterizedTypeprimaryKey - 是否主键autoIncrement - 是否自增table - 表名nested - 是否嵌套表的属性fillOnInsert - 插入时填充注解fillOnUpdate - 更新时填充注解setter - 属性设置器,实体类是record时没有(final无法修改)ColumnMetadata(Field field,
String column,
Type type,
boolean primaryKey,
boolean autoIncrement,
String table,
boolean nested,
FillOnInsert fillOnInsert,
FillOnUpdate fillOnUpdate,
Setter setter) ColumnMetadata record class.booleanautoIncrement record component.column()column record component.final booleanfield()field record component.fillOnInsert record component.fillOnUpdate record component.final inthashCode()booleannested()nested record component.booleanprimaryKey record component.setter()setter record component.table()table record component.final StringtoString()type()type record component.ColumnMetadata record class.field - the value for the field record componentcolumn - the value for the column record componenttype - the value for the type record componentprimaryKey - the value for the primaryKey record componentautoIncrement - the value for the autoIncrement record componenttable - the value for the table record componentnested - the value for the nested record componentfillOnInsert - the value for the fillOnInsert record componentfillOnUpdate - the value for the fillOnUpdate record componentsetter - the value for the setter 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 componentfillOnInsert record component.fillOnInsert record componentfillOnUpdate record component.fillOnUpdate record component