Record Class JsonReferenceFieldDTO

java.lang.Object
java.lang.Record
com.axelor.db.json.JsonReferenceFieldDTO
All Implemented Interfaces:
Serializable

public record JsonReferenceFieldDTO(String name, String title, String type, String model, String modelField, Integer sequence, Integer columnSequence, Boolean hidden, Boolean required, Boolean readonly, Boolean nameField, Boolean visibleInGrid, String showIf, String hideIf, String requiredIf, String readonlyIf, Integer minSize, Integer maxSize, Integer precision, Integer scale, String pattern, String targetModel, String targetJsonModel, String selection, String enumType, String defaultValue, String domain, String widget, String widgetAttrs, String help, String formView, String gridView, String onChange, String onClick, String valueExpr, String contextField, String contextFieldTarget, String contextFieldTargetName, String contextFieldValue, String contextFieldTitle, String includeIf, Set<Long> roleIds, Boolean tracked, String trackEvent, String trackCondition) extends Record implements Serializable
See Also:
  • Constructor Details

    • JsonReferenceFieldDTO

      public JsonReferenceFieldDTO(String name, String title, String type, String model, String modelField, Integer sequence, Integer columnSequence, Boolean hidden, Boolean required, Boolean readonly, Boolean nameField, Boolean visibleInGrid, String showIf, String hideIf, String requiredIf, String readonlyIf, Integer minSize, Integer maxSize, Integer precision, Integer scale, String pattern, String targetModel, String targetJsonModel, String selection, String enumType, String defaultValue, String domain, String widget, String widgetAttrs, String help, String formView, String gridView, String onChange, String onClick, String valueExpr, String contextField, String contextFieldTarget, String contextFieldTargetName, String contextFieldValue, String contextFieldTitle, String includeIf, Set<Long> roleIds, Boolean tracked, String trackEvent, String trackCondition)
      Creates an instance of a JsonReferenceFieldDTO record class.
      Parameters:
      name - the value for the name record component
      title - the value for the title record component
      type - the value for the type record component
      model - the value for the model record component
      modelField - the value for the modelField record component
      sequence - the value for the sequence record component
      columnSequence - the value for the columnSequence record component
      hidden - the value for the hidden record component
      required - the value for the required record component
      readonly - the value for the readonly record component
      nameField - the value for the nameField record component
      visibleInGrid - the value for the visibleInGrid record component
      showIf - the value for the showIf record component
      hideIf - the value for the hideIf record component
      requiredIf - the value for the requiredIf record component
      readonlyIf - the value for the readonlyIf record component
      minSize - the value for the minSize record component
      maxSize - the value for the maxSize record component
      precision - the value for the precision record component
      scale - the value for the scale record component
      pattern - the value for the pattern record component
      targetModel - the value for the targetModel record component
      targetJsonModel - the value for the targetJsonModel record component
      selection - the value for the selection record component
      enumType - the value for the enumType record component
      defaultValue - the value for the defaultValue record component
      domain - the value for the domain record component
      widget - the value for the widget record component
      widgetAttrs - the value for the widgetAttrs record component
      help - the value for the help record component
      formView - the value for the formView record component
      gridView - the value for the gridView record component
      onChange - the value for the onChange record component
      onClick - the value for the onClick record component
      valueExpr - the value for the valueExpr record component
      contextField - the value for the contextField record component
      contextFieldTarget - the value for the contextFieldTarget record component
      contextFieldTargetName - the value for the contextFieldTargetName record component
      contextFieldValue - the value for the contextFieldValue record component
      contextFieldTitle - the value for the contextFieldTitle record component
      includeIf - the value for the includeIf record component
      roleIds - the value for the roleIds record component
      tracked - the value for the tracked record component
      trackEvent - the value for the trackEvent record component
      trackCondition - the value for the trackCondition record component
  • Method Details

    • from

      public static JsonReferenceFieldDTO from(MetaJsonField field)
    • isReference

      public boolean isReference()
      Whether this custom field is a relational reference to another record.
    • isJsonModelTarget

      public boolean isJsonModelTarget()
    • resolveTargetModel

      public String resolveTargetModel()
    • toMap

      public Map<String,Object> toMap()
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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
    • title

      public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • model

      public String model()
      Returns the value of the model record component.
      Returns:
      the value of the model record component
    • modelField

      public String modelField()
      Returns the value of the modelField record component.
      Returns:
      the value of the modelField record component
    • sequence

      public Integer sequence()
      Returns the value of the sequence record component.
      Returns:
      the value of the sequence record component
    • columnSequence

      public Integer columnSequence()
      Returns the value of the columnSequence record component.
      Returns:
      the value of the columnSequence record component
    • hidden

      public Boolean hidden()
      Returns the value of the hidden record component.
      Returns:
      the value of the hidden record component
    • required

      public Boolean required()
      Returns the value of the required record component.
      Returns:
      the value of the required record component
    • readonly

      public Boolean readonly()
      Returns the value of the readonly record component.
      Returns:
      the value of the readonly record component
    • nameField

      public Boolean nameField()
      Returns the value of the nameField record component.
      Returns:
      the value of the nameField record component
    • visibleInGrid

      public Boolean visibleInGrid()
      Returns the value of the visibleInGrid record component.
      Returns:
      the value of the visibleInGrid record component
    • showIf

      public String showIf()
      Returns the value of the showIf record component.
      Returns:
      the value of the showIf record component
    • hideIf

      public String hideIf()
      Returns the value of the hideIf record component.
      Returns:
      the value of the hideIf record component
    • requiredIf

      public String requiredIf()
      Returns the value of the requiredIf record component.
      Returns:
      the value of the requiredIf record component
    • readonlyIf

      public String readonlyIf()
      Returns the value of the readonlyIf record component.
      Returns:
      the value of the readonlyIf record component
    • minSize

      public Integer minSize()
      Returns the value of the minSize record component.
      Returns:
      the value of the minSize record component
    • maxSize

      public Integer maxSize()
      Returns the value of the maxSize record component.
      Returns:
      the value of the maxSize record component
    • precision

      public Integer precision()
      Returns the value of the precision record component.
      Returns:
      the value of the precision record component
    • scale

      public Integer scale()
      Returns the value of the scale record component.
      Returns:
      the value of the scale record component
    • pattern

      public String pattern()
      Returns the value of the pattern record component.
      Returns:
      the value of the pattern record component
    • targetModel

      public String targetModel()
      Returns the value of the targetModel record component.
      Returns:
      the value of the targetModel record component
    • targetJsonModel

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

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

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

      public String defaultValue()
      Returns the value of the defaultValue record component.
      Returns:
      the value of the defaultValue record component
    • domain

      public String domain()
      Returns the value of the domain record component.
      Returns:
      the value of the domain record component
    • widget

      public String widget()
      Returns the value of the widget record component.
      Returns:
      the value of the widget record component
    • widgetAttrs

      public String widgetAttrs()
      Returns the value of the widgetAttrs record component.
      Returns:
      the value of the widgetAttrs record component
    • help

      public String help()
      Returns the value of the help record component.
      Returns:
      the value of the help record component
    • formView

      public String formView()
      Returns the value of the formView record component.
      Returns:
      the value of the formView record component
    • gridView

      public String gridView()
      Returns the value of the gridView record component.
      Returns:
      the value of the gridView record component
    • onChange

      public String onChange()
      Returns the value of the onChange record component.
      Returns:
      the value of the onChange record component
    • onClick

      public String onClick()
      Returns the value of the onClick record component.
      Returns:
      the value of the onClick record component
    • valueExpr

      public String valueExpr()
      Returns the value of the valueExpr record component.
      Returns:
      the value of the valueExpr record component
    • contextField

      public String contextField()
      Returns the value of the contextField record component.
      Returns:
      the value of the contextField record component
    • contextFieldTarget

      public String contextFieldTarget()
      Returns the value of the contextFieldTarget record component.
      Returns:
      the value of the contextFieldTarget record component
    • contextFieldTargetName

      public String contextFieldTargetName()
      Returns the value of the contextFieldTargetName record component.
      Returns:
      the value of the contextFieldTargetName record component
    • contextFieldValue

      public String contextFieldValue()
      Returns the value of the contextFieldValue record component.
      Returns:
      the value of the contextFieldValue record component
    • contextFieldTitle

      public String contextFieldTitle()
      Returns the value of the contextFieldTitle record component.
      Returns:
      the value of the contextFieldTitle record component
    • includeIf

      public String includeIf()
      Returns the value of the includeIf record component.
      Returns:
      the value of the includeIf record component
    • roleIds

      public Set<Long> roleIds()
      Returns the value of the roleIds record component.
      Returns:
      the value of the roleIds record component
    • tracked

      public Boolean tracked()
      Returns the value of the tracked record component.
      Returns:
      the value of the tracked record component
    • trackEvent

      public String trackEvent()
      Returns the value of the trackEvent record component.
      Returns:
      the value of the trackEvent record component
    • trackCondition

      public String trackCondition()
      Returns the value of the trackCondition record component.
      Returns:
      the value of the trackCondition record component