Package org.pipservices3.data
Interface IPartialUpdater<T,K>
- All Known Implementing Classes:
IdentifiableFilePersistence
,IdentifiableMemoryPersistence
public interface IPartialUpdater<T,K>
Interface for data processing components to update data items partially.
-
Method Summary
Modifier and TypeMethodDescriptionupdatePartially
(String correlationId, K id, org.pipservices3.commons.data.AnyValueMap data) Updates only few selected fields in a data item.
-
Method Details
-
updatePartially
T updatePartially(String correlationId, K id, org.pipservices3.commons.data.AnyValueMap data) throws org.pipservices3.commons.errors.ApplicationException Updates only few selected fields in a data item.- Parameters:
correlationId
- (optional) transaction id to trace execution through call chain.id
- an id of data item to be updated.data
- a map with fields to be updated.- Returns:
- updated item.
- Throws:
org.pipservices3.commons.errors.ApplicationException
-