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 ClassesModifier and TypeInterfaceDescriptionstatic final recordAn integer type.static enumThe kind of scalar type.static final recordA monetary type.static final recordA real type.static final recordA text type.static final recordA time type. -
Method Summary
-
Method Details
-
name
CATypeScalarIdentifier name()- Returns:
- The type name
-
withName
- 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
-