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 aSqlIndexMapping
record class. -
Method Summary
Modifier and TypeMethodDescriptionString[]
columns()
Returns the value of thecolumns
record component.boolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.toString()
Returns a string representation of this record class.boolean
unique()
Returns the value of theunique
record 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 thename
record component.- Returns:
- the value of the
name
record component
-
unique
public boolean unique()Returns the value of theunique
record component.- Returns:
- the value of the
unique
record component
-
columns
Returns the value of thecolumns
record component.- Returns:
- the value of the
columns
record component
-