Class JpaRealmDelegateProvider

java.lang.Object
org.keycloak.models.map.storage.jpa.JpaDelegateProvider<JpaRealmEntity>
org.keycloak.models.map.storage.jpa.realm.delegate.JpaRealmDelegateProvider
All Implemented Interfaces:
DelegateProvider<MapRealmEntity>

public class JpaRealmDelegateProvider extends JpaDelegateProvider<JpaRealmEntity> implements DelegateProvider<MapRealmEntity>
A DelegateProvider implementation for JpaRealmEntity.
Author:
Stefan Guilhen
  • Constructor Details

    • JpaRealmDelegateProvider

      public JpaRealmDelegateProvider(JpaRealmEntity delegate, jakarta.persistence.EntityManager em)
  • Method Details

    • getDelegate

      public MapRealmEntity getDelegate(boolean isRead, Enum<? extends EntityField<MapRealmEntity>> field, Object... parameters)
      Description copied from interface: DelegateProvider
      Returns a delegate for and entity for an operation on a field.
      Specified by:
      getDelegate in interface DelegateProvider<MapRealmEntity>
      Parameters:
      isRead - true when the delegate requested for a read operation, false otherwise
      field - Identification of the field this delegates operates on. While this parameter can be any object including null, if it is a known field, then it is guaranteed to be one of the EntityFields enumerated in one of the Map*EntityFields enum.
      Returns:
    • setDelegateWithAssociation

      protected void setDelegateWithAssociation(String associationName)