primaryKey
public boolean primaryKey()
Returns the value of the
primaryKey record component.- Specified by:
primaryKeyin interfaceColumn- Returns:
- the value of the
primaryKeyrecord component
core - the underlying column.index - the 1-based index of the column.name - the name of the column.type - the Java type of the column.primaryKey - whether the column is a primary key.generation - the generation strategy.sequence - the sequence name.foreignKey - whether the column is a foreign key.nullable - whether the column is nullable.insertable - whether the column is insertable.updatable - whether the column is updatable.version - whether the column is a version column.ref - whether the column is a lazily fetched record.metamodel - the metamodel for the column.ColumnColumnImpl(st.orm.core.template.Column column) ColumnImpl(st.orm.core.template.Column core,
int index,
String name,
Class<?> type,
boolean primaryKey,
GenerationStrategy generation,
String sequence,
boolean foreignKey,
boolean nullable,
boolean insertable,
boolean updatable,
boolean version,
boolean ref,
Metamodel<Data,?> metamodel) ColumnImpl record class.st.orm.core.template.Columncore()core record component.final booleanbooleanforeignKey record component.generation record component.final inthashCode()intindex()index record component.booleaninsertable record component.metamodel record component.name()name record component.booleannullable()nullable record component.booleanprimaryKey record component.booleanref()ref record component.sequence()sequence record component.final StringtoString()Class<?> type()type record component.booleanupdatable record component.booleanversion()version record component.ColumnImpl record class.core - the value for the core record componentindex - the value for the index record componentname - the value for the name record componenttype - the value for the type record componentprimaryKey - the value for the primaryKey record componentgeneration - the value for the generation record componentsequence - the value for the sequence record componentforeignKey - the value for the foreignKey record componentnullable - the value for the nullable record componentinsertable - the value for the insertable record componentupdatable - the value for the updatable record componentversion - the value for the version record componentref - the value for the ref record componentmetamodel - the value for the metamodel record componentObjects::equals(Object,Object); primitive components are compared with '=='.core record component.core record componentindex record component.name record component.type record component.primaryKey record component.primaryKey in interface ColumnprimaryKey record componentgeneration record component.generation in interface Columngeneration record componentsequence record component.foreignKey record component.foreignKey in interface ColumnforeignKey record componentnullable record component.insertable record component.insertable in interface Columninsertable record componentupdatable record component.version record component.ref record component.metamodel record component.