Interface for data processing components that can create, update and delete data items.
Description
The IWriter interface is used by data processng components that can create, update and delete data items.
Instance methods
create
Creates a data item.
create(correlation_id: Optional[str], item: T): T
- correlation_id: Optional[str] - (optional) transaction id used to trace execution through the call chain.
- item: T - item to be created.
- returns: T - created item
update
Updates a data item.
update(correlation_id: Optional[str], item: T): T
- correlation_id: Optional[str] - (optional) transaction id used to trace execution through the call chain.
- item: T - item to be updated.
- returns: T - updated item
delete_by_id
Updates a data item.
delete_by_id(correlation_id: Optional[str], id: Any): T
- correlation_id: Optional[str] - (optional) transaction id used to trace execution through the call chain.
- id: Any - id of the item to be deleted
- returns: T - deleted item.