/** * Entry point into the {@link AlterColumnSpecification}'s fluent API given {@code name} and {@link DataType} to alter * a column. Convenient if imported statically. * * @param name must not be {@literal null} or empty. * @param type must not be {@literal null}. * @return a new {@link AlterColumnSpecification}. */ public static AlterColumnSpecification alterColumn(String name, DataType type) { return alterColumn(CqlIdentifier.of(name), type); }
/** * Adds an {@literal ALTER} to the list of column changes. * * @param column must not be {@literal null}. * @param type must not be {@literal null}. * @return {@literal this} {@link AlterTableSpecification}. * @since 2.0 */ public AlterTableSpecification alter(CqlIdentifier column, DataType type) { return add(AlterColumnSpecification.alterColumn(column, type)); }
/** * Adds an {@literal ALTER} to the list of field changes. * * @param field must not be {@literal null}. * @param type must not be {@literal null}. * @return {@code this} {@link AlterUserTypeSpecification}. */ public AlterUserTypeSpecification alter(CqlIdentifier field, DataType type) { return add(AlterColumnSpecification.alterColumn(field, type)); }