Package org.ethelred.kiwiproc.processor
Record Class SqlTypeMapping
java.lang.Object
java.lang.Record
org.ethelred.kiwiproc.processor.SqlTypeMapping
- All Implemented Interfaces:
org.ethelred.kiwiproc.processor.SqlTypeMappingBuilder.With
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ethelred.kiwiproc.processor.SqlTypeMappingBuilder.With
org.ethelred.kiwiproc.processor.SqlTypeMappingBuilder.With.Consumer, org.ethelred.kiwiproc.processor.SqlTypeMappingBuilder.With.Function<R extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionSqlTypeMapping(JDBCType jdbcType, Class<?> baseType, String accessorSuffix) SqlTypeMapping(JDBCType jdbcType, Class<?> baseType, String accessorSuffix, boolean specialCase, boolean isNullable, @Nullable SqlTypeMapping componentType, @Nullable String componentDbType) Creates an instance of aSqlTypeMappingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessorSuffixrecord component.Class<?>baseType()Returns the value of thebaseTyperecord component.@Nullable StringReturns the value of thecomponentDbTyperecord component.@Nullable SqlTypeMappingReturns the value of thecomponentTyperecord component.final booleanIndicates whether some other object is "equal to" this one.static SqlTypeMappingget(org.ethelred.kiwiproc.meta.ColumnMetaData columnMetaData) final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisNullablerecord component.jdbcType()Returns the value of thejdbcTyperecord component.kiwiType()booleanReturns the value of thespecialCaserecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ethelred.kiwiproc.processor.SqlTypeMappingBuilder.With
accept, map, with, with, withAccessorSuffix, withBaseType, withComponentDbType, withComponentType, withIsNullable, withJdbcType, withSpecialCase
-
Constructor Details
-
SqlTypeMapping
-
SqlTypeMapping
public SqlTypeMapping(JDBCType jdbcType, Class<?> baseType, String accessorSuffix, boolean specialCase, boolean isNullable, @Nullable SqlTypeMapping componentType, @Nullable String componentDbType) Creates an instance of aSqlTypeMappingrecord class.- Parameters:
jdbcType- the value for thejdbcTyperecord componentbaseType- the value for thebaseTyperecord componentaccessorSuffix- the value for theaccessorSuffixrecord componentspecialCase- the value for thespecialCaserecord componentisNullable- the value for theisNullablerecord componentcomponentType- the value for thecomponentTyperecord componentcomponentDbType- the value for thecomponentDbTyperecord component
-
-
Method Details
-
get
-
kiwiType
-
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 '=='. -
jdbcType
Returns the value of thejdbcTyperecord component.- Specified by:
jdbcTypein interfaceorg.ethelred.kiwiproc.processor.SqlTypeMappingBuilder.With- Returns:
- the value of the
jdbcTyperecord component
-
baseType
Returns the value of thebaseTyperecord component.- Specified by:
baseTypein interfaceorg.ethelred.kiwiproc.processor.SqlTypeMappingBuilder.With- Returns:
- the value of the
baseTyperecord component
-
accessorSuffix
Returns the value of theaccessorSuffixrecord component.- Specified by:
accessorSuffixin interfaceorg.ethelred.kiwiproc.processor.SqlTypeMappingBuilder.With- Returns:
- the value of the
accessorSuffixrecord component
-
specialCase
public boolean specialCase()Returns the value of thespecialCaserecord component.- Specified by:
specialCasein interfaceorg.ethelred.kiwiproc.processor.SqlTypeMappingBuilder.With- Returns:
- the value of the
specialCaserecord component
-
isNullable
public boolean isNullable()Returns the value of theisNullablerecord component.- Specified by:
isNullablein interfaceorg.ethelred.kiwiproc.processor.SqlTypeMappingBuilder.With- Returns:
- the value of the
isNullablerecord component
-
componentType
Returns the value of thecomponentTyperecord component.- Specified by:
componentTypein interfaceorg.ethelred.kiwiproc.processor.SqlTypeMappingBuilder.With- Returns:
- the value of the
componentTyperecord component
-
componentDbType
Returns the value of thecomponentDbTyperecord component.- Specified by:
componentDbTypein interfaceorg.ethelred.kiwiproc.processor.SqlTypeMappingBuilder.With- Returns:
- the value of the
componentDbTyperecord component
-