Package net.truej.sql.compiler
Record Class GLangParser.ColumnMetadata
java.lang.Object
java.lang.Record
net.truej.sql.compiler.GLangParser.ColumnMetadata
- Enclosing class:
GLangParser
-
Constructor Summary
ConstructorsConstructorDescriptionColumnMetadata(GLangParser.NullMode nullMode, int sqlType, String sqlTypeName, String javaClassName, @Nullable String columnName, String columnLabel, int scale, int precision) Creates an instance of aColumnMetadatarecord 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
-
ColumnMetadata
public ColumnMetadata(GLangParser.NullMode nullMode, int sqlType, String sqlTypeName, String javaClassName, @Nullable @Nullable String columnName, String columnLabel, int scale, int precision) Creates an instance of aColumnMetadatarecord class.- Parameters:
nullMode- the value for thenullModerecord componentsqlType- the value for thesqlTyperecord componentsqlTypeName- the value for thesqlTypeNamerecord componentjavaClassName- the value for thejavaClassNamerecord componentcolumnName- the value for thecolumnNamerecord componentcolumnLabel- the value for thecolumnLabelrecord componentscale- the value for thescalerecord componentprecision- the value for theprecisionrecord 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 '=='. -
nullMode
Returns the value of thenullModerecord component.- Returns:
- the value of the
nullModerecord component
-
sqlType
public int sqlType()Returns the value of thesqlTyperecord component.- Returns:
- the value of the
sqlTyperecord component
-
sqlTypeName
Returns the value of thesqlTypeNamerecord component.- Returns:
- the value of the
sqlTypeNamerecord component
-
javaClassName
Returns the value of thejavaClassNamerecord component.- Returns:
- the value of the
javaClassNamerecord 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
-
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
-