public class TableRowCountGenerator extends AbstractSqlGenerator<TableRowCountStatement>
PRIORITY_DATABASE, PRIORITY_DEFAULTCOMPARATOR| Constructor and Description |
|---|
TableRowCountGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
generateCountSql(TableRowCountStatement statement,
Database database) |
Sql[] |
generateSql(TableRowCountStatement statement,
Database database,
SqlGeneratorChain sqlGeneratorChain)
Generate the actual Sql for the given statement and database.
|
int |
getPriority()
Of all the SqlGenerators that "support" a given SqlStatement/Database, SqlGeneratorFactory will return the one with the highest priority.
|
boolean |
supports(TableRowCountStatement statement,
Database database)
Does this generator support the given statement/database combination? Do not validate the statement with this method, only return if it can suppot it.
|
ValidationErrors |
validate(TableRowCountStatement dropColumnStatement,
Database database,
SqlGeneratorChain sqlGeneratorChain)
Validate the data contained in the SqlStatement.
|
generateRollbackStatementsIsVolatile, generateStatementsIsVolatile, looksLikeFunctionCall, warnpublic int getPriority()
SqlGeneratorgetPriority in interface PrioritizedServicegetPriority in interface SqlGenerator<TableRowCountStatement>getPriority in class AbstractSqlGenerator<TableRowCountStatement>public boolean supports(TableRowCountStatement statement, Database database)
SqlGeneratorsupports in interface SqlGenerator<TableRowCountStatement>supports in class AbstractSqlGenerator<TableRowCountStatement>public ValidationErrors validate(TableRowCountStatement dropColumnStatement, Database database, SqlGeneratorChain sqlGeneratorChain)
SqlGeneratorprotected String generateCountSql(TableRowCountStatement statement, Database database)
public Sql[] generateSql(TableRowCountStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain)
SqlGeneratorCopyright © 2018 Liquibase.org. All rights reserved.