Record Class SqlColumnMetadata
java.lang.Object
java.lang.Record
io.micronaut.data.model.schema.sql.metadata.SqlColumnMetadata
- Record Components:
name- The column nametype- The column type code (corresponds withTypes)typeName- The column type namecolumnSize- The column sizedecimalDigits- The number of decimal digits for numeric columnsnullable- The indicator telling whether column is nullable
-
Constructor Summary
ConstructorsConstructorDescriptionSqlColumnMetadata(String name, int type, String typeName, int columnSize, int decimalDigits, boolean nullable) Creates an instance of aSqlColumnMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecolumnSizerecord component.intReturns the value of thedecimalDigitsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.booleannullable()Returns the value of thenullablerecord component.final StringtoString()Returns a string representation of this record class.inttype()Returns the value of thetyperecord component.typeName()Returns the value of thetypeNamerecord component.
-
Constructor Details
-
SqlColumnMetadata
public SqlColumnMetadata(String name, int type, String typeName, int columnSize, int decimalDigits, boolean nullable) Creates an instance of aSqlColumnMetadatarecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componenttypeName- the value for thetypeNamerecord componentcolumnSize- the value for thecolumnSizerecord componentdecimalDigits- the value for thedecimalDigitsrecord componentnullable- the value for thenullablerecord 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
-
typeName
-
columnSize
public int columnSize()Returns the value of thecolumnSizerecord component.- Returns:
- the value of the
columnSizerecord component
-
decimalDigits
public int decimalDigits()Returns the value of thedecimalDigitsrecord component.- Returns:
- the value of the
decimalDigitsrecord component
-
nullable
-