| Modifier and Type | Class and Description |
|---|---|
| private class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private CreateIndexGeneratorFirebird. | Returns: the result of the analysisthe CreateIndexStatement to analyse statement, Database the Database object (FirebirdDatabase is expected) database)Analyzes the column list for the statement and returns a ColumnAnalysisResult which contains: - The final column list (or computed expression) - How many regular columns were found - How many computed expressions were found - If any column had an ASCending sorting - If any column had a DESCending sorting |
| private boolean | Returns: true if it is more likely an expression, false if it is more likely a column name (identifier).An imperfect heuristic to determine if an expression is more likely a column name or a computed expression. |
| public Sql[] | Returns: An array with one entry containing the generated CREATE INDEX statement for Firebird.A CreateIndexStatement with the desired properties of the SQL to be generated statement, Database A database object (must be of FirebirdDatabase type, or we will error out) database, SqlGeneratorChain<T extends SqlStatement> The other generators in the current chain (ignored by this implementation) sqlGeneratorChain)Overrides liquibase. Implements liquibase. Generate a CREATE INDEX SQL statement for Firebird databases. |
| public int | Returns: The PRIORITY_DATABASE priorityOverrides liquibase. Implements liquibase. Informs the SqlGeneratorFactory that we are the preferred generator for CREATE INDEX statements in a Firebird database. |
| public boolean | Returns: true if database is a Firebird database, else in other cases.The SqlStatement object (ignored in this case) statement, Database The database object to be compared database)Overrides liquibase. Implements liquibase. Informs the SqlGeneratorFactory that we this class works on Firebird SQL databases only. |
| public ValidationErrors | validate(CreateIndexStatement createIndexStatement, Database database, SqlGeneratorChain<T extends SqlStatement> sqlGeneratorChain)
Overrides liquibase. Implements liquibase. Validate the data contained in the SqlStatement. |
| CreateIndexGeneratorFirebird | back to summary |
|---|---|
| public CreateIndexGeneratorFirebird() | |
| analyseColumns | back to summary |
|---|---|
| private CreateIndexGeneratorFirebird. Analyzes the column list for the statement and returns a ColumnAnalysisResult which contains: - The final column list (or computed expression) - How many regular columns were found - How many computed expressions were found - If any column had an ASCending sorting - If any column had a DESCending sorting
| |
| applyIsComputedExpressionHeuristic | back to summary |
|---|---|
| private boolean applyIsComputedExpressionHeuristic(ColumnConfig column, Database database) An imperfect heuristic to determine if an expression is more likely a column name or a computed expression.
| |
| generateSql | back to summary |
|---|---|
| public Sql[] generateSql(CreateIndexStatement statement, Database database, SqlGeneratorChain<T extends SqlStatement> sqlGeneratorChain) Overrides liquibase. Implements liquibase. Generate a CREATE INDEX SQL statement for Firebird databases.
| |
| getPriority | back to summary |
|---|---|
| public int getPriority() Overrides liquibase. Implements liquibase. Informs the SqlGeneratorFactory that we are the preferred generator for CREATE INDEX statements in a Firebird database.
| |
| supports | back to summary |
|---|---|
| public boolean supports(CreateIndexStatement statement, Database database) Overrides liquibase. Implements liquibase. Informs the SqlGeneratorFactory that we this class works on Firebird SQL databases only.
| |
| validate | back to summary |
|---|---|
| public ValidationErrors validate(CreateIndexStatement createIndexStatement, Database database, SqlGeneratorChain<T extends SqlStatement> sqlGeneratorChain) Overrides liquibase. 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.
| |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private boolean | |
| private boolean | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public int | |
| public int | |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| columnExpression | back to summary |
|---|---|
| private String columnExpression | |
| foundAscColumns | back to summary |
|---|---|
| private boolean foundAscColumns | |
| foundDescColumns | back to summary |
|---|---|
| private boolean foundDescColumns | |
| numComputedCols | back to summary |
|---|---|
| private int numComputedCols | |
| numRegularCols | back to summary |
|---|---|
| private int numRegularCols | |
| ColumnAnalysisResult | back to summary |
|---|---|
| private ColumnAnalysisResult() | |
| getColumnExpression | back to summary |
|---|---|
| public String getColumnExpression() | |
| getNumComputedCols | back to summary |
|---|---|
| public int getNumComputedCols() | |
| getNumRegularCols | back to summary |
|---|---|
| public int getNumRegularCols() | |
| isFoundAscColumns | back to summary |
|---|---|
| public boolean isFoundAscColumns() | |
| isFoundDescColumns | back to summary |
|---|---|
| public boolean isFoundDescColumns() | |
| setColumnExpression | back to summary |
|---|---|
| public void setColumnExpression(String columnExpression) | |
| setFoundAscColumns | back to summary |
|---|---|
| public void setFoundAscColumns(boolean foundAscColumns) | |
| setFoundDescColumns | back to summary |
|---|---|
| public void setFoundDescColumns(boolean foundDescColumns) | |
| setNumComputedCols | back to summary |
|---|---|
| public void setNumComputedCols(int numComputedCols) | |
| setNumRegularCols | back to summary |
|---|---|
| public void setNumRegularCols(int numRegularCols) | |