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 SummaryFields Modifier and Type Field Description static StringINDEX_CREATION_THRESHOLD_PARAM
 - 
Constructor SummaryConstructors Constructor Description DefaultLiquibaseConnectionProvider()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbaseLiquibaseInitialization()voidclose()This is called when the server shuts down.LiquibaseConnectionProvidercreate(KeycloakSession session)StringgetId()liquibase.LiquibasegetLiquibase(Connection connection, String defaultSchema)liquibase.LiquibasegetLiquibaseForCustomUpdate(Connection connection, String defaultSchema, String changelogLocation, ClassLoader classloader, String changelogTableName)voidinit(Config.Scope config)Only called once when the factory is first created.voidpostInit(KeycloakSessionFactory factory)Called after all provider factories have been initialized- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.provider.ProviderFactorygetConfigMetadata, order
 
- 
 
- 
- 
- 
Field Detail- 
INDEX_CREATION_THRESHOLD_PARAMpublic static final String INDEX_CREATION_THRESHOLD_PARAM - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
createpublic LiquibaseConnectionProvider create(KeycloakSession session) - Specified by:
- createin interface- ProviderFactory<LiquibaseConnectionProvider>
 
 - 
baseLiquibaseInitializationprotected void baseLiquibaseInitialization() 
 - 
initpublic void init(Config.Scope config) Description copied from interface:ProviderFactoryOnly called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
- initin interface- ProviderFactory<LiquibaseConnectionProvider>
 
 - 
postInitpublic void postInit(KeycloakSessionFactory factory) Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
- postInitin interface- ProviderFactory<LiquibaseConnectionProvider>
 
 - 
closepublic void close() Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
- closein interface- Provider
- Specified by:
- closein interface- ProviderFactory<LiquibaseConnectionProvider>
 
 - 
getIdpublic String getId() - Specified by:
- getIdin interface- ProviderFactory<LiquibaseConnectionProvider>
 
 - 
getLiquibasepublic liquibase.Liquibase getLiquibase(Connection connection, String defaultSchema) throws liquibase.exception.LiquibaseException - Specified by:
- getLiquibasein interface- LiquibaseConnectionProvider
- Throws:
- liquibase.exception.LiquibaseException
 
 - 
getLiquibaseForCustomUpdatepublic liquibase.Liquibase getLiquibaseForCustomUpdate(Connection connection, String defaultSchema, String changelogLocation, ClassLoader classloader, String changelogTableName) throws liquibase.exception.LiquibaseException - Specified by:
- getLiquibaseForCustomUpdatein interface- LiquibaseConnectionProvider
- Throws:
- liquibase.exception.LiquibaseException
 
 
- 
 
-