Class MapJpaLiquibaseUpdaterProvider
- java.lang.Object
- 
- org.keycloak.models.map.storage.jpa.liquibase.updater.MapJpaLiquibaseUpdaterProvider
 
- 
- All Implemented Interfaces:
- MapJpaUpdaterProvider,- Provider
 
 public class MapJpaLiquibaseUpdaterProvider extends Object implements MapJpaUpdaterProvider 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.keycloak.models.map.storage.jpa.updater.MapJpaUpdaterProviderMapJpaUpdaterProvider.Status
 
- 
 - 
Constructor SummaryConstructors Constructor Description MapJpaLiquibaseUpdaterProvider(KeycloakSession session)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidexport(Class<?> modelType, Connection connection, String defaultSchema, File file)Exports the SQL update script for the given model type into the given File.StringgetDatabaseShortName()Returns an all-lower-case short name of the used database.voidupdate(Class<?> modelType, Connection connection, String defaultSchema)Updates the Keycloak database for the given model typeprotected voidupdateChangeSet(liquibase.Liquibase liquibase)protected voidupdateSynch(Class<?> modelType, Connection connection, File file, String defaultSchema)MapJpaUpdaterProvider.Statusvalidate(Class<?> modelType, Connection connection, String defaultSchema)Checks whether Keycloak database for the given model type is up to date with the most recent changesetsprotected MapJpaUpdaterProvider.StatusvalidateChangeSet(liquibase.Liquibase liquibase, String changelog)protected MapJpaUpdaterProvider.StatusvalidateSynch(Class<?> modelType, Connection connection, String defaultSchema)
 
- 
- 
- 
Constructor Detail- 
MapJpaLiquibaseUpdaterProviderpublic MapJpaLiquibaseUpdaterProvider(KeycloakSession session) 
 
- 
 - 
Method Detail- 
updatepublic void update(Class<?> modelType, Connection connection, String defaultSchema) Description copied from interface:MapJpaUpdaterProviderUpdates the Keycloak database for the given model type- Specified by:
- updatein interface- MapJpaUpdaterProvider
- Parameters:
- modelType- Model type
- connection- DB connection
- defaultSchema- DB connection
 
 - 
exportpublic void export(Class<?> modelType, Connection connection, String defaultSchema, File file) Description copied from interface:MapJpaUpdaterProviderExports the SQL update script for the given model type into the given File.- Specified by:
- exportin interface- MapJpaUpdaterProvider
- Parameters:
- modelType- Model type
- connection- DB connection
- defaultSchema- DB schema to use
- file- File to write to
 
 - 
updateSynchprotected void updateSynch(Class<?> modelType, Connection connection, File file, String defaultSchema) 
 - 
updateChangeSetprotected void updateChangeSet(liquibase.Liquibase liquibase) throws liquibase.exception.LiquibaseException, SQLException- Throws:
- liquibase.exception.LiquibaseException
- SQLException
 
 - 
validatepublic MapJpaUpdaterProvider.Status validate(Class<?> modelType, Connection connection, String defaultSchema) Description copied from interface:MapJpaUpdaterProviderChecks whether Keycloak database for the given model type is up to date with the most recent changesets- Specified by:
- validatein interface- MapJpaUpdaterProvider
- Parameters:
- modelType- Model type
- connection- DB connection
- defaultSchema- DB schema to use
- Returns:
 
 - 
validateSynchprotected MapJpaUpdaterProvider.Status validateSynch(Class<?> modelType, Connection connection, String defaultSchema) 
 - 
validateChangeSetprotected MapJpaUpdaterProvider.Status validateChangeSet(liquibase.Liquibase liquibase, String changelog) throws liquibase.exception.LiquibaseException - Throws:
- liquibase.exception.LiquibaseException
 
 - 
getDatabaseShortNamepublic String getDatabaseShortName() Description copied from interface:MapJpaUpdaterProviderReturns an all-lower-case short name of the used database.- Specified by:
- getDatabaseShortNamein interface- MapJpaUpdaterProvider
 
 
- 
 
-