public interface OngoingCreateType
Modifier and Type | Method and Description |
---|---|
CreateType |
withField(CqlIdentifier identifier,
DataType dataType)
Adds a field definition in the CREATE TYPE statement.
|
default CreateType |
withField(String columnName,
DataType dataType)
Shortcut for
withField(CqlIdentifier, DataType) (CqlIdentifier, DataType)
withField(CqlIdentifier.asCql(columnName), dataType)}. |
@NonNull CreateType withField(@NonNull CqlIdentifier identifier, @NonNull DataType dataType)
Fields keys are added in the order of their declaration.
To create the data type, use the constants and static methods in DataTypes
, or
SchemaBuilder.udt(CqlIdentifier, boolean)
.
@NonNull default CreateType withField(@NonNull String columnName, @NonNull DataType dataType)
withField(CqlIdentifier, DataType)
(CqlIdentifier, DataType)
withField(CqlIdentifier.asCql(columnName), dataType)}.Copyright © 2017–2020. All rights reserved.