Record Class SqlIndexMapping
java.lang.Object
java.lang.Record
io.micronaut.data.model.schema.sql.SqlIndexMapping
- Record Components:
name- The index nameunique- Whether the index is uniquecolumns- The column names in the index
@Internal
public record SqlIndexMapping(String name, boolean unique, String[] columns)
extends Record
The SQL table index mapping.
-
Constructor Summary
ConstructorsConstructorDescriptionSqlIndexMapping(String name, boolean unique, String[] columns) Creates an instance of aSqlIndexMappingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionString[]columns()Returns the value of thecolumnsrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.toString()Returns a string representation of this record class.booleanunique()Returns the value of theuniquerecord component.
-
Constructor Details
-
Method Details
-
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 '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
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
-