| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Sql[] | generateSql(CreateIndexStatement
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)Overrides liquibase. Implements liquibase. Generate a CREATE INDEX SQL statement. |
| public int | getPriority()
Overrides liquibase. Implements liquibase. Of all the SqlGenerators that "support" a given SqlStatement/Database, SqlGeneratorFactory will return the one with the highest priority. |
| public boolean | supports(CreateIndexStatement statement, Database database)
Overrides liquibase. Implements liquibase. Does this generator support the given statement/database combination? |
| CreateIndexGeneratorPostgres | back to summary |
|---|---|
| public CreateIndexGeneratorPostgres() | |
| generateSql | back to summary |
|---|---|
| public Sql[] generateSql(CreateIndexStatement statement, Database database, SqlGeneratorChain<T extends SqlStatement> sqlGeneratorChain) Overrides liquibase. Implements liquibase. Doc from 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.
| |
| getPriority | back to summary |
|---|---|
| public int getPriority() Overrides liquibase. Implements liquibase. Doc from liquibase. Of all the SqlGenerators that "support" a given SqlStatement/Database, SqlGeneratorFactory will return the one with the highest priority.
| |
| supports | back to summary |
|---|---|
| public boolean supports(CreateIndexStatement statement, Database database) Overrides liquibase. Implements liquibase. Doc from liquibase. Does this generator support the given statement/database combination? Do not validate the statement with this method, only return if it can support it.
| |