Class JpaRootAuthenticationSessionMapKeycloakTransaction
- java.lang.Object
-
- org.keycloak.models.map.storage.jpa.JpaMapKeycloakTransaction<JpaRootAuthenticationSessionEntity,MapRootAuthenticationSessionEntity,RootAuthenticationSessionModel>
-
- org.keycloak.models.map.storage.jpa.authSession.JpaRootAuthenticationSessionMapKeycloakTransaction
-
- All Implemented Interfaces:
KeycloakTransaction
,MapKeycloakTransaction<MapRootAuthenticationSessionEntity,RootAuthenticationSessionModel>
public class JpaRootAuthenticationSessionMapKeycloakTransaction extends JpaMapKeycloakTransaction<JpaRootAuthenticationSessionEntity,MapRootAuthenticationSessionEntity,RootAuthenticationSessionModel>
-
-
Field Summary
-
Fields inherited from class org.keycloak.models.map.storage.jpa.JpaMapKeycloakTransaction
em
-
-
Constructor Summary
Constructors Constructor Description JpaRootAuthenticationSessionMapKeycloakTransaction(KeycloakSession session, javax.persistence.EntityManager em)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JpaModelCriteriaBuilder
createJpaModelCriteriaBuilder()
boolean
delete(String key)
Instructs this transaction to delete a value associated with the identifierkey
from the underlying store on commit.protected MapRootAuthenticationSessionEntity
mapToEntityDelegate(JpaRootAuthenticationSessionEntity original)
javax.persistence.criteria.Selection<JpaRootAuthenticationSessionEntity>
selectCbConstruct(javax.persistence.criteria.CriteriaBuilder cb, javax.persistence.criteria.Root<JpaRootAuthenticationSessionEntity> root)
void
setEntityVersion(JpaRootEntity entity)
-
Methods inherited from class org.keycloak.models.map.storage.jpa.JpaMapKeycloakTransaction
begin, clearQueryCache, commit, create, 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
-
JpaRootAuthenticationSessionMapKeycloakTransaction
public JpaRootAuthenticationSessionMapKeycloakTransaction(KeycloakSession session, javax.persistence.EntityManager em)
-
-
Method Detail
-
selectCbConstruct
public javax.persistence.criteria.Selection<JpaRootAuthenticationSessionEntity> selectCbConstruct(javax.persistence.criteria.CriteriaBuilder cb, javax.persistence.criteria.Root<JpaRootAuthenticationSessionEntity> root)
-
setEntityVersion
public void setEntityVersion(JpaRootEntity entity)
-
createJpaModelCriteriaBuilder
public JpaModelCriteriaBuilder createJpaModelCriteriaBuilder()
-
mapToEntityDelegate
protected MapRootAuthenticationSessionEntity mapToEntityDelegate(JpaRootAuthenticationSessionEntity original)
-
delete
public boolean delete(String key)
Description copied from interface:MapKeycloakTransaction
Instructs this transaction to delete a value associated with the identifierkey
from the underlying store on commit.- Specified by:
delete
in interfaceMapKeycloakTransaction<MapRootAuthenticationSessionEntity,RootAuthenticationSessionModel>
- Overrides:
delete
in classJpaMapKeycloakTransaction<JpaRootAuthenticationSessionEntity,MapRootAuthenticationSessionEntity,RootAuthenticationSessionModel>
- Parameters:
key
- identifier of a value- Returns:
- Returns
true
if the object has been deleted or result cannot be determined,false
otherwise.
-
-