Interface FColorSQL
- All Superinterfaces:
SQL
- All Known Subinterfaces:
FColorH2, FColorMariaDB, FColorMySQL, FColorPostgreSQL, FColorSQLite
SQL interface for player color data operations in FlectonePulse.
Defines database queries for managing player color configurations.
- Since:
- 0.9.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidPerforms batch upsert operations for player color configurations.voiddeleteFColors(int playerId) voiddeleteFColors(int playerId, String type) voiddeleteFColors(int playerId, String type, List<Integer> numbers) findFColorIdsByNames(org.jdbi.v3.core.Handle handle, List<String> names) findFColors(int playerId) default voidinsertFColorsIfAbsent(List<String> names) Inserts color names into the database if they do not already exist.
-
Method Details
-
findFColors
-
findFColorIdsByNames
-
deleteFColors
void deleteFColors(int playerId) -
deleteFColors
-
deleteFColors
-
insertFColorsIfAbsent
Inserts color names into the database if they do not already exist.- Parameters:
names- list of color names to insert if absent- Throws:
UnsupportedDatabaseOperationException- if not overridden
-
batchUpsertPlayerFColors
default void batchUpsertPlayerFColors(int playerId, List<Integer> numbers, List<Integer> fcolorIds, String type) Performs batch upsert operations for player color configurations. Inserts or updates multiple player color entries in a single operation, associating color numbers with their corresponding color IDs and type.- Parameters:
playerId- the unique identifier of the playernumbers- list of color slot numbersfcolorIds- list of color identifiers corresponding to each numbertype- the classification type of the colors- Throws:
UnsupportedDatabaseOperationException- if not overridden
-