Package net.truej.sql.compiler
Record Class JdbcMetadataFetcher.SqlParameterMetadata
java.lang.Object
java.lang.Record
net.truej.sql.compiler.JdbcMetadataFetcher.SqlParameterMetadata
- Enclosing class:
JdbcMetadataFetcher
public static record JdbcMetadataFetcher.SqlParameterMetadata(String javaClassName, String sqlTypeName, int sqlType, int scale, int precision, GLangParser.NullMode nullMode, net.truej.sql.compiler.TrueSqlPlugin.ParameterMode mode)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSqlParameterMetadata(String javaClassName, String sqlTypeName, int sqlType, int scale, int precision, GLangParser.NullMode nullMode, net.truej.sql.compiler.TrueSqlPlugin.ParameterMode mode) Creates an instance of aSqlParameterMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.net.truej.sql.compiler.TrueSqlPlugin.ParameterModemode()Returns the value of themoderecord 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
-
SqlParameterMetadata
public SqlParameterMetadata(String javaClassName, String sqlTypeName, int sqlType, int scale, int precision, GLangParser.NullMode nullMode, net.truej.sql.compiler.TrueSqlPlugin.ParameterMode mode) Creates an instance of aSqlParameterMetadatarecord 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 componentnullMode- the value for thenullModerecord componentmode- the value for themoderecord 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
-
nullMode
Returns the value of thenullModerecord component.- Returns:
- the value of the
nullModerecord component
-
mode
public net.truej.sql.compiler.TrueSqlPlugin.ParameterMode mode()Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-