Class DefaultLiquibaseConnectionProvider
java.lang.Object
org.keycloak.connections.jpa.updater.liquibase.conn.DefaultLiquibaseConnectionProvider
- All Implemented Interfaces:
LiquibaseConnectionProvider
,LiquibaseConnectionProviderFactory
,Provider
,ProviderFactory<LiquibaseConnectionProvider>
public class DefaultLiquibaseConnectionProvider
extends Object
implements LiquibaseConnectionProviderFactory, LiquibaseConnectionProvider
- Author:
- Marek Posolda
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
close()
This is called when the server shuts down.create
(KeycloakSession session) getId()
getLiquibase
(Connection connection, String defaultSchema) getLiquibaseForCustomUpdate
(Connection connection, String defaultSchema, String changelogLocation, ClassLoader classloader, String changelogTableName) void
init
(Config.Scope config) Only called once when the factory is first created.void
postInit
(KeycloakSessionFactory factory) Called after all provider factories have been initializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata, order
-
Field Details
-
INDEX_CREATION_THRESHOLD_PARAM
- See Also:
-
-
Constructor Details
-
DefaultLiquibaseConnectionProvider
public DefaultLiquibaseConnectionProvider()
-
-
Method Details
-
create
- Specified by:
create
in interfaceProviderFactory<LiquibaseConnectionProvider>
-
baseLiquibaseInitialization
protected void baseLiquibaseInitialization() -
init
Description copied from interface:ProviderFactory
Only called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
init
in interfaceProviderFactory<LiquibaseConnectionProvider>
-
postInit
Description copied from interface:ProviderFactory
Called after all provider factories have been initialized- Specified by:
postInit
in interfaceProviderFactory<LiquibaseConnectionProvider>
-
close
public void close()Description copied from interface:ProviderFactory
This is called when the server shuts down.- Specified by:
close
in interfaceProvider
- Specified by:
close
in interfaceProviderFactory<LiquibaseConnectionProvider>
-
getId
- Specified by:
getId
in interfaceProviderFactory<LiquibaseConnectionProvider>
-
getLiquibase
public KeycloakLiquibase getLiquibase(Connection connection, String defaultSchema) throws liquibase.exception.LiquibaseException - Specified by:
getLiquibase
in interfaceLiquibaseConnectionProvider
- Throws:
liquibase.exception.LiquibaseException
-
getLiquibaseForCustomUpdate
public KeycloakLiquibase getLiquibaseForCustomUpdate(Connection connection, String defaultSchema, String changelogLocation, ClassLoader classloader, String changelogTableName) throws liquibase.exception.LiquibaseException - Specified by:
getLiquibaseForCustomUpdate
in interfaceLiquibaseConnectionProvider
- Throws:
liquibase.exception.LiquibaseException
-