public class DefaultLiquibaseConnectionProvider extends Object implements LiquibaseConnectionProviderFactory, LiquibaseConnectionProvider
Modifier and Type | Field and Description |
---|---|
static String |
INDEX_CREATION_THRESHOLD_PARAM |
Constructor and Description |
---|
DefaultLiquibaseConnectionProvider() |
Modifier and Type | Method and Description |
---|---|
protected void |
baseLiquibaseInitialization() |
void |
close()
This is called when the server shuts down.
|
LiquibaseConnectionProvider |
create(KeycloakSession session) |
String |
getId() |
liquibase.Liquibase |
getLiquibase(Connection connection,
String defaultSchema) |
liquibase.Liquibase |
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 initialized
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
order
public static final String INDEX_CREATION_THRESHOLD_PARAM
public LiquibaseConnectionProvider create(KeycloakSession session)
create
in interface ProviderFactory<LiquibaseConnectionProvider>
protected void baseLiquibaseInitialization()
public void init(Config.Scope config)
ProviderFactory
init
in interface ProviderFactory<LiquibaseConnectionProvider>
public void postInit(KeycloakSessionFactory factory)
ProviderFactory
postInit
in interface ProviderFactory<LiquibaseConnectionProvider>
public void close()
ProviderFactory
close
in interface Provider
close
in interface ProviderFactory<LiquibaseConnectionProvider>
public String getId()
getId
in interface ProviderFactory<LiquibaseConnectionProvider>
public liquibase.Liquibase getLiquibase(Connection connection, String defaultSchema) throws liquibase.exception.LiquibaseException
getLiquibase
in interface LiquibaseConnectionProvider
liquibase.exception.LiquibaseException
public liquibase.Liquibase getLiquibaseForCustomUpdate(Connection connection, String defaultSchema, String changelogLocation, ClassLoader classloader, String changelogTableName) throws liquibase.exception.LiquibaseException
getLiquibaseForCustomUpdate
in interface LiquibaseConnectionProvider
liquibase.exception.LiquibaseException
Copyright © 2021 JBoss by Red Hat. All rights reserved.