/** * Adds an {@literal RENAME} to the list of field changes. * * @param from must not be {@literal null}. * @param to must not be {@literal null} or empty. * @return {@code this} {@link AlterUserTypeSpecification}. */ public AlterUserTypeSpecification rename(CqlIdentifier from, CqlIdentifier to) { return add(new RenameColumnSpecification(from, to)); }
/** * Adds a {@code RENAME} to the list of column changes. * * @param from must not be {@literal null}. * @param to must not be {@literal null}. * @return {@literal this} {@link AlterTableSpecification}. * @since 2.0 */ public AlterTableSpecification rename(CqlIdentifier from, CqlIdentifier to) { return add(new RenameColumnSpecification(from, to)); }