Klasse HomeProtectionRepository
java.lang.Object
de.delinkedde.areashopreborn.persistence.HomeProtectionRepository
Builds complete home-authorization cache snapshots from normalized SQLite state.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
-
Konstruktordetails
-
HomeProtectionRepository
Creates the repository.- Parameter:
database- database owner
-
-
Methodendetails
-
loadAll
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 acceptedmaximumAuthorizationLinks- 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
-