java.lang.Object
org.odpi.openmetadata.adapters.connectors.unitycatalog.properties.DataFieldInfo
Direct Known Subclasses:
ColumnInfo, FunctionParameterInfo

public class DataFieldInfo extends Object
Common properties of a data field.
  • Constructor Details

    • DataFieldInfo

      public DataFieldInfo()
      Constructor
  • Method Details

    • getName

      public String getName()
      Return the unique name of the element within its name space.
      Returns:
      string
    • setName

      public void setName(String name)
      Set up the unique name of the element within its name space.
      Parameters:
      name - string name
    • getComment

      public String getComment()
      Return a comment describing the element within its name space.
      Returns:
      text
    • setComment

      public void setComment(String comment)
      Set up a comment describing the element within its name space.
      Parameters:
      comment - text
    • getType_text

      public String getType_text()
      Return the full data type specification as SQL/catalogString text.
      Returns:
      string
    • setType_text

      public void setType_text(String type_text)
      Set up the full data type specification as SQL/catalogString text.
      Parameters:
      type_text - string
    • getType_json

      public String getType_json()
      Return the full data type specification, JSON-serialized.
      Returns:
      string
    • setType_json

      public void setType_json(String type_json)
      Set up the Full data type specification, JSON-serialized.
      Parameters:
      type_json - string
    • getType_name

      public ColumnTypeName getType_name()
      Return the column type name enum.
      Returns:
      enum
    • setType_name

      public void setType_name(ColumnTypeName type_name)
      Set up the column type name enum.
      Parameters:
      type_name - enum
    • getType_precision

      public int getType_precision()
      Return the digits of precision; required for DecimalTypes.
      Returns:
      int
    • setType_precision

      public void setType_precision(int type_precision)
      Set up the digits of precision; required for DecimalTypes.
      Parameters:
      type_precision - int
    • getType_scale

      public int getType_scale()
      Return the digits to right of decimal; Required for DecimalTypes.
      Returns:
      int
    • setType_scale

      public void setType_scale(int type_scale)
      Set up the digits to right of decimal; Required for DecimalTypes.
      Parameters:
      type_scale - int
    • getType_interval_type

      public String getType_interval_type()
      Return the format of interval type.
      Returns:
      string
    • setType_interval_type

      public void setType_interval_type(String type_interval_type)
      Set up the format of interval type.
      Parameters:
      type_interval_type - string
    • getPosition

      public int getPosition()
      Return the ordinal position of data field (starting at position 0).
      Returns:
      int
    • setPosition

      public void setPosition(int position)
      Set up the ordinal position of column (starting at position 0).
      Parameters:
      position - int
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code based on properties.
      Overrides:
      hashCode in class Object
      Returns:
      int