Klasse HomeProtectionRepository

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

public final class HomeProtectionRepository extends Object
Builds complete home-authorization cache snapshots from normalized SQLite state.
  • Konstruktordetails

    • HomeProtectionRepository

      public HomeProtectionRepository(Database database)
      Creates the repository.
      Parameter:
      database - database owner
  • Methodendetails

    • loadAll

      public List<HomeProtectionSnapshot> loadAll() throws SQLException
      Loads every managed region and all currently effective home-authorized identities.
      Gibt zurück:
      immutable cache entries
      Löst aus:
      SQLException - when persistence fails
    • loadAll

      public List<HomeProtectionSnapshot> loadAll(int maximumRegions, int maximumAuthorizationLinks) throws SQLException
      Loads a complete snapshot while refusing data sets above configured safety ceilings.

      No partial result is returned. All related tables are read inside one SQLite transaction so authorization data cannot represent different database moments.

      Parameter:
      maximumRegions - maximum managed regions accepted
      maximumAuthorizationLinks - maximum member, explicit-home, and rental links accepted
      Gibt zurück:
      immutable complete cache entries
      Löst aus:
      SQLException - when persistence fails or a safety ceiling is exceeded