Class FColorDao
java.lang.Object
net.flectone.pulse.data.database.dao.FColorDao
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents colors information retrieved from the database. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondatabase()Gets the database instance associated with this DAO.voidDeletes the player's color preferences from the database.Map<FColor.Type, Set<FColor>> Loads the player's color preferences from the database.voidsqlClass()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
-
FColorDao
-
-
Method Details
-
database
-
sqlClass
-
save
-
delete
Deletes the player's color preferences from the database.- Parameters:
fPlayer- the player whose colors to delete
-
load
Loads the player's color preferences from the database.- Parameters:
fPlayer- the player whose colors to load- Returns:
- new FPlayer with colors
-