Package io.jmix.dynmodel
Record Class DynamicModelMigration.UpdateAttributeSearchable
java.lang.Object
java.lang.Record
io.jmix.dynmodel.DynamicModelMigration.UpdateAttributeSearchable
- Record Components:
entityName- entity nameattributeDefinition- attribute definition with the new flag
- All Implemented Interfaces:
DynamicModelMigration
- Enclosing interface:
DynamicModelMigration
public static record DynamicModelMigration.UpdateAttributeSearchable(String entityName, DynamicAttributeDefinition attributeDefinition)
extends Record
implements DynamicModelMigration
Updates the searchable flag of an existing dynamic attribute. Metadata-only: no schema change, but a
new metadata generation is published so the Search add-on rebuilds its index configurations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.dynmodel.DynamicModelMigration
DynamicModelMigration.CreateAttribute, DynamicModelMigration.CreateEntity, DynamicModelMigration.DropAttribute, DynamicModelMigration.DropEntity, DynamicModelMigration.DropEnumeration, DynamicModelMigration.RemoveMessage, DynamicModelMigration.ReorderAttributes, DynamicModelMigration.UpdateAttributeColumn, DynamicModelMigration.UpdateAttributeInstanceName, DynamicModelMigration.UpdateAttributeLookup, DynamicModelMigration.UpdateAttributeSearchable, DynamicModelMigration.UpdateAttributeValidation, DynamicModelMigration.UpdateCalculatedAttribute, DynamicModelMigration.UpdateEntityValidation, DynamicModelMigration.UpdateMessage, DynamicModelMigration.UpdateUniqueConstraints, DynamicModelMigration.UpsertEnumeration -
Constructor Summary
ConstructorsConstructorDescriptionUpdateAttributeSearchable(String entityName, DynamicAttributeDefinition attributeDefinition) Creates an instance of aUpdateAttributeSearchablerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributeDefinitionrecord component.Returns the value of theentityNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.
-
Constructor Details
-
UpdateAttributeSearchable
Creates an instance of aUpdateAttributeSearchablerecord class.- Parameters:
entityName- the value for theentityNamerecord componentattributeDefinition- the value for theattributeDefinitionrecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
entityName
Returns the value of theentityNamerecord component.- Returns:
- the value of the
entityNamerecord component
-
attributeDefinition
Returns the value of theattributeDefinitionrecord component.- Returns:
- the value of the
attributeDefinitionrecord component
-