Class JpaSingleUseObjectMapStorage
- java.lang.Object
-
- org.keycloak.models.map.storage.jpa.JpaMapStorage<JpaSingleUseObjectEntity,MapSingleUseObjectEntity,SingleUseObjectValueModel>
-
- org.keycloak.models.map.storage.jpa.singleUseObject.JpaSingleUseObjectMapStorage
-
- All Implemented Interfaces:
MapStorage<MapSingleUseObjectEntity,SingleUseObjectValueModel>
public class JpaSingleUseObjectMapStorage extends JpaMapStorage<JpaSingleUseObjectEntity,MapSingleUseObjectEntity,SingleUseObjectValueModel>
AMapStorage
implementation for single-use object entities.- Author:
- Stefan Guilhen
-
-
Field Summary
-
Fields inherited from class org.keycloak.models.map.storage.jpa.JpaMapStorage
em
-
-
Constructor Summary
Constructors Constructor Description JpaSingleUseObjectMapStorage(KeycloakSession session, javax.persistence.EntityManager em)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JpaModelCriteriaBuilder
createJpaModelCriteriaBuilder()
protected MapSingleUseObjectEntity
mapToEntityDelegate(JpaSingleUseObjectEntity original)
protected javax.persistence.criteria.Selection<? extends JpaSingleUseObjectEntity>
selectCbConstruct(javax.persistence.criteria.CriteriaBuilder cb, javax.persistence.criteria.Root<JpaSingleUseObjectEntity> 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
-
JpaSingleUseObjectMapStorage
public JpaSingleUseObjectMapStorage(KeycloakSession session, javax.persistence.EntityManager em)
-
-
Method Detail
-
selectCbConstruct
protected javax.persistence.criteria.Selection<? extends JpaSingleUseObjectEntity> selectCbConstruct(javax.persistence.criteria.CriteriaBuilder cb, javax.persistence.criteria.Root<JpaSingleUseObjectEntity> root)
- Specified by:
selectCbConstruct
in classJpaMapStorage<JpaSingleUseObjectEntity,MapSingleUseObjectEntity,SingleUseObjectValueModel>
-
setEntityVersion
protected void setEntityVersion(JpaRootEntity entity)
- Specified by:
setEntityVersion
in classJpaMapStorage<JpaSingleUseObjectEntity,MapSingleUseObjectEntity,SingleUseObjectValueModel>
-
createJpaModelCriteriaBuilder
protected JpaModelCriteriaBuilder createJpaModelCriteriaBuilder()
- Specified by:
createJpaModelCriteriaBuilder
in classJpaMapStorage<JpaSingleUseObjectEntity,MapSingleUseObjectEntity,SingleUseObjectValueModel>
-
mapToEntityDelegate
protected MapSingleUseObjectEntity mapToEntityDelegate(JpaSingleUseObjectEntity original)
- Specified by:
mapToEntityDelegate
in classJpaMapStorage<JpaSingleUseObjectEntity,MapSingleUseObjectEntity,SingleUseObjectValueModel>
-
-