Class JpaRootAuthenticationSessionMapStorage
- java.lang.Object
-
- org.keycloak.models.map.storage.jpa.JpaMapStorage<JpaRootAuthenticationSessionEntity,MapRootAuthenticationSessionEntity,RootAuthenticationSessionModel>
-
- org.keycloak.models.map.storage.jpa.authSession.JpaRootAuthenticationSessionMapStorage
-
- All Implemented Interfaces:
MapStorage<MapRootAuthenticationSessionEntity,RootAuthenticationSessionModel>
public class JpaRootAuthenticationSessionMapStorage extends JpaMapStorage<JpaRootAuthenticationSessionEntity,MapRootAuthenticationSessionEntity,RootAuthenticationSessionModel>
-
-
Field Summary
-
Fields inherited from class org.keycloak.models.map.storage.jpa.JpaMapStorage
em
-
-
Constructor Summary
Constructors Constructor Description JpaRootAuthenticationSessionMapStorage(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 storage to delete a value associated with the identifierkey
from the underlying store upon 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.JpaMapStorage
clearQueryCache, create, 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 Detail
-
JpaRootAuthenticationSessionMapStorage
public JpaRootAuthenticationSessionMapStorage(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:MapStorage
Instructs this storage to delete a value associated with the identifierkey
from the underlying store upon commit.- Specified by:
delete
in interfaceMapStorage<MapRootAuthenticationSessionEntity,RootAuthenticationSessionModel>
- Overrides:
delete
in classJpaMapStorage<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.
-
-