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
@Internal
public record SqlColumnMetadata(String name, int type, String typeName, int columnSize, int decimalDigits, boolean nullable)
extends Record
SQL column metadata extracted from the underlying table column in the database.
-
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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
public int type()Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
typeName
Returns the value of thetypeNamerecord component.- Returns:
- the value of the
typeNamerecord component
-
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
public boolean nullable()Returns the value of thenullablerecord component.- Returns:
- the value of the
nullablerecord component
-