Klasse ClassLevelDao
java.lang.Object
de.delinkedde.mobarenareborn.persistence.ClassLevelDao
Data access for the
class_levels table.
Provides loading all of a player's class progress and upserting a single class's progress.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibung@NotNull Map<String, ClassProgress> Loads all class progress for a player.voidsave(@NotNull UUID uuid, @NotNull ClassProgress progress) Inserts or updates a single class's progress for a player.
-
Konstruktordetails
-
ClassLevelDao
- Parameter:
database- the database to read from and write to
-
-
Methodendetails
-
load
@NotNull public @NotNull Map<String,ClassProgress> load(@NotNull @NotNull UUID uuid) throws SQLException Loads all class progress for a player.- Parameter:
uuid- the player's unique id- Gibt zurück:
- a map of class identifier to progress; empty if the player has none
- Löst aus:
SQLException- if the query fails
-
save
public void save(@NotNull @NotNull UUID uuid, @NotNull @NotNull ClassProgress progress) throws SQLException Inserts or updates a single class's progress for a player.- Parameter:
uuid- the player's unique idprogress- the progress to persist- Löst aus:
SQLException- if the statement fails
-