Interface TimeSQL
- All Superinterfaces:
SQL
- All Known Subinterfaces:
TimeH2, TimeMariaDB, TimeMySQL, TimePostgreSQL, TimeSQLite
SQL interface for player playtime data operations in FlectonePulse.
- Since:
- 1.9.0
-
Method Summary
Modifier and TypeMethodDescriptionfindByPlayer(int playerId) getAllPlayTimes(int limit, int offset) intvoidupdateLastSeen(double last, double total, int playerId) default voidupsert(int playerId, long first, long last, long total, int sessions) Inserts a new playtime record or updates an existing one.
-
Method Details
-
updateLastSeen
void updateLastSeen(double last, double total, int playerId) -
getTotalCount
int getTotalCount() -
findByPlayer
-
getAllPlayTimes
-
upsert
default void upsert(int playerId, long first, long last, long total, int sessions) Inserts a new playtime record or updates an existing one.- Parameters:
playerId- the player IDfirst- the timestamp of first join (only used if record is new)last- the timestamp of last seentotal- the total playtime in secondssessions- the number of sessions- Throws:
UnsupportedDatabaseOperationException- if not overridden
-