Class JpaRoleMapStorage
- java.lang.Object
- 
- org.keycloak.models.map.storage.jpa.JpaMapStorage<JpaRoleEntity,MapRoleEntity,RoleModel>
- 
- org.keycloak.models.map.storage.jpa.role.JpaRoleMapStorage
 
 
- 
- All Implemented Interfaces:
- MapStorage<MapRoleEntity,RoleModel>
 
 public class JpaRoleMapStorage extends JpaMapStorage<JpaRoleEntity,MapRoleEntity,RoleModel> 
- 
- 
Field Summary- 
Fields inherited from class org.keycloak.models.map.storage.jpa.JpaMapStorageem
 
- 
 - 
Constructor SummaryConstructors Constructor Description JpaRoleMapStorage(KeycloakSession session, javax.persistence.EntityManager em)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description MapRoleEntitycreate(MapRoleEntity mapEntity)Instructs this storage to add a new value into the underlying store on commit in the context of the current transaction.JpaModelCriteriaBuildercreateJpaModelCriteriaBuilder()protected MapRoleEntitymapToEntityDelegate(JpaRoleEntity original)javax.persistence.criteria.Selection<JpaRoleEntity>selectCbConstruct(javax.persistence.criteria.CriteriaBuilder cb, javax.persistence.criteria.Root<JpaRoleEntity> root)voidsetEntityVersion(JpaRootEntity entity)- 
Methods inherited from class org.keycloak.models.map.storage.jpa.JpaMapStorageclearQueryCache, delete, delete, getCount, mapToEntityDelegateUnique, read, read, removeFromCache
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.models.map.storage.MapStorageexists, exists
 
- 
 
- 
- 
- 
Constructor Detail- 
JpaRoleMapStoragepublic JpaRoleMapStorage(KeycloakSession session, javax.persistence.EntityManager em) 
 
- 
 - 
Method Detail- 
selectCbConstructpublic javax.persistence.criteria.Selection<JpaRoleEntity> selectCbConstruct(javax.persistence.criteria.CriteriaBuilder cb, javax.persistence.criteria.Root<JpaRoleEntity> root) - Specified by:
- selectCbConstructin class- JpaMapStorage<JpaRoleEntity,MapRoleEntity,RoleModel>
 
 - 
setEntityVersionpublic void setEntityVersion(JpaRootEntity entity) - Specified by:
- setEntityVersionin class- JpaMapStorage<JpaRoleEntity,MapRoleEntity,RoleModel>
 
 - 
createJpaModelCriteriaBuilderpublic JpaModelCriteriaBuilder createJpaModelCriteriaBuilder() - Specified by:
- createJpaModelCriteriaBuilderin class- JpaMapStorage<JpaRoleEntity,MapRoleEntity,RoleModel>
 
 - 
createpublic MapRoleEntity create(MapRoleEntity mapEntity) Description copied from interface:MapStorageInstructs this storage to add a new value into the underlying store on commit in the context of the current transaction.Updates to the returned instances of Vwould be visible in the current transaction and will propagate into the underlying store upon commit. The ID of the entity passed in the parameter might change to a different value in the returned value if the underlying storage decided this was necessary. If the ID of the entity was null before, it will be set on the returned value.- Specified by:
- createin interface- MapStorage<MapRoleEntity,RoleModel>
- Overrides:
- createin class- JpaMapStorage<JpaRoleEntity,MapRoleEntity,RoleModel>
- Parameters:
- mapEntity- the value
- Returns:
- Entity representing the valuein the store. It may or may not be the same instance asvalue.
 
 - 
mapToEntityDelegateprotected MapRoleEntity mapToEntityDelegate(JpaRoleEntity original) - Specified by:
- mapToEntityDelegatein class- JpaMapStorage<JpaRoleEntity,MapRoleEntity,RoleModel>
 
 
- 
 
-