public class MapStorageUtils extends Object
Constructor and Description |
---|
MapStorageUtils() |
Modifier and Type | Method and Description |
---|---|
static <K,V extends AbstractEntity<K>> |
registerEntityForChanges(MapKeycloakTransaction<K,V,?> tx,
V origEntity)
Returns a deep clone of an entity.
|
public static <K,V extends AbstractEntity<K>> V registerEntityForChanges(MapKeycloakTransaction<K,V,?> tx, V origEntity)
Usually used before giving an entity from a source back to the caller, to prevent changing it directly in the data store, but to keep transactional properties.
K
- V
- tx
- Transaction that is checked for existence of the entity beforeorigEntity
- Copyright © 2021 JBoss by Red Hat. All rights reserved.