Package liquibase.sqlgenerator.core
Class InsertOrUpdateGeneratorDB2
java.lang.Object
liquibase.sqlgenerator.core.AbstractSqlGenerator<InsertOrUpdateStatement>
liquibase.sqlgenerator.core.InsertOrUpdateGenerator
liquibase.sqlgenerator.core.InsertOrUpdateGeneratorDB2
- All Implemented Interfaces:
PrioritizedService
,SqlGenerator<InsertOrUpdateStatement>
-
Field Summary
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR
Fields inherited from interface liquibase.sqlgenerator.SqlGenerator
EMPTY_SQL, PRIORITY_DATABASE, PRIORITY_DEFAULT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSql[]
generateSql
(InsertOrUpdateStatement insertOrUpdateStatement, Database database, SqlGeneratorChain sqlGeneratorChain) Generate the actual Sql for the given statement and database.protected String
protected String
getPostUpdateStatements
(Database database) protected String
getRecordCheck
(InsertOrUpdateStatement insertOrUpdateStatement, Database database, String whereClause) boolean
supports
(InsertOrUpdateStatement statement, Database database) Does this generator support the given statement/database combination?Methods inherited from class liquibase.sqlgenerator.core.InsertOrUpdateGenerator
getAffectedTable, getInsertStatement, getPriority, getUpdateStatement, getWhereClause, validate
Methods inherited from class liquibase.sqlgenerator.core.AbstractSqlGenerator
generateRollbackStatementsIsVolatile, generateStatementsIsVolatile, looksLikeFunctionCall, warn
-
Constructor Details
-
InsertOrUpdateGeneratorDB2
public InsertOrUpdateGeneratorDB2()
-
-
Method Details
-
getElse
- Specified by:
getElse
in classInsertOrUpdateGenerator
-
generateSql
public Sql[] generateSql(InsertOrUpdateStatement insertOrUpdateStatement, Database database, SqlGeneratorChain sqlGeneratorChain) Description copied from interface:SqlGenerator
Generate the actual Sql for the given statement and database.- Specified by:
generateSql
in interfaceSqlGenerator<InsertOrUpdateStatement>
- Overrides:
generateSql
in classInsertOrUpdateGenerator
-
getRecordCheck
protected String getRecordCheck(InsertOrUpdateStatement insertOrUpdateStatement, Database database, String whereClause) - Specified by:
getRecordCheck
in classInsertOrUpdateGenerator
-
supports
Description copied from interface:SqlGenerator
Does this generator support the given statement/database combination? Do not validate the statement with this method, only return if it can support it.- Specified by:
supports
in interfaceSqlGenerator<InsertOrUpdateStatement>
- Overrides:
supports
in classAbstractSqlGenerator<InsertOrUpdateStatement>
-
getPostUpdateStatements
- Overrides:
getPostUpdateStatements
in classInsertOrUpdateGenerator
-