Class JpaRealmMapStorage
- java.lang.Object
-
- org.keycloak.models.map.storage.jpa.JpaMapStorage<JpaRealmEntity,MapRealmEntity,RealmModel>
-
- org.keycloak.models.map.storage.jpa.realm.JpaRealmMapStorage
-
- All Implemented Interfaces:
MapStorage<MapRealmEntity,RealmModel>
public class JpaRealmMapStorage extends JpaMapStorage<JpaRealmEntity,MapRealmEntity,RealmModel>
AMapStorage
implementation for realm entities.- Author:
- Stefan Guilhen
-
-
Field Summary
-
Fields inherited from class org.keycloak.models.map.storage.jpa.JpaMapStorage
em
-
-
Constructor Summary
Constructors Constructor Description JpaRealmMapStorage(KeycloakSession session, javax.persistence.EntityManager em)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JpaModelCriteriaBuilder
createJpaModelCriteriaBuilder()
protected MapRealmEntity
mapToEntityDelegate(JpaRealmEntity original)
protected javax.persistence.criteria.Selection<? extends JpaRealmEntity>
selectCbConstruct(javax.persistence.criteria.CriteriaBuilder cb, javax.persistence.criteria.Root<JpaRealmEntity> root)
protected void
setEntityVersion(JpaRootEntity entity)
-
Methods inherited from class org.keycloak.models.map.storage.jpa.JpaMapStorage
clearQueryCache, create, delete, delete, getCount, mapToEntityDelegateUnique, read, read, removeFromCache
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.models.map.storage.MapStorage
exists, exists
-
-
-
-
Constructor Detail
-
JpaRealmMapStorage
public JpaRealmMapStorage(KeycloakSession session, javax.persistence.EntityManager em)
-
-
Method Detail
-
selectCbConstruct
protected javax.persistence.criteria.Selection<? extends JpaRealmEntity> selectCbConstruct(javax.persistence.criteria.CriteriaBuilder cb, javax.persistence.criteria.Root<JpaRealmEntity> root)
- Specified by:
selectCbConstruct
in classJpaMapStorage<JpaRealmEntity,MapRealmEntity,RealmModel>
-
setEntityVersion
protected void setEntityVersion(JpaRootEntity entity)
- Specified by:
setEntityVersion
in classJpaMapStorage<JpaRealmEntity,MapRealmEntity,RealmModel>
-
createJpaModelCriteriaBuilder
protected JpaModelCriteriaBuilder createJpaModelCriteriaBuilder()
- Specified by:
createJpaModelCriteriaBuilder
in classJpaMapStorage<JpaRealmEntity,MapRealmEntity,RealmModel>
-
mapToEntityDelegate
protected MapRealmEntity mapToEntityDelegate(JpaRealmEntity original)
- Specified by:
mapToEntityDelegate
in classJpaMapStorage<JpaRealmEntity,MapRealmEntity,RealmModel>
-
-