Package overit.geocall.edm.model
Record Class IndexCreationParameters
java.lang.Object
java.lang.Record
overit.geocall.edm.model.IndexCreationParameters
public record IndexCreationParameters(Long id, @NotNull String realName, String description, boolean unique, boolean addReverse, @NotEmpty List<BaseDataAttribute> fields, @NotNull IndexCreationStatus status)
extends Record
Record about the parameters necessary to create an
Index.-
Constructor Summary
ConstructorsConstructorDescriptionIndexCreationParameters(Long id, @NotNull String realName, String description, boolean unique, boolean addReverse, @NotEmpty List<BaseDataAttribute> fields, @NotNull IndexCreationStatus status) Creates and returns a newIndexCreationParametersinstance using the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theaddReverserecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.realName()Returns the value of therealNamerecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.booleanunique()Returns the value of theuniquerecord component.
-
Constructor Details
-
IndexCreationParameters
public IndexCreationParameters(Long id, @NotNull @NotNull String realName, String description, boolean unique, boolean addReverse, @NotEmpty @NotEmpty List<BaseDataAttribute> fields, @NotNull @NotNull IndexCreationStatus status) Creates and returns a newIndexCreationParametersinstance using the provided parameters.- Parameters:
id-Longabout theIDof the index.realName-Stringabout the real name of the index.description-Stringabout the description of the index.unique-booleanabout whether this index enforces uniqueness constraint.addReverse-booleanabout whether the index should also be added in reverse order.fields-List<BaseDataAttribute> (fields) that are part of this index.status-IndexCreationStatusabout the status of this index.
-
-
Method Details
-
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. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
realName
Returns the value of therealNamerecord component.- Returns:
- the value of the
realNamerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
unique
public boolean unique()Returns the value of theuniquerecord component.- Returns:
- the value of the
uniquerecord component
-
addReverse
public boolean addReverse()Returns the value of theaddReverserecord component.- Returns:
- the value of the
addReverserecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-