Record Class ColumnDefinitionRequest
java.lang.Object
java.lang.Record
org.hibernate.dialect.schema.spi.ColumnDefinitionRequest
@SPI(USE)
public record ColumnDefinitionRequest(String sqlType, @Nullable String renderedCollation, boolean nullable, @Nullable String defaultExpression, @Nullable String generatedExpression)
extends Record
Provides the rendered inputs for a non-identity column definition.
The collation value is the rendered collation name, while default and generated values are expressions without their surrounding clauses.
- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionColumnDefinitionRequest(String sqlType, String renderedCollation, boolean nullable, String defaultExpression, String generatedExpression) Creates an instance of aColumnDefinitionRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultExpressionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeneratedExpressionrecord component.final inthashCode()Returns a hash code value for this object.booleannullable()Returns the value of thenullablerecord component.Returns the value of therenderedCollationrecord component.sqlType()Returns the value of thesqlTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ColumnDefinitionRequest
public ColumnDefinitionRequest(String sqlType, @Nullable String renderedCollation, boolean nullable, @Nullable String defaultExpression, @Nullable String generatedExpression) Creates an instance of aColumnDefinitionRequestrecord class.- Parameters:
sqlType- the value for thesqlTyperecord componentrenderedCollation- the value for therenderedCollationrecord componentnullable- the value for thenullablerecord componentdefaultExpression- the value for thedefaultExpressionrecord componentgeneratedExpression- the value for thegeneratedExpressionrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
sqlType
Returns the value of thesqlTyperecord component.- Returns:
- the value of the
sqlTyperecord component
-
renderedCollation
-
nullable
public boolean nullable()Returns the value of thenullablerecord component.- Returns:
- the value of the
nullablerecord component
-
defaultExpression
-
generatedExpression
-