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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
export
(Connection connection, String defaultSchema, File file) Exports the SQL update script into the given File.static String
void
update
(Connection connection, String defaultSchema) Updates the Keycloak databaseprotected void
updateChangeSet
(KeycloakLiquibase liquibase, Writer exportWriter) validate
(Connection connection, String defaultSchema) Checks whether Keycloak database is up to date with the most recent changesetsprotected JpaUpdaterProvider.Status
validateChangeSet
(KeycloakLiquibase liquibase, String changelog) protected JpaUpdaterProvider.Status
validateSynch
(Connection connection, String defaultSchema)
-
Field Details
-
CHANGELOG
- See Also:
-
DEPLOYMENT_ID_COLUMN
- See Also:
-
-
Constructor Details
-
LiquibaseJpaUpdaterProvider
-
-
Method Details
-
update
Description copied from interface:JpaUpdaterProvider
Updates the Keycloak database- Specified by:
update
in interfaceJpaUpdaterProvider
- Parameters:
connection
- DB connectiondefaultSchema
- DB connection
-
export
Description copied from interface:JpaUpdaterProvider
Exports the SQL update script into the given File.- Specified by:
export
in 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.LiquibaseException
SQLException
-
validate
Description copied from interface:JpaUpdaterProvider
Checks whether Keycloak database is up to date with the most recent changesets- Specified by:
validate
in 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
-