Package net.truej.sql.compiler
Record Class JdbcMetadataFetcher.SqlColumnMetadata
java.lang.Object
java.lang.Record
net.truej.sql.compiler.JdbcMetadataFetcher.SqlColumnMetadata
- Enclosing class:
JdbcMetadataFetcher
-
Constructor Summary
ConstructorsConstructorDescriptionSqlColumnMetadata(String javaClassName, String sqlTypeName, int sqlType, int scale, int precision, @Nullable String columnName, String columnLabel, GLangParser.NullMode nullMode) Creates an instance of aSqlColumnMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolumnLabelrecord component.@Nullable StringReturns the value of thecolumnNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thejavaClassNamerecord component.nullMode()Returns the value of thenullModerecord component.intReturns the value of theprecisionrecord component.intscale()Returns the value of thescalerecord component.intsqlType()Returns the value of thesqlTyperecord component.Returns the value of thesqlTypeNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SqlColumnMetadata
public SqlColumnMetadata(String javaClassName, String sqlTypeName, int sqlType, int scale, int precision, @Nullable @Nullable String columnName, String columnLabel, GLangParser.NullMode nullMode) Creates an instance of aSqlColumnMetadatarecord class.- Parameters:
javaClassName- the value for thejavaClassNamerecord componentsqlTypeName- the value for thesqlTypeNamerecord componentsqlType- the value for thesqlTyperecord componentscale- the value for thescalerecord componentprecision- the value for theprecisionrecord componentcolumnName- the value for thecolumnNamerecord componentcolumnLabel- the value for thecolumnLabelrecord componentnullMode- the value for thenullModerecord 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 '=='. -
javaClassName
Returns the value of thejavaClassNamerecord component.- Returns:
- the value of the
javaClassNamerecord component
-
sqlTypeName
Returns the value of thesqlTypeNamerecord component.- Returns:
- the value of the
sqlTypeNamerecord component
-
sqlType
public int sqlType()Returns the value of thesqlTyperecord component.- Returns:
- the value of the
sqlTyperecord component
-
scale
public int scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
precision
public int precision()Returns the value of theprecisionrecord component.- Returns:
- the value of the
precisionrecord component
-
columnName
Returns the value of thecolumnNamerecord component.- Returns:
- the value of the
columnNamerecord component
-
columnLabel
Returns the value of thecolumnLabelrecord component.- Returns:
- the value of the
columnLabelrecord component
-
nullMode
Returns the value of thenullModerecord component.- Returns:
- the value of the
nullModerecord component
-