Package org.ethelred.kiwiproc.meta
Record Class ColumnMetaData
java.lang.Object
java.lang.Record
org.ethelred.kiwiproc.meta.ColumnMetaData
public record ColumnMetaData(int index, SqlName name, boolean nullable, JDBCType sqlType, @Nullable ArrayComponent componentType)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionColumnMetaData(int index, String name, boolean nullable, JDBCType sqlType, @Nullable ArrayComponent componentType) ColumnMetaData(int index, SqlName name, boolean nullable, JDBCType sqlType, @Nullable ArrayComponent componentType) Creates an instance of aColumnMetaDatarecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable ArrayComponentReturns the value of thecomponentTyperecord component.final booleanIndicates whether some other object is "equal to" this one.static ColumnMetaDatafrom(Connection connection, int index, ParameterMetaData parameterMetaData) static ColumnMetaDatafrom(Connection connection, int index, ResultSetMetaData resultSetMetaData) final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.name()Returns the value of thenamerecord component.booleannullable()Returns the value of thenullablerecord component.sqlType()Returns the value of thesqlTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ColumnMetaData
public ColumnMetaData(int index, String name, boolean nullable, JDBCType sqlType, @Nullable ArrayComponent componentType) -
ColumnMetaData
public ColumnMetaData(int index, SqlName name, boolean nullable, JDBCType sqlType, @Nullable ArrayComponent componentType) Creates an instance of aColumnMetaDatarecord class.- Parameters:
index- the value for theindexrecord componentname- the value for thenamerecord componentnullable- the value for thenullablerecord componentsqlType- the value for thesqlTyperecord componentcomponentType- the value for thecomponentTyperecord component
-
-
Method Details
-
from
public static ColumnMetaData from(Connection connection, int index, ResultSetMetaData resultSetMetaData) throws SQLException - Throws:
SQLException
-
from
public static ColumnMetaData from(Connection connection, int index, ParameterMetaData parameterMetaData) throws SQLException - Throws:
SQLException
-
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 '=='. -
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
nullable
public boolean nullable()Returns the value of thenullablerecord component.- Returns:
- the value of the
nullablerecord component
-
sqlType
Returns the value of thesqlTyperecord component.- Returns:
- the value of the
sqlTyperecord component
-
componentType
Returns the value of thecomponentTyperecord component.- Returns:
- the value of the
componentTyperecord component
-