| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Sql[] | generateSql(InsertOrUpdateStatement insertOrUpdateStatement, Database database, SqlGeneratorChain<T extends SqlStatement> sqlGeneratorChain)
Implements liquibase. Generate the actual Sql for the given statement and database. |
| protected Table | |
| protected abstract String | |
| protected String | getInsertStatement(InsertOrUpdateStatement insertOrUpdateStatement, Database database, SqlGeneratorChain<T extends SqlStatement> sqlGeneratorChain)
|
| protected String | |
| 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. |
| protected abstract String | getRecordCheck(InsertOrUpdateStatement insertOrUpdateStatement, Database database, String whereClause)
|
| protected String | Returns: the generated update statement, ornull if there is nothing to updatethe insert or update statement to generate the update statement from insertOrUpdateStatement, Database the database to generate the update statement for database, String the WHERE clause to use in the update statement whereClause, SqlGeneratorChain<T extends SqlStatement> the SQL generator chain to use in the update statement sqlGeneratorChain)Generates an SQL UPDATE statement for the specified insert or update statement, database, and SQL generator chain. |
| protected String | |
| public ValidationErrors | validate(InsertOrUpdateStatement statement, Database database, SqlGeneratorChain<T extends SqlStatement> sqlGeneratorChain)
Implements liquibase. Validate the data contained in the SqlStatement. |
| InsertOrUpdateGenerator | back to summary |
|---|---|
| public InsertOrUpdateGenerator() | |
| generateSql | back to summary |
|---|---|
| public Sql[] generateSql(InsertOrUpdateStatement insertOrUpdateStatement, Database database, SqlGeneratorChain<T extends SqlStatement> sqlGeneratorChain) Implements liquibase. Doc from liquibase. Generate the actual Sql for the given statement and database.
| |
| getAffectedTable | back to summary |
|---|---|
| protected Table getAffectedTable(InsertOrUpdateStatement insertOrUpdateStatement) | |
| getElse | back to summary |
|---|---|
| protected abstract String getElse(Database database) | |
| getInsertStatement | back to summary |
|---|---|
| protected String getInsertStatement(InsertOrUpdateStatement insertOrUpdateStatement, Database database, SqlGeneratorChain<T extends SqlStatement> sqlGeneratorChain) | |
| getPostUpdateStatements | back to summary |
|---|---|
| protected String getPostUpdateStatements(Database database) | |
| 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.
| |
| getRecordCheck | back to summary |
|---|---|
| protected abstract String getRecordCheck(InsertOrUpdateStatement insertOrUpdateStatement, Database database, String whereClause) | |
| getUpdateStatement | back to summary |
|---|---|
| protected String getUpdateStatement(InsertOrUpdateStatement insertOrUpdateStatement, Database database, String whereClause, SqlGeneratorChain<T extends SqlStatement> sqlGeneratorChain) throws LiquibaseException Generates an SQL UPDATE statement for the specified insert or update statement, database, and SQL generator chain.
| |
| getWhereClause | back to summary |
|---|---|
| protected String getWhereClause(InsertOrUpdateStatement insertOrUpdateStatement, Database database) | |
| validate | back to summary |
|---|---|
| public ValidationErrors validate(InsertOrUpdateStatement statement, 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.
| |