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>
A
MapStorage
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
ConstructorDescriptionJpaSingleUseObjectMapStorage
(KeycloakSession session, jakarta.persistence.EntityManager em) -
Method Summary
Modifier and TypeMethodDescriptionprotected JpaModelCriteriaBuilder
protected MapSingleUseObjectEntity
mapToEntityDelegate
(JpaSingleUseObjectEntity original) protected jakarta.persistence.criteria.Selection<? extends JpaSingleUseObjectEntity>
selectCbConstruct
(jakarta.persistence.criteria.CriteriaBuilder cb, jakarta.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 Details
-
JpaSingleUseObjectMapStorage
-
-
Method Details
-
selectCbConstruct
protected jakarta.persistence.criteria.Selection<? extends JpaSingleUseObjectEntity> selectCbConstruct(jakarta.persistence.criteria.CriteriaBuilder cb, jakarta.persistence.criteria.Root<JpaSingleUseObjectEntity> root) - Specified by:
selectCbConstruct
in classJpaMapStorage<JpaSingleUseObjectEntity,
MapSingleUseObjectEntity, SingleUseObjectValueModel>
-
setEntityVersion
- Specified by:
setEntityVersion
in classJpaMapStorage<JpaSingleUseObjectEntity,
MapSingleUseObjectEntity, SingleUseObjectValueModel>
-
createJpaModelCriteriaBuilder
-
mapToEntityDelegate
- Specified by:
mapToEntityDelegate
in classJpaMapStorage<JpaSingleUseObjectEntity,
MapSingleUseObjectEntity, SingleUseObjectValueModel>
-