Class JpaSingleUseObjectMapKeycloakTransaction
- java.lang.Object
-
- org.keycloak.models.map.storage.jpa.JpaMapKeycloakTransaction<JpaSingleUseObjectEntity,MapSingleUseObjectEntity,SingleUseObjectValueModel>
-
- org.keycloak.models.map.storage.jpa.singleUseObject.JpaSingleUseObjectMapKeycloakTransaction
-
- All Implemented Interfaces:
KeycloakTransaction
,MapKeycloakTransaction<MapSingleUseObjectEntity,SingleUseObjectValueModel>
public class JpaSingleUseObjectMapKeycloakTransaction extends JpaMapKeycloakTransaction<JpaSingleUseObjectEntity,MapSingleUseObjectEntity,SingleUseObjectValueModel>
AMapKeycloakTransaction
implementation for single-use object entities.- Author:
- Stefan Guilhen
-
-
Field Summary
-
Fields inherited from class org.keycloak.models.map.storage.jpa.JpaMapKeycloakTransaction
em
-
-
Constructor Summary
Constructors Constructor Description JpaSingleUseObjectMapKeycloakTransaction(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.JpaMapKeycloakTransaction
begin, clearQueryCache, commit, create, delete, delete, getCount, getRollbackOnly, isActive, mapToEntityDelegateUnique, read, read, removeFromCache, rollback, setRollbackOnly
-
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.MapKeycloakTransaction
exists, exists
-
-
-
-
Constructor Detail
-
JpaSingleUseObjectMapKeycloakTransaction
public JpaSingleUseObjectMapKeycloakTransaction(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 classJpaMapKeycloakTransaction<JpaSingleUseObjectEntity,MapSingleUseObjectEntity,SingleUseObjectValueModel>
-
setEntityVersion
protected void setEntityVersion(JpaRootEntity entity)
- Specified by:
setEntityVersion
in classJpaMapKeycloakTransaction<JpaSingleUseObjectEntity,MapSingleUseObjectEntity,SingleUseObjectValueModel>
-
createJpaModelCriteriaBuilder
protected JpaModelCriteriaBuilder createJpaModelCriteriaBuilder()
-
mapToEntityDelegate
protected MapSingleUseObjectEntity mapToEntityDelegate(JpaSingleUseObjectEntity original)
- Specified by:
mapToEntityDelegate
in classJpaMapKeycloakTransaction<JpaSingleUseObjectEntity,MapSingleUseObjectEntity,SingleUseObjectValueModel>
-
-