Interface SettingSQL

All Superinterfaces:
SQL
All Known Subinterfaces:
SettingH2, SettingMariaDB, SettingMySQL, SettingPostgreSQL, SettingSQLite

public interface SettingSQL extends SQL
SQL interface for player setting data operations in FlectonePulse. Defines database queries for managing player settings and preferences.
Since:
1.6.0
  • Method Summary

    Modifier and Type
    Method
    Description
    findByPlayer(int playerId)
    Finds all settings for a player.
    default void
    upsert(int playerId, String type, String value)
    Inserts or updates a player setting.
  • Method Details

    • findByPlayer

      Map<String,String> findByPlayer(int playerId)
      Finds all settings for a player.
      Parameters:
      playerId - the player ID
      Returns:
      map of setting types to their values
    • upsert

      default void upsert(int playerId, String type, String value)
      Inserts or updates a player setting.
      Parameters:
      playerId - the player ID
      type - the setting type
      value - the setting value
      Throws:
      UnsupportedDatabaseOperationException - if not overridden by a dialect-specific implementation