Class JpaDelegateProvider<T extends JpaRootEntity & AbstractEntity>
- java.lang.Object
-
- org.keycloak.models.map.storage.jpa.JpaDelegateProvider<T>
-
- Direct Known Subclasses:
JpaClientDelegateProvider
,JpaClientScopeDelegateProvider
,JpaGroupDelegateProvider
,JpaPermissionDelegateProvider
,JpaPolicyDelegateProvider
,JpaRealmDelegateProvider
,JpaResourceDelegateProvider
,JpaResourceServerDelegateProvider
,JpaRoleDelegateProvider
,JpaRootAuthenticationSessionDelegateProvider
,JpaScopeDelegateProvider
,JpaUserDelegateProvider
,JpaUserLoginFailureDelegateProvider
public abstract class JpaDelegateProvider<T extends JpaRootEntity & AbstractEntity> extends Object
Base class for all delegate providers for the JPA storage. Wraps the delegate so that it can be safely updated during lazy loading.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JpaDelegateProvider(T delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T
getDelegate()
protected void
setDelegate(T newDelegate)
Validates the new entity.
-
-
-
Constructor Detail
-
JpaDelegateProvider
protected JpaDelegateProvider(T delegate)
-
-
Method Detail
-
getDelegate
protected T getDelegate()
-
setDelegate
protected void setDelegate(T newDelegate)
Validates the new entity. Will throwModelIllegalStateException
if the entity has been deleted or changed in the meantime.
-
-