Interface MapJpaUpdaterProvider
- All Superinterfaces:
org.keycloak.provider.Provider
- All Known Implementing Classes:
MapJpaLiquibaseUpdaterProvider
public interface MapJpaUpdaterProvider
extends org.keycloak.provider.Provider
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumStatus of database up-to-dateness -
Method Summary
Modifier and TypeMethodDescriptionvoidexport(Class<?> modelType, Connection connection, String defaultSchema, File file) Exports the SQL update script for the given model type into the given File.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 typevalidate(Class<?> modelType, Connection connection, String defaultSchema) Checks whether Keycloak database for the given model type is up to date with the most recent changesetsMethods inherited from interface org.keycloak.provider.Provider
close
-
Method Details
-
update
Updates the Keycloak database for the given model type- Parameters:
modelType- Model typeconnection- DB connectiondefaultSchema- DB connection
-
validate
MapJpaUpdaterProvider.Status validate(Class<?> modelType, Connection connection, String defaultSchema) Checks whether Keycloak database for the given model type is up to date with the most recent changesets- Parameters:
modelType- Model typeconnection- DB connectiondefaultSchema- DB schema to use- Returns:
-
export
Exports the SQL update script for the given model type into the given File.- Parameters:
modelType- Model typeconnection- DB connectiondefaultSchema- DB schema to usefile- File to write to
-
getDatabaseShortName
String getDatabaseShortName()Returns an all-lower-case short name of the used database.
-