Class SqlitePlayerProfileRepository
java.lang.Object
fr.luc.crcore.player.InMemoryPlayerProfileRepository
fr.luc.crcore.player.SqlitePlayerProfileRepository
- All Implemented Interfaces:
Repository<PlayerProfile>, PlayerProfileRepository
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 joueurcrcore_player_scores— une ligne par (joueur, score nommé)
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class InMemoryPlayerProfileRepository
findAll, findById
-
Constructor Details
-
SqlitePlayerProfileRepository
-
-
Method Details
-
save
- Specified by:
savein interfaceRepository<PlayerProfile>- Overrides:
savein classInMemoryPlayerProfileRepository
-
delete
- Specified by:
deletein interfaceRepository<PlayerProfile>- Overrides:
deletein classInMemoryPlayerProfileRepository
-