Record Class DynamicAttributeDefinition

java.lang.Object
java.lang.Record
io.jmix.dynmodel.meta.DynamicAttributeDefinition
Record Components:
name - attribute name
javaClass - datatype Java class
entityName - referenced entity name
enumeration - enumeration name or fully qualified class name
length - string or binary length
lob - whether the attribute has LOB metadata
required - whether the attribute is required
unique - whether the attribute is unique
instanceName - whether the attribute participates in instance-name metadata
collection - whether the attribute is a collection composition
calculated - calculated attribute definition
validation - validation definition
resourceRoles - attribute resource-role grants
messages - localized attribute captions

public record DynamicAttributeDefinition(String name, @Nullable Class<?> javaClass, @Nullable String entityName, @Nullable String enumeration, @Nullable Integer length, boolean lob, boolean required, boolean unique, boolean instanceName, boolean collection, @Nullable DynamicCalculatedAttributeDefinition calculated, @Nullable DynamicValidationDefinition<DynamicAttributeConstraintDefinition> validation, @Nullable DynamicAttributeAccessDefinition resourceRoles, @Nullable Map<String,String> messages) extends Record
Defines a runtime dynamic attribute.
  • Constructor Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • javaClass

      public @Nullable Class<?> javaClass()
      Returns the value of the javaClass record component.
      Returns:
      the value of the javaClass record component
    • entityName

      public @Nullable String entityName()
      Returns the value of the entityName record component.
      Returns:
      the value of the entityName record component
    • enumeration

      public @Nullable String enumeration()
      Returns the value of the enumeration record component.
      Returns:
      the value of the enumeration record component
    • length

      public @Nullable Integer length()
      Returns the value of the length record component.
      Returns:
      the value of the length record component
    • lob

      public boolean lob()
      Returns the value of the lob record component.
      Returns:
      the value of the lob record component
    • required

      public boolean required()
      Returns the value of the required record component.
      Returns:
      the value of the required record component
    • unique

      public boolean unique()
      Returns the value of the unique record component.
      Returns:
      the value of the unique record component
    • instanceName

      public boolean instanceName()
      Returns the value of the instanceName record component.
      Returns:
      the value of the instanceName record component
    • collection

      public boolean collection()
      Returns the value of the collection record component.
      Returns:
      the value of the collection record component
    • calculated

      public @Nullable DynamicCalculatedAttributeDefinition calculated()
      Returns the value of the calculated record component.
      Returns:
      the value of the calculated record component
    • validation

      Returns the value of the validation record component.
      Returns:
      the value of the validation record component
    • resourceRoles

      public @Nullable DynamicAttributeAccessDefinition resourceRoles()
      Returns the value of the resourceRoles record component.
      Returns:
      the value of the resourceRoles record component
    • messages

      public @Nullable Map<String,String> messages()
      Returns the value of the messages record component.
      Returns:
      the value of the messages record component