Class JpaServerConfigStorageProvider
java.lang.Object
org.keycloak.storage.configuration.jpa.JpaServerConfigStorageProvider
- All Implemented Interfaces:
Provider,ServerConfigStorageProvider
A
ServerConfigStorageProvider that stores its data in the database, using the EntityManager.-
Constructor Summary
ConstructorsConstructorDescriptionJpaServerConfigStorageProvider(jakarta.persistence.EntityManager entityManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()loadOrCreate(String key, Supplier<String> valueGenerator) voidbooleanvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.storage.configuration.ServerConfigStorageProvider
loadOrCreate, replace
-
Constructor Details
-
JpaServerConfigStorageProvider
public JpaServerConfigStorageProvider(jakarta.persistence.EntityManager entityManager)
-
-
Method Details
-
find
- Specified by:
findin interfaceServerConfigStorageProvider
-
store
- Specified by:
storein interfaceServerConfigStorageProvider
-
remove
- Specified by:
removein interfaceServerConfigStorageProvider
-
loadOrCreate
- Specified by:
loadOrCreatein interfaceServerConfigStorageProvider
-
replace
public boolean replace(String key, Predicate<String> replacePredicate, Supplier<String> valueGenerator) - Specified by:
replacein interfaceServerConfigStorageProvider
-
close
public void close()
-