Package org.datanucleus.flush
Class MapRemoveOperation<K,V>
java.lang.Object
org.datanucleus.flush.MapRemoveOperation<K,V>
- All Implemented Interfaces:
Operation
,SCOOperation
Remove operation for a map where we have a backing store.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMapRemoveOperation
(DNStateManager sm, int fieldNum, K key, V val) MapRemoveOperation
(DNStateManager sm, MapStore store, K key, V val) -
Method Summary
Modifier and TypeMethodDescriptiongetKey()
Accessor for the key being removed.Accessor for the metadata for the member that this operation is for.Accessor for StateManager of the object that this operation is performed on.getStore()
Accessor for the backing store for this operation.getValue()
Accessor for the value being removed for this key (if known).void
perform()
Perform the remove(Object) operation on the specified container.toString()
-
Field Details
-
sm
-
fieldNumber
final int fieldNumber -
store
-
key
The key to remove. -
value
The value to remove.
-
-
Constructor Details
-
MapRemoveOperation
-
MapRemoveOperation
-
-
Method Details
-
getMemberMetaData
Description copied from interface:SCOOperation
Accessor for the metadata for the member that this operation is for.- Specified by:
getMemberMetaData
in interfaceSCOOperation
- Returns:
- The member metadata
-
getKey
Accessor for the key being removed.- Returns:
- Key being removed
-
getValue
Accessor for the value being removed for this key (if known).- Returns:
- Value being removed if known
-
perform
public void perform()Perform the remove(Object) operation on the specified container. -
getStore
Description copied from interface:SCOOperation
Accessor for the backing store for this operation.- Specified by:
getStore
in interfaceSCOOperation
- Returns:
- The backing store
-
getStateManager
Description copied from interface:Operation
Accessor for StateManager of the object that this operation is performed on.- Specified by:
getStateManager
in interfaceOperation
- Returns:
- StateManager
-
toString
-