Class LiquibaseJpaUpdaterProvider
java.lang.Object
org.keycloak.connections.jpa.updater.liquibase.LiquibaseJpaUpdaterProvider
- All Implemented Interfaces:
JpaUpdaterProvider,Provider
- Author:
- Stian Thorgersen
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.connections.jpa.updater.JpaUpdaterProvider
JpaUpdaterProvider.Status -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidexport(Connection connection, String defaultSchema, File file) Exports the SQL update script into the given File.static Stringvoidupdate(Connection connection, String defaultSchema) Updates the Keycloak databaseprotected voidupdateChangeSet(KeycloakLiquibase liquibase, Writer exportWriter) validate(Connection connection, String defaultSchema) Checks whether Keycloak database is up to date with the most recent changesetsprotected JpaUpdaterProvider.StatusvalidateChangeSet(KeycloakLiquibase liquibase, String changelog) protected JpaUpdaterProvider.StatusvalidateSynch(Connection connection, String defaultSchema)
-
Field Details
-
CHANGELOG
- See Also:
-
DEPLOYMENT_ID_COLUMN
- See Also:
-
-
Constructor Details
-
LiquibaseJpaUpdaterProvider
-
-
Method Details
-
update
Description copied from interface:JpaUpdaterProviderUpdates the Keycloak database- Specified by:
updatein interfaceJpaUpdaterProvider- Parameters:
connection- DB connectiondefaultSchema- DB connection
-
export
Description copied from interface:JpaUpdaterProviderExports the SQL update script into the given File.- Specified by:
exportin interfaceJpaUpdaterProvider- Parameters:
connection- DB connectiondefaultSchema- DB schema to usefile- File to write to
-
updateChangeSet
protected void updateChangeSet(KeycloakLiquibase liquibase, Writer exportWriter) throws liquibase.exception.LiquibaseException, SQLException - Throws:
liquibase.exception.LiquibaseExceptionSQLException
-
validate
Description copied from interface:JpaUpdaterProviderChecks whether Keycloak database is up to date with the most recent changesets- Specified by:
validatein interfaceJpaUpdaterProvider- Parameters:
connection- DB connectiondefaultSchema- DB schema to use- Returns:
-
validateSynch
-
validateChangeSet
protected JpaUpdaterProvider.Status validateChangeSet(KeycloakLiquibase liquibase, String changelog) throws liquibase.exception.LiquibaseException - Throws:
liquibase.exception.LiquibaseException
-
close
public void close() -
getTable
-