Class FieldModel

java.lang.Object
lu.kbra.modelizer_next.domain.FieldModel
All Implemented Interfaces:
IdOwner, NamesOwner, StyleOwner, TagsOwner

public class FieldModel extends Object implements NamesOwner, IdOwner, StyleOwner, TagsOwner
Persistent model of a class field or table column, including names, data type, keys, cardinality, style, and visibility.
  • Field Details

    • SQL_TYPES

      public static final String[] SQL_TYPES
  • Constructor Details

    • FieldModel

      public FieldModel()
      Creates a field model instance.
  • Method Details

    • getBorderColor

      @Deprecated public Color getBorderColor()
      Deprecated.
      Returns the border color.
      Specified by:
      getBorderColor in interface StyleOwner
      Returns:
      the border color
    • getId

      public String getId()
      Returns the ID.
      Specified by:
      getId in interface IdOwner
      Returns:
      the ID
    • getLastPaletteName

      public String getLastPaletteName()
      Specified by:
      getLastPaletteName in interface StyleOwner
    • getNames

      public ElementNames getNames()
      Returns the names.
      Specified by:
      getNames in interface NamesOwner
      Returns:
      the names
    • getStyle

      public ElementStyle getStyle()
      Returns the style.
      Specified by:
      getStyle in interface StyleOwner
      Returns:
      the style
    • getTags

      public FieldTags getTags()
      Specified by:
      getTags in interface TagsOwner
    • getType

      public String getType()
      Returns the type.
      Returns:
      the type
    • isTechnicalOnly

      public boolean isTechnicalOnly()
      Checks whether technical only is enabled or applies.
      Returns:
      true if technical only is enabled or applies; otherwise false
    • setId

      public void setId(String id)
      Sets the ID.
      Specified by:
      setId in interface IdOwner
      Parameters:
      id - stable id of the model element
    • setLastPaletteName

      public void setLastPaletteName(String lastPaletteName)
      Specified by:
      setLastPaletteName in interface StyleOwner
    • setNames

      public void setNames(ElementNames names)
      Sets the names.
      Specified by:
      setNames in interface NamesOwner
      Parameters:
      names - name values to use
    • setNotNullLegacy

      @Deprecated public void setNotNullLegacy(boolean notNull)
      Deprecated.
    • setPrimaryKeyLegacy

      @Deprecated public void setPrimaryKeyLegacy(boolean primaryKey)
      Deprecated.
    • setStyle

      public void setStyle(ElementStyle style)
      Sets the style.
      Specified by:
      setStyle in interface StyleOwner
      Parameters:
      style - style value used by the operation
    • setTags

      public void setTags(FieldTags fieldTagsData)
      Specified by:
      setTags in interface TagsOwner
    • setTechnicalOnly

      public void setTechnicalOnly(boolean notConceptual)
      Sets the technical only.
      Parameters:
      notConceptual - whether not conceptual is enabled
    • setType

      public void setType(String type)
      Sets the type.
      Parameters:
      type - type value that selects the operation mode
    • setUniqueLegacy

      @Deprecated public void setUniqueLegacy(boolean unique)
      Deprecated.
    • toString

      public String toString()
      Overrides:
      toString in class Object