Package org.keycloak.models.map.storage
Interface MapStorage<V extends AbstractEntity,M>
- 
- Type Parameters:
- V- Type of the stored values that contains all the data stripped of session state. In other words, in the entities there are only IDs and mostly primitive types /- String, never references to- *Modelinstances. See the- Abstract*Entityclasses in this module.
- M- Type of the- *Modelcorresponding to the stored value, e.g.- UserModel. This is used for filtering via model fields in- ModelCriteriaBuilderwhich is necessary to abstract from physical layout and thus to support no-downtime upgrade.
 - All Known Subinterfaces:
- MapStorageWithAuth<V,M>
 - All Known Implementing Classes:
- ConcurrentHashMapStorage,- EmptyMapStorage,- FileMapStorage,- HotRodMapStorage,- SingleUseObjectConcurrentHashMapStorage,- SingleUseObjectHotRodMapStorage
 
 public interface MapStorage<V extends AbstractEntity,M>Implementation of this interface interacts with a persistence storage storing various entities, e.g. users, realms.- Author:
- hmlnarik
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description MapKeycloakTransaction<V,M>createTransaction(KeycloakSession session)Creates aMapKeycloakTransactionobject that tracks a new transaction related to this storage.
 
- 
- 
- 
Method Detail- 
createTransactionMapKeycloakTransaction<V,M> createTransaction(KeycloakSession session) Creates aMapKeycloakTransactionobject that tracks a new transaction related to this storage. In case of JPA or similar, the transaction object might be supplied by the container (via JTA) or shared same across storages accessing the same database within the same session; in other cases (e.g. plain map) a separate transaction handler might be created per each storage.- Returns:
- See description. Never returns null
 
 
- 
 
-