Record Class IfExistsSupport
java.lang.Object
java.lang.Record
org.hibernate.dialect.schema.spi.IfExistsSupport
@SPI({USE,SUPPLY})
public record IfExistsSupport(ExistenceCheckPlacement alterTablePlacement, ExistenceCheckPlacement dropTablePlacement, ExistenceCheckPlacement dropConstraintPlacement, ExistenceCheckPlacement dropIndexPlacement)
extends Record
Defines existence-check placement for schema DDL targets.
Supply one immutable profile for the Dialect lifetime. Each placement is interpreted relative to the corresponding target name.
- Since:
- 8.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIfExistsSupport(ExistenceCheckPlacement alterTablePlacement, ExistenceCheckPlacement dropTablePlacement, ExistenceCheckPlacement dropConstraintPlacement, ExistenceCheckPlacement dropIndexPlacement) Creates an instance of aIfExistsSupportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealterTablePlacementrecord component.Returns the value of thedropConstraintPlacementrecord component.Returns the value of thedropIndexPlacementrecord component.Returns the value of thedropTablePlacementrecord 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
-
NONE
-
-
Constructor Details
-
IfExistsSupport
public IfExistsSupport(ExistenceCheckPlacement alterTablePlacement, ExistenceCheckPlacement dropTablePlacement, ExistenceCheckPlacement dropConstraintPlacement, ExistenceCheckPlacement dropIndexPlacement) Creates an instance of aIfExistsSupportrecord class.- Parameters:
alterTablePlacement- the value for thealterTablePlacementrecord componentdropTablePlacement- the value for thedropTablePlacementrecord componentdropConstraintPlacement- the value for thedropConstraintPlacementrecord componentdropIndexPlacement- the value for thedropIndexPlacementrecord 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). -
alterTablePlacement
Returns the value of thealterTablePlacementrecord component.- Returns:
- the value of the
alterTablePlacementrecord component
-
dropTablePlacement
Returns the value of thedropTablePlacementrecord component.- Returns:
- the value of the
dropTablePlacementrecord component
-
dropConstraintPlacement
Returns the value of thedropConstraintPlacementrecord component.- Returns:
- the value of the
dropConstraintPlacementrecord component
-
dropIndexPlacement
Returns the value of thedropIndexPlacementrecord component.- Returns:
- the value of the
dropIndexPlacementrecord component
-