Uses of Class
com.gengoai.sql.statement.AlterTable
-
Packages that use AlterTable Package Description com.gengoai.sql com.gengoai.sql.object com.gengoai.sql.statement -
-
Uses of AlterTable in com.gengoai.sql
Methods in com.gengoai.sql with parameters of type AlterTable Modifier and Type Method Description protected String
SQLDialect. alterTable(AlterTable alterTable)
Alter table string. -
Uses of AlterTable in com.gengoai.sql.object
Methods in com.gengoai.sql.object that return AlterTable Modifier and Type Method Description AlterTable
Table. addColumn(@NonNull Column column)
Adds the given column to the table definition generating anAlterTable
statement to perform on the database.AlterTable
Table. addConstraint(@NonNull Constraint constraint)
Adds the givenConstraint
to the table definition generating anAlterTable
statement to perform on the database.AlterTable
Table. alterColumn(@NonNull String name, @NonNull Consumer<Column> consumer)
Alters the definition of the given column generating anAlterTable
statement to perform on the database.AlterTable
Table. dropColumn(@NonNull String name)
Removes the column with the given name from the table definition generating anAlterTable
statement to perform on the database.AlterTable
Table. renameColumn(@NonNull String name, @NonNull String newName)
Renames the column with the given name to the given new name generating anAlterTable
statement to execute on the database.AlterTable
Table. renameTable(@NonNull String newName)
Renames the table to the given new name generating anAlterTable
statement to execute on the database. -
Uses of AlterTable in com.gengoai.sql.statement
Methods in com.gengoai.sql.statement that return AlterTable Modifier and Type Method Description AlterTable
AlterTable. action(@NonNull AlterTableAction action)
Adds an action to the statement.AlterTable
AlterTable. addColumn(@NonNull Column column)
Adds anAlterTableAction.AddColumn
action which will add the givenColumn
to the table.AlterTable
AlterTable. alterColumn(@NonNull Column column)
Adds an alter column action which updates the column based on the given column definition.AlterTable
AlterTable. dropColumn(String name)
Adds a drop column action to drop the column with the given nameAlterTable
AlterTable. renameColumn(String oldName, String newName)
Adds a rename column action to rename theold name
column tonew name
AlterTable
AlterTable. renameTable(String newName)
Adds a rename table action to rename the table tonew name
static AlterTable
AlterTable. table(@NonNull SQLElement table)
Static method for constructing an AlterTable statement given the table being altered.
-