# Interface CATypeScalarType

All Known Implementing Classes:
  `CATypeScalarType.Integral`, `CATypeScalarType.Monetary`, `CATypeScalarType.Real`, `CATypeScalarType.Text`, `CATypeScalarType.Time`

public sealed interface CATypeScalarType permits CATypeScalarType.Integral, CATypeScalarType.Text, CATypeScalarType.Time, CATypeScalarType.Monetary, CATypeScalarType.Real
The type of scalar types.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Interface
  Description
  `static final record`
  `CATypeScalarType.Integral`
  An integer type.
  `static enum`
  `CATypeScalarType.Kind`
  The kind of scalar type.
  `static final record`
  `CATypeScalarType.Monetary`
  A monetary type.
  `static final record`
  `CATypeScalarType.Real`
  A real type.
  `static final record`
  `CATypeScalarType.Text`
  A text type.
  `static final record`
  `CATypeScalarType.Time`
  A time type.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `description()`
  `CATypeScalarType.Kind`
  `kind()`
  `CATypeScalarIdentifier`
  `name()`
  `String`
  `showConstraint()`
  `CATypeScalarType`
  `withName(CATypeScalarIdentifier newName)`

- ## Method Details

  - ### name

    CATypeScalarIdentifier name()
    Returns:
      The type name

  - ### withName

    CATypeScalarType withName(CATypeScalarIdentifier newName)
    Parameters:
      `newName` - The new name
    Returns:
      This type with a new name

  - ### description

    String description()
    Returns:
      A humanly-readable description of the type

  - ### kind

    CATypeScalarType.Kind kind()
    Returns:
      The internal type kind

  - ### showConstraint

    String showConstraint()
    Returns:
      A humanly-readable description of this type's value constraints