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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidclose()create(KeycloakSession session) getId()getLiquibase(Connection connection, String defaultSchema) getLiquibaseForCustomUpdate(Connection connection, String defaultSchema, String changelogLocation, ClassLoader classloader, String changelogTableName) voidinit(Config.Scope config) voidpostInit(KeycloakSessionFactory factory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
Field Details
-
INDEX_CREATION_THRESHOLD_PARAM
- See Also:
-
-
Constructor Details
-
DefaultLiquibaseConnectionProvider
public DefaultLiquibaseConnectionProvider()
-
-
Method Details
-
create
- Specified by:
createin interfaceProviderFactory<LiquibaseConnectionProvider>
-
baseLiquibaseInitialization
protected void baseLiquibaseInitialization() -
init
- Specified by:
initin interfaceProviderFactory<LiquibaseConnectionProvider>
-
postInit
- Specified by:
postInitin interfaceProviderFactory<LiquibaseConnectionProvider>
-
close
public void close()- Specified by:
closein interfaceProvider- Specified by:
closein interfaceProviderFactory<LiquibaseConnectionProvider>
-
getId
- Specified by:
getIdin interfaceProviderFactory<LiquibaseConnectionProvider>
-
getLiquibase
public KeycloakLiquibase getLiquibase(Connection connection, String defaultSchema) throws liquibase.exception.LiquibaseException - Specified by:
getLiquibasein 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:
getLiquibaseForCustomUpdatein interfaceLiquibaseConnectionProvider- Throws:
liquibase.exception.LiquibaseException
-