Class JpaDelegateProvider<T extends JpaRootEntity & AbstractEntity>

java.lang.Object
org.keycloak.models.map.storage.jpa.JpaDelegateProvider<T>
Direct Known Subclasses:
JpaClientDelegateProvider, JpaClientScopeDelegateProvider, JpaGroupDelegateProvider, JpaLockDelegateProvider, 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 Details

    • JpaDelegateProvider

      protected JpaDelegateProvider(T delegate)
  • Method Details

    • getDelegate

      protected T getDelegate()
    • setDelegate

      protected void setDelegate(T newDelegate)
      Validates the new entity. Will throw ModelIllegalStateException if the entity has been deleted or changed in the meantime.