Package liquibase.sqlgenerator.core
Class InsertOrUpdateGeneratorPostgres
java.lang.Object
liquibase.sqlgenerator.core.AbstractSqlGenerator<InsertOrUpdateStatement>
liquibase.sqlgenerator.core.InsertOrUpdateGenerator
liquibase.sqlgenerator.core.InsertOrUpdateGeneratorPostgres
- 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
getRecordCheck
(InsertOrUpdateStatement arg0, Database arg1, String arg2) 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, getPostUpdateStatements, getPriority, getUpdateStatement, getWhereClause, validate
Methods inherited from class liquibase.sqlgenerator.core.AbstractSqlGenerator
generateRollbackStatementsIsVolatile, generateStatementsIsVolatile, looksLikeFunctionCall, warn
-
Constructor Details
-
InsertOrUpdateGeneratorPostgres
public InsertOrUpdateGeneratorPostgres()
-
-
Method Details
-
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>
-
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
-
getElse
- Specified by:
getElse
in classInsertOrUpdateGenerator
-
getRecordCheck
- Specified by:
getRecordCheck
in classInsertOrUpdateGenerator
-