Class SettingDAO
java.lang.Object
net.flectone.pulse.data.database.dao.SettingDAO
- All Implemented Interfaces:
BaseDAO<SettingSQL>
Data Access Object for player settings in FlectonePulse.
Handles saving and loading player preferences and configurations.
- Since:
- 1.6.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondatabase()Gets the database instance associated with this DAO.voidinsertOrUpdate(@NonNull FPlayer player, @NonNull String setting, @Nullable String value) Inserts or updates a specific boolean setting for a player.Loads all settings for a player.Class<? extends SettingSQL> sqlClass()Gets the SQL interface class for this DAO.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BaseDAO
getSQL, inTransaction, useCustomTransaction, useHandle, useTransaction, withHandle
-
Constructor Details
-
SettingDAO
-
-
Method Details
-
database
Description copied from interface:BaseDAOGets the database instance associated with this DAO.- Specified by:
databasein interfaceBaseDAO<SettingSQL>- Returns:
- the database instance
-
sqlClass
Description copied from interface:BaseDAOGets the SQL interface class for this DAO.- Specified by:
sqlClassin interfaceBaseDAO<SettingSQL>- Returns:
- the SQL interface class
-
load
Loads all settings for a player.- Parameters:
player- the player to load settings for- Returns:
- new FPlayer with settings
-
insertOrUpdate
-