Module org.itsallcode.jdbc
Record Class ColumnMetaData
java.lang.Object
java.lang.Record
org.itsallcode.jdbc.resultset.generic.ColumnMetaData
- Record Components:
 columnIndex- column index (1 based)name- column namelabel- column labeltype- SQL type
public record ColumnMetaData(int columnIndex, String name, String label, ColumnType type)
extends Record
Represents the metadata of a single column.
- 
Constructor Summary
ConstructorsConstructorDescriptionColumnMetaData(int columnIndex, String name, String label, ColumnType type) Creates an instance of aColumnMetaDatarecord class. - 
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecolumnIndexrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component. 
- 
Constructor Details
- 
ColumnMetaData
Creates an instance of aColumnMetaDatarecord class.- Parameters:
 columnIndex- the value for thecolumnIndexrecord componentname- the value for thenamerecord componentlabel- the value for thelabelrecord componenttype- the value for thetyperecord 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
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 '=='. - 
columnIndex
Returns the value of thecolumnIndexrecord component.- Returns:
 - the value of the 
columnIndexrecord component 
 - 
name
Returns the value of thenamerecord component.- Returns:
 - the value of the 
namerecord component 
 - 
label
Returns the value of thelabelrecord component.- Returns:
 - the value of the 
labelrecord component 
 - 
type
Returns the value of thetyperecord component.- Returns:
 - the value of the 
typerecord component 
 
 -