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>
-
Field Summary
Fields inherited from class org.keycloak.models.map.storage.jpa.JpaMapStorage
em
-
Constructor Summary
ConstructorDescriptionJpaRoleMapStorage
(KeycloakSession session, jakarta.persistence.EntityManager em) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(MapRoleEntity mapEntity) Instructs this storage to add a new value into the underlying store on commit in the context of the current transaction.protected MapRoleEntity
mapToEntityDelegate
(JpaRoleEntity original) jakarta.persistence.criteria.Selection<JpaRoleEntity>
selectCbConstruct
(jakarta.persistence.criteria.CriteriaBuilder cb, jakarta.persistence.criteria.Root<JpaRoleEntity> root) void
setEntityVersion
(JpaRootEntity entity) Methods inherited from class org.keycloak.models.map.storage.jpa.JpaMapStorage
clearQueryCache, 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
-
JpaRoleMapStorage
-
-
Method Details
-
selectCbConstruct
public jakarta.persistence.criteria.Selection<JpaRoleEntity> selectCbConstruct(jakarta.persistence.criteria.CriteriaBuilder cb, jakarta.persistence.criteria.Root<JpaRoleEntity> root) - Specified by:
selectCbConstruct
in classJpaMapStorage<JpaRoleEntity,
MapRoleEntity, RoleModel>
-
setEntityVersion
- Specified by:
setEntityVersion
in classJpaMapStorage<JpaRoleEntity,
MapRoleEntity, RoleModel>
-
createJpaModelCriteriaBuilder
- Specified by:
createJpaModelCriteriaBuilder
in classJpaMapStorage<JpaRoleEntity,
MapRoleEntity, RoleModel>
-
create
Description copied from interface:MapStorage
Instructs 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
V
would 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:
create
in interfaceMapStorage<MapRoleEntity,
RoleModel> - Overrides:
create
in classJpaMapStorage<JpaRoleEntity,
MapRoleEntity, RoleModel> - Parameters:
mapEntity
- the value- Returns:
- Entity representing the
value
in the store. It may or may not be the same instance asvalue
.
-
mapToEntityDelegate
- Specified by:
mapToEntityDelegate
in classJpaMapStorage<JpaRoleEntity,
MapRoleEntity, RoleModel>
-