Interface IDisplayTypeFactory


public interface IDisplayTypeFactory
Interface for display type factory.
Author:
Jan Thielemann - jan.thielemann@evenos-consulting.de, evenos Consulting GmbH - www.evenos.org
  • Method Details

    • isID

      boolean isID(int displayType)
      Parameters:
      displayType -
      Returns:
      true if displayType is of int ID type
    • isUUID

      default boolean isUUID(int displayType)
      Parameters:
      displayType -
      Returns:
      true if displayType is of UUID type
    • isNumeric

      boolean isNumeric(int displayType)
      Parameters:
      displayType -
      Returns:
      true if displayType is of numeric type
    • getDefaultPrecision

      Integer getDefaultPrecision(int displayType)
      Parameters:
      displayType -
      Returns:
      default numeric precision for displayType
    • isText

      boolean isText(int displayType)
      Parameters:
      displayType -
      Returns:
      true if displayType is of text type
    • isDate

      boolean isDate(int displayType)
      Parameters:
      displayType -
      Returns:
      true if displayType is of date type
    • isList

      default boolean isList(int displayType)
    • isLookup

      boolean isLookup(int displayType)
      Parameters:
      displayType -
      Returns:
      true if displayType is of lookup type (usually a foreign key type)
    • isLOB

      boolean isLOB(int displayType)
      Parameters:
      displayType -
      Returns:
      true if displayType is of LOB type
    • getNumberFormat

      DecimalFormat getNumberFormat(int displayType, Language language, String pattern)
      Parameters:
      displayType -
      language -
      pattern -
      Returns:
      DecimalFormat
    • getDateFormat

      SimpleDateFormat getDateFormat(int displayType, Language language, String pattern)
      Parameters:
      displayType -
      language -
      pattern -
      Returns:
      SimpleDateFormat
    • getClass

      Class<?> getClass(int displayType, boolean yesNoAsBoolean)
      Parameters:
      displayType -
      yesNoAsBoolean -
      Returns:
      Java type for displayType
    • getSQLDataType

      String getSQLDataType(int displayType, String columnName, int fieldLength)
      Parameters:
      displayType -
      columnName -
      fieldLength -
      Returns:
      SQL data type for displayType
    • getDescription

      String getDescription(int displayType)
      Parameters:
      displayType -
      Returns:
      description for displayType