Class DefaultLiquibaseConnectionProvider
java.lang.Object
org.keycloak.models.map.storage.jpa.liquibase.connection.DefaultLiquibaseConnectionProvider
- All Implemented Interfaces:
MapLiquibaseConnectionProvider
,Provider
public class DefaultLiquibaseConnectionProvider
extends Object
implements MapLiquibaseConnectionProvider
A
MapLiquibaseConnectionProvider
implementation for the map-jpa module. This provider registers the custom Liquibase
changes and data types that were developed to better support working with data stored as JSON in the database.
An instance of this provider can be obtained via KeycloakSession.getProvider(Class)
as follows:
MapLiquibaseConnectionProvider liquibaseProvider = session.getProvider(MapLiquibaseConnectionProvider.class);
- Author:
- Stefan Guilhen
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
liquibase.Liquibase
getLiquibaseForCustomUpdate
(Connection connection, String defaultSchema, String changelogLocation, ClassLoader classloader, String changelogTableName)
-
Constructor Details
-
DefaultLiquibaseConnectionProvider
-
-
Method Details
-
close
public void close() -
getLiquibaseForCustomUpdate
public liquibase.Liquibase getLiquibaseForCustomUpdate(Connection connection, String defaultSchema, String changelogLocation, ClassLoader classloader, String changelogTableName) throws liquibase.exception.LiquibaseException - Specified by:
getLiquibaseForCustomUpdate
in interfaceMapLiquibaseConnectionProvider
- Throws:
liquibase.exception.LiquibaseException
-