Klasse LegacyImportRepository
java.lang.Object
de.delinkedde.areashopreborn.persistence.LegacyImportRepository
Reads the durable idempotency history of completed legacy AreaShop imports.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic final recordImmutable completed legacy import marker. -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungLegacyImportRepository(Database database) Creates a legacy history repository. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungFinds the previous successful import of a relative source file.voidinsert(LegacyResolvedImport legacy, UUID actorId) Inserts a complete resolved legacy parcel and its provenance atomically.
-
Konstruktordetails
-
LegacyImportRepository
Creates a legacy history repository.- Parameter:
database- SQLite connection provider
-
-
Methodendetails
-
find
public Optional<LegacyImportRepository.LegacyImportEntry> find(String sourceKey) throws SQLException 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
Inserts a complete resolved legacy parcel and its provenance atomically.- Parameter:
legacy- validated import bundleactorId- administrator performing the migration- Löst aus:
SQLException- when any row cannot be inserted
-