Class NumericFormat

Direct Known Subclasses:
NumericFormatCompressed, NumericFormatDisplay

public abstract class NumericFormat extends AbstractNumericFormat
  • Field Details

    • P_Size

      protected int P_Size
    • P_onLeft

      protected boolean P_onLeft
    • P_onRight

      protected boolean P_onRight
  • Method Details

    • getNumberOfDigits

      public int getNumberOfDigits()
      Returns the number of integer digits of used for Integer and Decimal parts of a number. For example, given a definition of S9(5)v9(3); the NumberOfDigists is 11.
      Specified by:
      getNumberOfDigits in class Format
      Returns:
    • getIntegerSize

      protected int getIntegerSize()
    • getSQLObject

      public Object getSQLObject(String formattedString)
      Specified by:
      getSQLObject in class Format
    • getStorageCellSize

      public int getStorageCellSize()
      Description copied from class: Format
      This is the number of characters in field.
      For example, PIC X(10) will have 10 characters
      or PIC 9(16) will have 16 characters
      but PIC 9(16) COMP-3 will have 8 characters
      Specified by:
      getStorageCellSize in class Format
      Returns:
      cellsize