Class JpaRoleMapKeycloakTransaction
- java.lang.Object
-
- org.keycloak.models.map.storage.jpa.JpaMapKeycloakTransaction<JpaRoleEntity,MapRoleEntity,RoleModel>
-
- org.keycloak.models.map.storage.jpa.role.JpaRoleMapKeycloakTransaction
-
- All Implemented Interfaces:
KeycloakTransaction
,MapKeycloakTransaction<MapRoleEntity,RoleModel>
public class JpaRoleMapKeycloakTransaction extends JpaMapKeycloakTransaction<JpaRoleEntity,MapRoleEntity,RoleModel>
-
-
Field Summary
-
Fields inherited from class org.keycloak.models.map.storage.jpa.JpaMapKeycloakTransaction
em
-
-
Constructor Summary
Constructors Constructor Description JpaRoleMapKeycloakTransaction(KeycloakSession session, javax.persistence.EntityManager em)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MapRoleEntity
create(MapRoleEntity mapEntity)
Instructs this transaction to add a new value into the underlying store on commit.JpaModelCriteriaBuilder
createJpaModelCriteriaBuilder()
protected MapRoleEntity
mapToEntityDelegate(JpaRoleEntity original)
javax.persistence.criteria.Selection<JpaRoleEntity>
selectCbConstruct(javax.persistence.criteria.CriteriaBuilder cb, javax.persistence.criteria.Root<JpaRoleEntity> root)
void
setEntityVersion(JpaRootEntity entity)
-
Methods inherited from class org.keycloak.models.map.storage.jpa.JpaMapKeycloakTransaction
begin, clearQueryCache, commit, 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
-
JpaRoleMapKeycloakTransaction
public JpaRoleMapKeycloakTransaction(KeycloakSession session, javax.persistence.EntityManager em)
-
-
Method Detail
-
selectCbConstruct
public javax.persistence.criteria.Selection<JpaRoleEntity> selectCbConstruct(javax.persistence.criteria.CriteriaBuilder cb, javax.persistence.criteria.Root<JpaRoleEntity> root)
- Specified by:
selectCbConstruct
in classJpaMapKeycloakTransaction<JpaRoleEntity,MapRoleEntity,RoleModel>
-
setEntityVersion
public void setEntityVersion(JpaRootEntity entity)
- Specified by:
setEntityVersion
in classJpaMapKeycloakTransaction<JpaRoleEntity,MapRoleEntity,RoleModel>
-
createJpaModelCriteriaBuilder
public JpaModelCriteriaBuilder createJpaModelCriteriaBuilder()
- Specified by:
createJpaModelCriteriaBuilder
in classJpaMapKeycloakTransaction<JpaRoleEntity,MapRoleEntity,RoleModel>
-
create
public MapRoleEntity create(MapRoleEntity mapEntity)
Description copied from interface:MapKeycloakTransaction
Instructs this transaction to add a new value into the underlying store on commit.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 interfaceMapKeycloakTransaction<MapRoleEntity,RoleModel>
- Overrides:
create
in classJpaMapKeycloakTransaction<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
protected MapRoleEntity mapToEntityDelegate(JpaRoleEntity original)
- Specified by:
mapToEntityDelegate
in classJpaMapKeycloakTransaction<JpaRoleEntity,MapRoleEntity,RoleModel>
-
-