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 JpaModelCriteriaBuildercreateJpaModelCriteriaBuilder()booleandelete(String key)Instructs this storage to delete a value associated with the identifierkeyfrom the underlying store upon commit.protected MapRootAuthenticationSessionEntitymapToEntityDelegate(JpaRootAuthenticationSessionEntity original)javax.persistence.criteria.Selection<JpaRootAuthenticationSessionEntity>selectCbConstruct(javax.persistence.criteria.CriteriaBuilder cb, javax.persistence.criteria.Root<JpaRootAuthenticationSessionEntity> root)voidsetEntityVersion(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:MapStorageInstructs this storage to delete a value associated with the identifierkeyfrom the underlying store upon commit.- Specified by:
deletein interfaceMapStorage<MapRootAuthenticationSessionEntity,RootAuthenticationSessionModel>- Overrides:
deletein classJpaMapStorage<JpaRootAuthenticationSessionEntity,MapRootAuthenticationSessionEntity,RootAuthenticationSessionModel>- Parameters:
key- identifier of a value- Returns:
- Returns
trueif the object has been deleted or result cannot be determined,falseotherwise.
-
-