- 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 Implementing Classes:
public interface MapStorage<V extends AbstractEntity,M>Implementation of this interface interacts with a persistence storage storing various entities, e.g. users, realms.
MapKeycloakTransaction<V,M> createTransaction(KeycloakSession session)Creates a
MapKeycloakTransactionobject 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.
- See description. Never returns