ALTER TABLE DSL used to ALTER
columns.
XYZ*Step types directly from client code
It is usually not recommended to reference any XYZ*Step types
directly from client code, or assign them to local variables. When writing
dynamic SQL, creating a statement's components dynamically, and passing them
to the DSL API statically is usually a better choice. See the manual's
section about dynamic SQL for details: https://www.jooq.org/doc/latest/manual/sql-building/dynamic-sql.
Drawbacks of referencing the XYZ*Step types directly:
| Modifier and Type | Method and Description |
|---|---|
| public @NotNull AlterTableFinalStep | default_(T literal)
Deprecated
as a consequence of
Specify a new column AlterTableFinalStep being deprecated.
DEFAULT.
|
| public @NotNull AlterTableFinalStep | default_(Field<T> expression)
Deprecated
as a consequence of
Specify a new column Field and AlterTableFinalStep being deprecated.
DEFAULT.
|
| public @NotNull AlterTableFinalStep | defaultValue(T literal)
Deprecated
as a consequence of
Specify a new column AlterTableFinalStep being deprecated.
DEFAULT.
|
| public @NotNull AlterTableFinalStep | defaultValue(Field<T> expression)
Deprecated
as a consequence of
Specify a new column Field and AlterTableFinalStep being deprecated.
DEFAULT.
|
| public @NotNull AlterTableFinalStep | dropDefault()
Deprecated
as a consequence of
Drop the column AlterTableFinalStep being deprecated.
DEFAULT.
|
| public @NotNull AlterTableFinalStep | dropNotNull()
Deprecated
as a consequence of
Make the column nullable.
AlterTableFinalStep being deprecated.
|
| public @NotNull AlterTableFinalStep | set(DataType<?> type)
Deprecated
as a consequence of
Specify a new column data type.
AlterTableFinalStep being deprecated.
|
| public @NotNull AlterTableFinalStep | setDefault(T literal)
Deprecated
as a consequence of
Specify a new column AlterTableFinalStep being deprecated.
DEFAULT.
|
| public @NotNull AlterTableFinalStep | setDefault(Field<T> expression)
Deprecated
as a consequence of
Specify a new column Field and AlterTableFinalStep being deprecated.
DEFAULT.
|
| public @NotNull AlterTableFinalStep | setNotNull()
Deprecated
as a consequence of
Make the column AlterTableFinalStep being deprecated.
NOT NULL.
|
| default_ | back to summary |
|---|---|
| public @NotNull AlterTableFinalStep default_(T literal)
Deprecated as a consequence of Specify a new column | |
| default_ | back to summary |
|---|---|
| public @NotNull AlterTableFinalStep default_(Field<T> expression)
Deprecated as a consequence of Specify a new column | |
| defaultValue | back to summary |
|---|---|
| public @NotNull AlterTableFinalStep defaultValue(T literal)
Deprecated as a consequence of Specify a new column
This is an alias for | |
| defaultValue | back to summary |
|---|---|
| public @NotNull AlterTableFinalStep defaultValue(Field<T> expression)
Deprecated as a consequence of Specify a new column
This is an alias for | |
| dropDefault | back to summary |
|---|---|
| public @NotNull AlterTableFinalStep dropDefault()
Deprecated as a consequence of Drop the column | |
| dropNotNull | back to summary |
|---|---|
| public @NotNull AlterTableFinalStep dropNotNull()
Deprecated as a consequence of Make the column nullable.
| |
| set | back to summary |
|---|---|
| public @NotNull AlterTableFinalStep set(DataType<?> type)
Deprecated as a consequence of Specify a new column data type.
This adds or removes | |
| setDefault | back to summary |
|---|---|
| public @NotNull AlterTableFinalStep setDefault(T literal)
Deprecated as a consequence of Specify a new column | |
| setDefault | back to summary |
|---|---|
| public @NotNull AlterTableFinalStep setDefault(Field<T> expression)
Deprecated as a consequence of Specify a new column | |
| setNotNull | back to summary |
|---|---|
| public @NotNull AlterTableFinalStep setNotNull()
Deprecated as a consequence of Make the column
| |