/** * Add a new ADD column clause to this ALTER TABLE statement. * * @param columnName the name of the column to be added. * @return a new {@link Alter.AddColumn} instance. */ public AddColumn addColumn(String columnName) { validateNotEmpty(columnName, "Added column"); validateNotKeyWord( columnName, String.format( "The new column name '%s' is not allowed because it is a reserved keyword", columnName)); return new AddColumn(this, columnName, false); }
/** * Add a new ADD column clause to this ALTER TABLE statement, to add a static column. * * @param columnName the name of the column to be added. * @return a new {@link Alter.AddColumn} instance. */ public AddColumn addStaticColumn(String columnName) { validateNotEmpty(columnName, "Added static column"); validateNotKeyWord( columnName, String.format( "The new static column name '%s' is not allowed because it is a reserved keyword", columnName)); return new AddColumn(this, columnName, true); }
/** * Add a new ADD column clause to this ALTER TABLE statement, to add a static column. * * @param columnName the name of the column to be added. * @return a new {@link Alter.AddColumn} instance. */ public AddColumn addStaticColumn(String columnName) { validateNotEmpty(columnName, "Added static column"); validateNotKeyWord(columnName, String.format("The new static column name '%s' is not allowed because it is a reserved keyword", columnName)); return new AddColumn(this, columnName, true); }
/** * Add a new ADD column clause to this ALTER TABLE statement. * * @param columnName the name of the column to be added. * @return a new {@link Alter.AddColumn} instance. */ public AddColumn addColumn(String columnName) { validateNotEmpty(columnName, "Added column"); validateNotKeyWord(columnName, String.format("The new column name '%s' is not allowed because it is a reserved keyword", columnName)); return new AddColumn(this, columnName, false); }
/** * Add a new ADD column clause to this ALTER TABLE statement. * * @param columnName the name of the column to be added. * @return a new {@link Alter.AddColumn} instance. */ public AddColumn addColumn(String columnName) { validateNotEmpty(columnName, "Added column"); validateNotKeyWord(columnName, String.format("The new column name '%s' is not allowed because it is a reserved keyword", columnName)); return new AddColumn(this, columnName, false); }
/** * Add a new ADD column clause to this ALTER TABLE statement, to add a static column. * * @param columnName the name of the column to be added. * @return a new {@link Alter.AddColumn} instance. */ public AddColumn addStaticColumn(String columnName) { validateNotEmpty(columnName, "Added static column"); validateNotKeyWord(columnName, String.format("The new static column name '%s' is not allowed because it is a reserved keyword", columnName)); return new AddColumn(this, columnName, true); }
/** * Add a new ADD column clause to this ALTER TABLE statement, to add a static column. * * @param columnName the name of the column to be added. * @return a new {@link Alter.AddColumn} instance. */ public AddColumn addStaticColumn(String columnName) { validateNotEmpty(columnName, "Added static column"); validateNotKeyWord(columnName, String.format("The new static column name '%s' is not allowed because it is a reserved keyword", columnName)); return new AddColumn(this, columnName, true); }
/** * Add a new ADD column clause to this ALTER TABLE statement. * * @param columnName the name of the column to be added. * @return a new {@link Alter.AddColumn} instance. */ public AddColumn addColumn(String columnName) { validateNotEmpty(columnName, "Added column"); validateNotKeyWord(columnName, String.format("The new column name '%s' is not allowed because it is a reserved keyword", columnName)); return new AddColumn(this, columnName, false); }