public interface AlterIndexStep
ALTER INDEX
where the action can be decided.
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 |
---|---|
AlterIndexFinalStep |
renameTo(Index newName)
Add a
RENAME TO clause to the ALTER INDEX
statement. |
AlterIndexFinalStep |
renameTo(Name newName)
Add a
RENAME TO clause to the ALTER INDEX
statement. |
AlterIndexFinalStep |
renameTo(String newName)
Add a
RENAME TO clause to the ALTER INDEX
statement. |
@Support(value={AURORA_MYSQL,AURORA_POSTGRES,DB2,DERBY,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES}) AlterIndexFinalStep renameTo(String newName)
RENAME TO
clause to the ALTER INDEX
statement.
Note that in some databases, including MySQL and SQL Server, the index
namespace is tied to a table, not a schema. In those databases, it is
recommended to call DSLContext.alterTable(String)
with
AlterTableStep.renameIndex(String)
instead.
@Support(value={AURORA_MYSQL,AURORA_POSTGRES,DB2,DERBY,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES}) AlterIndexFinalStep renameTo(Name newName)
RENAME TO
clause to the ALTER INDEX
statement.
Note that in some databases, including MySQL and SQL Server, the index
namespace is tied to a table, not a schema. In those databases, it is
recommended to call DSLContext.alterTable(Name)
with
AlterTableStep.renameIndex(Name)
instead.
@Support(value={AURORA_MYSQL,AURORA_POSTGRES,DB2,DERBY,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES}) AlterIndexFinalStep renameTo(Index newName)
RENAME TO
clause to the ALTER INDEX
statement.
Note that in some databases, including MySQL and SQL Server, the index
namespace is tied to a table, not a schema. In those databases, it is
recommended to call DSLContext.alterTable(Name)
with
AlterTableStep.renameIndex(Index)
instead.
Copyright © 2019. All rights reserved.