Record Class Column
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.datasource.model.Column
- Record Components:
name- The column nametype- The generic column typesize- The column sizenullable- Whether the column is nullablebinary- Whether the column is binaryisPrimaryKey- Whether the column is a primary keyisForeignKey- Whether the column is a foreign key
public record Column(String name, ColumnType type, int size, String nullable, boolean binary, boolean isPrimaryKey, boolean isForeignKey)
extends Record
Database column metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionColumn(String name, ColumnType type, int size, String nullable, boolean binary, boolean isPrimaryKey, boolean isForeignKey) Creates an instance of aColumnrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbinary()Returns the value of thebinaryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisForeignKeyrecord component.booleanReturns the value of theisPrimaryKeyrecord component.name()Returns the value of thenamerecord component.nullable()Returns the value of thenullablerecord component.intsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Column
public Column(String name, ColumnType type, int size, String nullable, boolean binary, boolean isPrimaryKey, boolean isForeignKey) Creates an instance of aColumnrecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componentsize- the value for thesizerecord componentnullable- the value for thenullablerecord componentbinary- the value for thebinaryrecord componentisPrimaryKey- the value for theisPrimaryKeyrecord componentisForeignKey- the value for theisForeignKeyrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
-
type
-
size
-
nullable
-
binary
-
isPrimaryKey
public boolean isPrimaryKey()Returns the value of theisPrimaryKeyrecord component.- Returns:
- the value of the
isPrimaryKeyrecord component
-
isForeignKey
public boolean isForeignKey()Returns the value of theisForeignKeyrecord component.- Returns:
- the value of the
isForeignKeyrecord component
-