Class SqlitePlayerProfileRepository

java.lang.Object
fr.luc.crcore.player.InMemoryPlayerProfileRepository
fr.luc.crcore.player.SqlitePlayerProfileRepository
All Implemented Interfaces:
Repository<PlayerProfile>, PlayerProfileRepository

public class SqlitePlayerProfileRepository extends InMemoryPlayerProfileRepository
Implémentation PlayerProfileRepository adossée à SQLite.

Mêmes principes que SqliteTeamRepository : cache mémoire en write-through, schéma créé à l'init, état rechargé depuis la DB au constructeur.

Schéma (2 tables) :

  • crcore_player_profiles — une ligne par joueur
  • crcore_player_scores — une ligne par (joueur, score nommé)