Interface ExternalIdUpsertPreprocessor


public interface ExternalIdUpsertPreprocessor
This optional preprocessor is called in ExternalIdNotes before an update is committed.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    upsert(ExternalId extId, Class<? extends AccountsUpdate> accountsUpdateImplClz)
    Called when inserting or updating an external ID.
  • Method Details

    • upsert

      void upsert(ExternalId extId, Class<? extends AccountsUpdate> accountsUpdateImplClz)
      Called when inserting or updating an external ID. ExternalId.blobId() is set. The upsert can be blocked by throwing StorageException, e.g. when a precondition or preparatory work fails.
      Parameters:
      extId - - the external ID to upsert
      accountsUpdateImplClz - - the AccountsUpdate implementation class that is used to update the storage to which the ExternalId is upsert.