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
AMapLiquibaseConnectionProvider
implementation for the map-jpa module. This provider registers the customLiquibase
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 viaKeycloakSession.getProvider(Class)
as follows:MapLiquibaseConnectionProvider liquibaseProvider = session.getProvider(MapLiquibaseConnectionProvider.class);
- Author:
- Stefan Guilhen
-
-
Constructor Summary
Constructors Constructor Description DefaultLiquibaseConnectionProvider(KeycloakSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
liquibase.Liquibase
getLiquibaseForCustomUpdate(Connection connection, String defaultSchema, String changelogLocation, ClassLoader classloader, String changelogTableName)
-
-
-
Constructor Detail
-
DefaultLiquibaseConnectionProvider
public DefaultLiquibaseConnectionProvider(KeycloakSession session)
-
-
Method Detail
-
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
-
-