Class RemoveModelMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<de.hybris.platform.core.PK,ItemModel>
de.hybris.platform.sap.core.configuration.datahub.RemoveModelMap
- All Implemented Interfaces:
Serializable,Cloneable,Map<de.hybris.platform.core.PK,ItemModel>
HashMap which holds models to be deleted.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddModelToBeDeleted(de.hybris.platform.core.PK pk, ItemModel model) Add a model with primary key (pk) to the HashMap.voiddeleteModel(de.hybris.platform.core.PK pk) Delete a model in the HashMap.get alls models which has to be deleted.Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
RemoveModelMap
public RemoveModelMap()
-
-
Method Details
-
addModelToBeDeleted
Add a model with primary key (pk) to the HashMap.- Parameters:
pk- primary key to be setmodel- itemModel to be set
-
getModelsToBeDeleted
get alls models which has to be deleted.- Returns:
- Map of models which will be deleted
-
deleteModel
public void deleteModel(de.hybris.platform.core.PK pk) Delete a model in the HashMap.- Parameters:
pk- primary key to be set
-