| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Sql[] | Returns: An array of Sql objects containing the generated SQL statement(s).A CreateIndexStatement with the desired properties of the SQL to be generated statement, Database The DBMS for whose SQL dialect the statement is to be made database, SqlGeneratorChain<T extends SqlStatement> The other SQL generators in the same chain (but this method is not interested in them) sqlGeneratorChain)Implements liquibase. Generate a CREATE INDEX SQL statement. |
| protected Index | |
| public ValidationErrors | validate(CreateIndexStatement createIndexStatement, Database database, SqlGeneratorChain<T extends SqlStatement> sqlGeneratorChain)
Implements liquibase. Validate the data contained in the SqlStatement. |
| public Warnings | warn(CreateIndexStatement createIndexStatement, Database database, SqlGeneratorChain<T extends SqlStatement> sqlGeneratorChain)
Overrides liquibase. Implements liquibase.
|
| CreateIndexGenerator | back to summary |
|---|---|
| public CreateIndexGenerator() | |
| generateSql | back to summary |
|---|---|
| public Sql[] generateSql(CreateIndexStatement statement, Database database, SqlGeneratorChain<T extends SqlStatement> sqlGeneratorChain) Implements liquibase. Generate a CREATE INDEX SQL statement. Here, we are walking on thin ice, because the SQL Foundation standard (ISO/IEC 9075-2) does not concern itself with indexes at all and leaves them as an implementation-specific detail at the discretion of each RDBMS vendor. However, there is some common ground to most RDBMS, and we try to make an educated guess on how a CREATE INDEX statement might look like if we have no specific handler for the DBMS.
| |
| getAffectedIndex | back to summary |
|---|---|
| protected Index getAffectedIndex(CreateIndexStatement statement) | |
| validate | back to summary |
|---|---|
| public ValidationErrors validate(CreateIndexStatement createIndexStatement, Database database, SqlGeneratorChain<T extends SqlStatement> sqlGeneratorChain) Implements liquibase. Doc from liquibase. Validate the data contained in the SqlStatement. If there are no errors, return an empty ValidationErrors object, not a null value. Liquibase will inspect the ValidationErrors result before attempting to call generateSql.
| |
| warn | back to summary |
|---|---|
| public Warnings warn(CreateIndexStatement createIndexStatement, Database database, SqlGeneratorChain<T extends SqlStatement> sqlGeneratorChain) Overrides liquibase. Implements liquibase.
| |