/** * Add a new RENAME column clause to this ALTER TABLE statement. * * <p>Note that you can only rename a column that is part of the primary key. * * @param columnName the name of the column to be renamed. * @return a new {@link Alter.RenameColumn} instance. */ public RenameColumn renameColumn(String columnName) { validateNotEmpty(columnName, "Column to be renamed"); validateNotKeyWord( columnName, String.format( "The renamed column name '%s' is not allowed because it is a reserved keyword", columnName)); return new RenameColumn(this, columnName); }
/** * Add a new RENAME column clause to this ALTER TABLE statement. * <p/> * Note that you can only rename a column that is part of the primary key. * * @param columnName the name of the column to be renamed. * @return a new {@link Alter.RenameColumn} instance. */ public RenameColumn renameColumn(String columnName) { validateNotEmpty(columnName, "Column to be renamed"); validateNotKeyWord(columnName, String.format("The renamed column name '%s' is not allowed because it is a reserved keyword", columnName)); return new RenameColumn(this, columnName); }
/** * Add a new RENAME column clause to this ALTER TABLE statement. * <p/> * Note that you can only rename a column that is part of the primary key. * * @param columnName the name of the column to be renamed. * @return a new {@link Alter.RenameColumn} instance. */ public RenameColumn renameColumn(String columnName) { validateNotEmpty(columnName, "Column to be renamed"); validateNotKeyWord(columnName, String.format("The renamed column name '%s' is not allowed because it is a reserved keyword", columnName)); return new RenameColumn(this, columnName); }
/** * Add a new RENAME column clause to this ALTER TABLE statement. * <p/> * Note that you can only rename a column that is part of the primary key. * * @param columnName the name of the column to be renamed. * @return a new {@link Alter.RenameColumn} instance. */ public RenameColumn renameColumn(String columnName) { validateNotEmpty(columnName, "Column to be renamed"); validateNotKeyWord(columnName, String.format("The renamed column name '%s' is not allowed because it is a reserved keyword", columnName)); return new RenameColumn(this, columnName); }