Interface SqlColumnMetadata.Builder

  • Method Details

    • name

      The column name or alias as the engine reports it. Not unique: SELECT a.id, b.id returns two id columns.

      Parameters:
      name - The column name or alias as the engine reports it. Not unique: SELECT a.id, b.id returns two id columns.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      The column's portable SQL type. It fixes which SqlValue member the column's values use.

      Parameters:
      type - The column's portable SQL type. It fixes which SqlValue member the column's values use.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The column's portable SQL type. It fixes which SqlValue member the column's values use.

      Parameters:
      type - The column's portable SQL type. It fixes which SqlValue member the column's values use.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • typeName

      SqlColumnMetadata.Builder typeName(String typeName)

      The engine's own type, for example Timestamp(MICROSECOND, UTC) or Decimal(12, 2, 128).

      Parameters:
      typeName - The engine's own type, for example Timestamp(MICROSECOND, UTC) or Decimal(12, 2, 128).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nullable

      SqlColumnMetadata.Builder nullable(Boolean nullable)

      Specifies whether the column can hold NULL.

      Parameters:
      nullable - Specifies whether the column can hold NULL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • precision

      SqlColumnMetadata.Builder precision(Integer precision)

      DECIMAL: total digits. TIME and TIMESTAMP: fractional-second digits.

      Parameters:
      precision - DECIMAL: total digits. TIME and TIMESTAMP: fractional-second digits.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scale

      DECIMAL: digits after the decimal point.

      Parameters:
      scale - DECIMAL: digits after the decimal point.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timeZone

      SqlColumnMetadata.Builder timeZone(String timeZone)

      TIMESTAMP only: set when the engine stores an instant, for example UTC.

      Parameters:
      timeZone - TIMESTAMP only: set when the engine stores an instant, for example UTC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.