Several methods are available for updating records. All of them accept a formatted record or a context instance and a format name, and work the same way as the addRecord() method (see Adding records). The JDBCStore service allows the application to use the updateRecord() method, which updates the specified record (a record identifier is passed as the first argument) with the data provided as the second argument. An SQL exception is raised if there are no records to update in the STORE table.
A forwarding application can decide to update a record with a new record mark if the record has already been retrieved for forwarding and there is no positive response from the host confirming its execution. The record mark can then be set to potentiallyDuplicated, so that the next time the forwarding application retrieves this record, it will send it to execution informing the host that the operation could have been previously executed.
See the JDBCStore code example.