Class CustomInsertLockRecordGenerator
java.lang.Object
liquibase.sqlgenerator.core.AbstractSqlGenerator<liquibase.statement.core.InitializeDatabaseChangeLogLockTableStatement>
org.keycloak.connections.jpa.updater.liquibase.lock.CustomInsertLockRecordGenerator
- All Implemented Interfaces:
liquibase.servicelocator.PrioritizedService
,liquibase.sqlgenerator.SqlGenerator<liquibase.statement.core.InitializeDatabaseChangeLogLockTableStatement>
public class CustomInsertLockRecordGenerator
extends liquibase.sqlgenerator.core.AbstractSqlGenerator<liquibase.statement.core.InitializeDatabaseChangeLogLockTableStatement>
We need to remove DELETE SQL command, which liquibase adds by default when inserting record to table lock. This is causing buggy behaviour
- Author:
- Marek Posolda
-
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 TypeMethodDescriptionliquibase.sql.Sql[]
generateSql
(liquibase.statement.core.InitializeDatabaseChangeLogLockTableStatement statement, liquibase.database.Database database, liquibase.sqlgenerator.SqlGeneratorChain sqlGeneratorChain) int
liquibase.exception.ValidationErrors
validate
(liquibase.statement.core.InitializeDatabaseChangeLogLockTableStatement initializeDatabaseChangeLogLockTableStatement, liquibase.database.Database database, liquibase.sqlgenerator.SqlGeneratorChain sqlGeneratorChain) Methods inherited from class liquibase.sqlgenerator.core.AbstractSqlGenerator
generateRollbackStatementsIsVolatile, generateStatementsIsVolatile, looksLikeFunctionCall, supports, warn
-
Constructor Details
-
CustomInsertLockRecordGenerator
public CustomInsertLockRecordGenerator()
-
-
Method Details
-
getPriority
public int getPriority()- Specified by:
getPriority
in interfaceliquibase.servicelocator.PrioritizedService
- Specified by:
getPriority
in interfaceliquibase.sqlgenerator.SqlGenerator<liquibase.statement.core.InitializeDatabaseChangeLogLockTableStatement>
- Overrides:
getPriority
in classliquibase.sqlgenerator.core.AbstractSqlGenerator<liquibase.statement.core.InitializeDatabaseChangeLogLockTableStatement>
-
validate
public liquibase.exception.ValidationErrors validate(liquibase.statement.core.InitializeDatabaseChangeLogLockTableStatement initializeDatabaseChangeLogLockTableStatement, liquibase.database.Database database, liquibase.sqlgenerator.SqlGeneratorChain sqlGeneratorChain) -
generateSql
public liquibase.sql.Sql[] generateSql(liquibase.statement.core.InitializeDatabaseChangeLogLockTableStatement statement, liquibase.database.Database database, liquibase.sqlgenerator.SqlGeneratorChain sqlGeneratorChain)
-