public interface AlterTableAddColumn
Modifier and Type | Method and Description |
---|---|
AlterTableAddColumnEnd |
addColumn(CqlIdentifier columnName,
DataType dataType)
Adds a column definition in the ALTER TABLE statement.
|
default AlterTableAddColumnEnd |
addColumn(String columnName,
DataType dataType)
Shortcut for
addColumn(CqlIdentifier.asCql(columnName), dataType) . |
AlterTableAddColumnEnd |
addStaticColumn(CqlIdentifier columnName,
DataType dataType)
Adds a static column definition in the ALTER TABLE statement.
|
default AlterTableAddColumnEnd |
addStaticColumn(String columnName,
DataType dataType)
|
@NonNull AlterTableAddColumnEnd addColumn(@NonNull CqlIdentifier columnName, @NonNull DataType dataType)
To create the data type, use the constants and static methods in DataTypes
, or
SchemaBuilder.udt(CqlIdentifier, boolean)
.
@NonNull default AlterTableAddColumnEnd addColumn(@NonNull String columnName, @NonNull DataType dataType)
addColumn(CqlIdentifier.asCql(columnName), dataType)
.@NonNull AlterTableAddColumnEnd addStaticColumn(@NonNull CqlIdentifier columnName, @NonNull DataType dataType)
To create the data type, use the constants and static methods in DataTypes
, or
SchemaBuilder.udt(CqlIdentifier, boolean)
.
@NonNull default AlterTableAddColumnEnd addStaticColumn(@NonNull String columnName, @NonNull DataType dataType)
Copyright © 2017–2022. All rights reserved.