Klasse AdminInspectionRepository

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

public final class AdminInspectionRepository extends Object
Provides read-only administrative projections over audit and transaction journals.
  • Konstruktordetails

    • AdminInspectionRepository

      public AdminInspectionRepository(Database database)
      Creates the inspection repository.
      Parameter:
      database - database connection provider
  • Methodendetails

    • findTransaction

      public Optional<TransactionInspection> findTransaction(UUID id) throws SQLException
      Finds a transaction in any supported journal.
      Parameter:
      id - transaction or payment identifier
      Gibt zurück:
      normalized inspection when present
      Löst aus:
      SQLException - when a journal query fails
    • findAudit

      public List<AuditEntry> findAudit(UUID targetId, int limit) throws SQLException
      Lists newest audit entries for an exact target identifier.
      Parameter:
      targetId - target identifier
      limit - maximum rows
      Gibt zurück:
      newest entries first
      Löst aus:
      SQLException - when the query fails