Record Class ResolvedField

java.lang.Object
java.lang.Record
com.axelor.meta.query.backend.ResolvedField
Record Components:
column - the entity's JSON column holding the value, for a custom field added to an entity; null for a mapped property, and for a custom model's own fields, which its backend reads
selection - the selection the field's values are shown with, or null when it has none

public record ResolvedField(String path, Class<?> javaType, boolean relational, boolean collection, Class<? extends Model> targetModel, String targetName, String targetType, String column, String selection, Class<?> enumType) extends Record
  • Constructor Details

    • ResolvedField

      public ResolvedField(String path, Class<?> javaType, boolean relational, boolean collection, Class<? extends Model> targetModel, String targetName, String targetType)
    • ResolvedField

      public ResolvedField(String path, Class<?> javaType, boolean relational, boolean collection, Class<? extends Model> targetModel, String targetName, String targetType, String column, String selection, Class<?> enumType)
      Creates an instance of a ResolvedField record class.
      Parameters:
      path - the value for the path record component
      javaType - the value for the javaType record component
      relational - the value for the relational record component
      collection - the value for the collection record component
      targetModel - the value for the targetModel record component
      targetName - the value for the targetName record component
      targetType - the value for the targetType record component
      column - the value for the column record component
      selection - the value for the selection record component
      enumType - the value for the enumType record component
  • Method Details

    • custom

      public boolean custom()
      Whether this is a custom field stored in an entity's JSON column.
    • 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.
    • path

      public String path()
      Returns the value of the path record component.
      Returns:
      the value of the path record component
    • javaType

      public Class<?> javaType()
      Returns the value of the javaType record component.
      Returns:
      the value of the javaType record component
    • relational

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

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

      public Class<? extends Model> targetModel()
      Returns the value of the targetModel record component.
      Returns:
      the value of the targetModel record component
    • targetName

      public String targetName()
      Returns the value of the targetName record component.
      Returns:
      the value of the targetName record component
    • targetType

      public String targetType()
      Returns the value of the targetType record component.
      Returns:
      the value of the targetType record component
    • column

      public String column()
      Returns the value of the column record component.
      Returns:
      the value of the column record component
    • selection

      public String selection()
      Returns the value of the selection record component.
      Returns:
      the value of the selection record component
    • enumType

      public Class<?> enumType()
      Returns the value of the enumType record component.
      Returns:
      the value of the enumType record component