liquibase.statement.SqlStatement specifying which
logical SQL statement an instance of this template class is able to generate SQL for.
liquibase.statement.SqlStatement .
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | generateStatementsIsVolatile(Database database)
Implements liquibase. Does this change require access to the database metadata? |
| public int | getPriority()
Implements liquibase. Of all the SqlGenerators that "support" a given SqlStatement/Database, SqlGeneratorFactory will return the one with the highest priority. |
| public boolean | Returns: true if value looks like a function call, false if it looks like a literal.The string to test value, Database the database object to test against database)Tries to find out if a given value (part a database-specific SQL statement) is just a simple literal (e.g. 'Jones', 149.99 or false) or if it is a call to a function within the database (e.g. TO_DATE('28.12.2017', 'dd.mm.yyyy') in Oracle DB). |
| public boolean | supports(T statement, Database database)
Implements liquibase. Does this generator support the given statement/database combination? |
| public Warnings | warn(T statementType, Database database, SqlGeneratorChain<T> sqlGeneratorChain)
Implements liquibase.
|
| AbstractSqlGenerator | back to summary |
|---|---|
| public AbstractSqlGenerator() | |
| generateRollbackStatementsIsVolatile | back to summary |
|---|---|
| public boolean generateRollbackStatementsIsVolatile(Database database) Implements liquibase.
| |
| generateStatementsIsVolatile | back to summary |
|---|---|
| public boolean generateStatementsIsVolatile(Database database) Implements liquibase. Doc from liquibase. Does this change require access to the database metadata? If true, the change cannot be used in an updateSql-style command.
| |
| getPriority | back to summary |
|---|---|
| public int getPriority() Implements liquibase. Doc from liquibase. Of all the SqlGenerators that "support" a given SqlStatement/Database, SqlGeneratorFactory will return the one with the highest priority.
| |
| looksLikeFunctionCall | back to summary |
|---|---|
| public boolean looksLikeFunctionCall(String value, Database database) Tries to find out if a given value (part a database-specific SQL statement) is just a simple literal (e.g. 'Jones', 149.99 or false) or if it is a call to a function within the database (e.g. TO_DATE('28.12.2017', 'dd.mm.yyyy') in Oracle DB). This method is often used to determine if we need to quote literals which are Strings, e.g. if we determine "Dr. Jones" to be a literal, then we generate
but if the value is a function call, we may not quote it, e.g. for "TO_DATE('28.12.2017', 'dd.mm.yyyy')", we
need to generate (note the absence of the apostrophes!):
| |
| supports | back to summary |
|---|---|
| public boolean supports(T statement, Database database) 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.
| |
| warn | back to summary |
|---|---|
| public Warnings warn(T statementType, Database database, SqlGeneratorChain<T> sqlGeneratorChain) Implements liquibase.
| |