Record Class ForeignKeyDropRequest
java.lang.Object
java.lang.Record
org.hibernate.dialect.constraint.spi.ForeignKeyDropRequest
@SPI(USE)
public record ForeignKeyDropRequest(String constraintName, ExistenceCheckPlacement ifExistsPlacement)
extends Record
Describes one foreign-key constraint to be dropped from an existing table.
- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionForeignKeyDropRequest(String constraintName, ExistenceCheckPlacement ifExistsPlacement) Creates an instance of aForeignKeyDropRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconstraintNamerecord 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 theifExistsPlacementrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ForeignKeyDropRequest
Creates an instance of aForeignKeyDropRequestrecord class.- Parameters:
constraintName- the value for theconstraintNamerecord componentifExistsPlacement- the value for theifExistsPlacementrecord 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). -
constraintName
Returns the value of theconstraintNamerecord component.- Returns:
- the value of the
constraintNamerecord component
-
ifExistsPlacement
Returns the value of theifExistsPlacementrecord component.- Returns:
- the value of the
ifExistsPlacementrecord component
-