Class SingleUseObjectMapStorage<K>
java.lang.Object
org.keycloak.models.map.storage.chm.ConcurrentHashMapStorage<K,MapSingleUseObjectEntity,SingleUseObjectValueModel,CrudOperations<MapSingleUseObjectEntity,SingleUseObjectValueModel>>
    
org.keycloak.models.map.storage.chm.SingleUseObjectMapStorage<K>
- All Implemented Interfaces:
- KeycloakTransaction,- HasRealmId,- MapStorage<MapSingleUseObjectEntity,- SingleUseObjectValueModel> 
public class SingleUseObjectMapStorage<K>
extends ConcurrentHashMapStorage<K,MapSingleUseObjectEntity,SingleUseObjectValueModel,CrudOperations<MapSingleUseObjectEntity,SingleUseObjectValueModel>>    
- Author:
- Martin Kanis
- 
Nested Class SummaryNested classes/interfaces inherited from class org.keycloak.models.map.storage.chm.ConcurrentHashMapStorageConcurrentHashMapStorage.MapOperation, ConcurrentHashMapStorage.MapTaskWithValue, ConcurrentHashMapStorage.TaskKey, ConcurrentHashMapStorage.TaskMap
- 
Field SummaryFields inherited from class org.keycloak.models.map.storage.chm.ConcurrentHashMapStorageactive, cloner, fieldPredicates, keyConverter, map, realmIdEntityField, rollback, tasks
- 
Constructor SummaryConstructorsConstructorDescriptionSingleUseObjectMapStorage(CrudOperations<MapSingleUseObjectEntity, SingleUseObjectValueModel> map, StringKeyConverter<K> keyConverter, DeepCloner cloner, Map<SearchableModelField<? super SingleUseObjectValueModel>, MapModelCriteriaBuilder.UpdatePredicatesFunc<K, MapSingleUseObjectEntity, SingleUseObjectValueModel>> fieldPredicates) 
- 
Method SummaryModifier and TypeMethodDescriptioncreate(MapSingleUseObjectEntity value) Instructs this storage to add a new value into the underlying store on commit in the context of the current transaction.Methods inherited from class org.keycloak.models.map.storage.chm.ConcurrentHashMapStorageaddTask, begin, commit, delete, delete, exists, getCount, getRealmId, getRollbackOnly, isActive, read, read, registerEntityForChanges, rollback, setRealmId, setRollbackOnly, updateIfChangedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.models.map.storage.MapStorageexists
- 
Constructor Details- 
SingleUseObjectMapStoragepublic SingleUseObjectMapStorage(CrudOperations<MapSingleUseObjectEntity, SingleUseObjectValueModel> map, StringKeyConverter<K> keyConverter, DeepCloner cloner, Map<SearchableModelField<? super SingleUseObjectValueModel>, MapModelCriteriaBuilder.UpdatePredicatesFunc<K, MapSingleUseObjectEntity, SingleUseObjectValueModel>> fieldPredicates) 
 
- 
- 
Method Details- 
createDescription copied from interface:MapStorageInstructs this storage to add a new value into the underlying store on commit in the context of the current transaction.Updates to the returned instances of Vwould be visible in the current transaction and will propagate into the underlying store upon commit. The ID of the entity passed in the parameter might change to a different value in the returned value if the underlying storage decided this was necessary. If the ID of the entity was null before, it will be set on the returned value.- Specified by:
- createin interface- MapStorage<MapSingleUseObjectEntity,- SingleUseObjectValueModel> 
- Overrides:
- createin class- ConcurrentHashMapStorage<K,- MapSingleUseObjectEntity, - SingleUseObjectValueModel, - CrudOperations<MapSingleUseObjectEntity, - SingleUseObjectValueModel>> 
- Parameters:
- value- the value
- Returns:
- Entity representing the valuein the store. It may or may not be the same instance asvalue.
 
 
-