primaryKey
private final boolean primaryKey
The field for the
primaryKey
record component.columnName
- The name of the column.columnType
- The data type of the column (e.g., "INTEGER", "VARCHAR").primaryKey
- true
if the column is a primary key, false
otherwise.nullable
- true
if the column can have NULL
values, false
otherwise.unique
- true
if the column has a unique constraint, false
otherwise.Metadata
This record encapsulates essential details about a column, including its name, data type, constraints (e.g., primary key, nullable, unique).
private final String
columnName
record component.private final String
columnType
record component.private final boolean
nullable
record component.private final boolean
primaryKey
record component.private final boolean
unique
record component.ColumnMetadata(String columnName,
String columnType,
boolean primaryKey,
boolean nullable,
boolean unique)
ColumnMetadata
record class.columnName
record component.columnType
record component.final boolean
final int
hashCode()
boolean
nullable()
nullable
record component.boolean
primaryKey
record component.final String
toString()
boolean
unique()
unique
record component.columnName
record component.columnType
record component.primaryKey
record component.nullable
record component.unique
record component.ColumnMetadata
record class.columnName
- the value for the columnName
record componentcolumnType
- the value for the columnType
record componentprimaryKey
- the value for the primaryKey
record componentnullable
- the value for the nullable
record componentunique
- the value for the unique
record componentObjects::equals(Object,Object)
; primitive components are compared with the compare
method from their corresponding wrapper classes.columnName
record component.columnName
record componentcolumnType
record component.columnType
record componentprimaryKey
record component.primaryKey
record component