Klasse LegacyImportRepository

java.lang.Object
de.delinkedde.areashopreborn.persistence.LegacyImportRepository

public final class LegacyImportRepository extends Object
Reads the durable idempotency history of completed legacy AreaShop imports.
  • Konstruktordetails

    • LegacyImportRepository

      public LegacyImportRepository(Database database)
      Creates a legacy history repository.
      Parameter:
      database - SQLite connection provider
  • Methodendetails

    • find

      Finds the previous successful import of a relative source file.
      Parameter:
      sourceKey - normalized relative source key
      Gibt zurück:
      persisted history entry when this file was imported
      Löst aus:
      SQLException - when the query fails
    • insert

      public void insert(LegacyResolvedImport legacy, UUID actorId) throws SQLException
      Inserts a complete resolved legacy parcel and its provenance atomically.
      Parameter:
      legacy - validated import bundle
      actorId - administrator performing the migration
      Löst aus:
      SQLException - when any row cannot be inserted