/** * 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)); }
public StringBuilder toCql(StringBuilder cql) { return cql.append(keyword).append(' ').append(spec().getName()).append(" TO ") .append(spec().getTargetName()); } }
/** * 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)); }