Record Class IndexDdlRequest
java.lang.Object
java.lang.Record
org.hibernate.dialect.schema.spi.IndexDdlRequest
Describes the rendered inputs needed for index DDL policy.
- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionIndexDdlRequest(boolean unique, List<IndexColumn> columns) Creates an instance of aIndexDdlRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolumns()Returns the value of thecolumnsrecord 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.booleanunique()Returns the value of theuniquerecord component.
-
Constructor Details
-
IndexDdlRequest
Creates an instance of aIndexDdlRequestrecord class.- Parameters:
unique- the value for theuniquerecord componentcolumns- the value for thecolumnsrecord 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. -
unique
public boolean unique()Returns the value of theuniquerecord component.- Returns:
- the value of the
uniquerecord component
-
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-