Class MapJpaLiquibaseUpdaterProvider
- java.lang.Object
-
- org.keycloak.models.map.storage.jpa.updater.liquibase.MapJpaLiquibaseUpdaterProvider
-
- All Implemented Interfaces:
MapJpaUpdaterProvider,org.keycloak.provider.Provider
public class MapJpaLiquibaseUpdaterProvider extends Object implements MapJpaUpdaterProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.map.storage.jpa.updater.MapJpaUpdaterProvider
MapJpaUpdaterProvider.Status
-
-
Constructor Summary
Constructors Constructor Description MapJpaLiquibaseUpdaterProvider(org.keycloak.models.KeycloakSession session)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidexport(Class modelType, Connection connection, String defaultSchema, File file)Exports the SQL update script for the given model type into the given File.static StringgetTable(String table, String defaultSchema)voidupdate(Class modelType, Connection connection, String defaultSchema)Updates the Keycloak database for the given model typeprotected voidupdateChangeSet(liquibase.Liquibase liquibase, Connection connection)MapJpaUpdaterProvider.Statusvalidate(Class modelType, Connection connection, String defaultSchema)Checks whether Keycloak database for the given model type is up to date with the most recent changesetsprotected MapJpaUpdaterProvider.StatusvalidateChangeSet(liquibase.Liquibase liquibase, String changelog)
-
-
-
Method Detail
-
update
public void update(Class modelType, Connection connection, String defaultSchema)
Description copied from interface:MapJpaUpdaterProviderUpdates the Keycloak database for the given model type- Specified by:
updatein interfaceMapJpaUpdaterProvider- Parameters:
modelType- Model typeconnection- DB connectiondefaultSchema- DB connection
-
export
public void export(Class modelType, Connection connection, String defaultSchema, File file)
Description copied from interface:MapJpaUpdaterProviderExports the SQL update script for the given model type into the given File.- Specified by:
exportin interfaceMapJpaUpdaterProvider- Parameters:
modelType- Model typeconnection- DB connectiondefaultSchema- DB schema to usefile- File to write to
-
updateChangeSet
protected void updateChangeSet(liquibase.Liquibase liquibase, Connection connection) throws liquibase.exception.LiquibaseException, SQLException- Throws:
liquibase.exception.LiquibaseExceptionSQLException
-
validate
public MapJpaUpdaterProvider.Status validate(Class modelType, Connection connection, String defaultSchema)
Description copied from interface:MapJpaUpdaterProviderChecks whether Keycloak database for the given model type is up to date with the most recent changesets- Specified by:
validatein interfaceMapJpaUpdaterProvider- Parameters:
modelType- Model typeconnection- DB connectiondefaultSchema- DB schema to use- Returns:
-
validateChangeSet
protected MapJpaUpdaterProvider.Status validateChangeSet(liquibase.Liquibase liquibase, String changelog) throws liquibase.exception.LiquibaseException
- Throws:
liquibase.exception.LiquibaseException
-
close
public void close()
- Specified by:
closein interfaceorg.keycloak.provider.Provider
-
-