Class SqlitePlayerProfileRepository

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

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

Mêmes principes que

invalid reference
fr.luc.crcore.team.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é)