Klasse DisplayRepository
java.lang.Object
de.delinkedde.areashopreborn.persistence.DisplayRepository
Stores persistent estate displays independently from their Bukkit rendering adapter.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic final recordComplete render data for one persistent display. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintcountByRegion(UUID regionId) Counts displays without materializing their rows.booleanDeletes a display by identifier.findAll()Lists every registered display for startup refresh and integrity checks.Loads displays together with their regions and effective listings in one SQL query.findAllDetails(int limit) Loads at most a bounded number of display snapshots in one joined query.Finds the display registered at an exact block position.findByRegion(UUID regionId) Lists all displays associated with a region.findFirstByRegion(UUID regionId) Finds the stable first display of a region for display-based teleportation.voidinsert(EstateDisplay display) Inserts a display while enforcing one display per block position.
-
Konstruktordetails
-
DisplayRepository
Creates the display repository.- Parameter:
database- database connection provider
-
-
Methodendetails
-
insert
Inserts a display while enforcing one display per block position.- Parameter:
display- display to insert- Löst aus:
SQLException- when the position is occupied or persistence fails
-
findAt
Finds the display registered at an exact block position.- Parameter:
worldKey- Bukkit world keyx- block X coordinatey- block Y coordinatez- block Z coordinate- Gibt zurück:
- display when registered
- Löst aus:
SQLException- when the query fails
-
findByRegion
Lists all displays associated with a region.- Parameter:
regionId- region identifier- Gibt zurück:
- registered displays
- Löst aus:
SQLException- when the query fails
-
countByRegion
Counts displays without materializing their rows.- Parameter:
regionId- region identifier- Gibt zurück:
- registered display count
- Löst aus:
SQLException- when the query fails
-
findFirstByRegion
Finds the stable first display of a region for display-based teleportation.- Parameter:
regionId- region identifier- Gibt zurück:
- first registered display, if present
- Löst aus:
SQLException- when the query fails
-
findAll
Lists every registered display for startup refresh and integrity checks.- Gibt zurück:
- all displays
- Löst aus:
SQLException- when the query fails
-
findAllDetails
Loads displays together with their regions and effective listings in one SQL query.This is intentionally complete because omitting a display would also omit its synchronous break/interact protection. The join replaces the former two queries per display.
- Gibt zurück:
- immutable display render snapshots
- Löst aus:
SQLException- when the query fails
-
findAllDetails
Loads at most a bounded number of display snapshots in one joined query.- Parameter:
limit- maximum rows returned- Gibt zurück:
- immutable display render snapshots
- Löst aus:
SQLException- when the query fails
-
delete
Deletes a display by identifier.- Parameter:
displayId- display identifier- Gibt zurück:
- whether a display was deleted
- Löst aus:
SQLException- when deletion fails
-