Record Class SchemaDropSupport
java.lang.Object
java.lang.Record
org.hibernate.dialect.schema.spi.SchemaDropSupport
@SPI({USE,SUPPLY})
public record SchemaDropSupport(List<String> beforeDropCommands, ConstraintDropMode constraintDropMode, String cascadeConstraintsClause)
extends Record
Defines table-drop composition and ordered pre-drop commands.
The cascade clause is appended verbatim, including provider-owned leading whitespace.
- Since:
- 8.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSchemaDropSupport(List<String> beforeDropCommands, ConstraintDropMode constraintDropMode, String cascadeConstraintsClause) Creates an instance of aSchemaDropSupportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebeforeDropCommandsrecord component.Returns the value of thecascadeConstraintsClauserecord component.Returns the value of theconstraintDropModerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
STANDARD
-
-
Constructor Details
-
SchemaDropSupport
public SchemaDropSupport(List<String> beforeDropCommands, ConstraintDropMode constraintDropMode, String cascadeConstraintsClause) Creates an instance of aSchemaDropSupportrecord class.- Parameters:
beforeDropCommands- the value for thebeforeDropCommandsrecord componentconstraintDropMode- the value for theconstraintDropModerecord componentcascadeConstraintsClause- the value for thecascadeConstraintsClauserecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
beforeDropCommands
-
constraintDropMode
Returns the value of theconstraintDropModerecord component.- Returns:
- the value of the
constraintDropModerecord component
-
cascadeConstraintsClause
Returns the value of thecascadeConstraintsClauserecord component.- Returns:
- the value of the
cascadeConstraintsClauserecord component
-