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 aSqlColumnMetadata
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of thecolumnSize
record component.int
Returns the value of thedecimalDigits
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.boolean
nullable()
Returns the value of thenullable
record component.final String
toString()
Returns a string representation of this record class.int
type()
Returns the value of thetype
record component.typeName()
Returns the value of thetypeName
record component.
-
Constructor Details
-
SqlColumnMetadata
public SqlColumnMetadata(String name, int type, String typeName, int columnSize, int decimalDigits, boolean nullable) Creates an instance of aSqlColumnMetadata
record class.- Parameters:
name
- the value for thename
record componenttype
- the value for thetype
record componenttypeName
- the value for thetypeName
record componentcolumnSize
- the value for thecolumnSize
record componentdecimalDigits
- the value for thedecimalDigits
record componentnullable
- the value for thenullable
record 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 thename
record component.- Returns:
- the value of the
name
record component
-
type
public int type()Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
typeName
Returns the value of thetypeName
record component.- Returns:
- the value of the
typeName
record component
-
columnSize
public int columnSize()Returns the value of thecolumnSize
record component.- Returns:
- the value of the
columnSize
record component
-
decimalDigits
public int decimalDigits()Returns the value of thedecimalDigits
record component.- Returns:
- the value of the
decimalDigits
record component
-
nullable
public boolean nullable()Returns the value of thenullable
record component.- Returns:
- the value of the
nullable
record component
-