Package studio.magemonkey.divinity.data
Class DivinityUserData
java.lang.Object
studio.magemonkey.codex.data.IDataHandler<Divinity,DivinityUser>
studio.magemonkey.divinity.data.DivinityUserData
public class DivinityUserData
extends studio.magemonkey.codex.data.IDataHandler<Divinity,DivinityUser>
-
Field Summary
Fields inherited from class studio.magemonkey.codex.data.IDataHandler
COL_USER_LAST_ONLINE, COL_USER_NAME, COL_USER_UUID, con, dataType, gson, lastLive, plugin, TABLE_USERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddestroy()protected LinkedHashMap<String, String> protected LinkedHashMap<String, String> getColumnsToSave(DivinityUser user) protected Function<ResultSet, DivinityUser> static DivinityUserDatagetInstance(Divinity plugin) protected com.google.gson.GsonBuilderregisterAdapters(com.google.gson.GsonBuilder builder) Methods inherited from class studio.magemonkey.codex.data.IDataHandler
addColumn, addData, addUser, createTable, deleteData, deleteUser, execute, getConnection, getData, getDatas, getUser, getUser, getUser, getUsers, hasColumn, hasTable, isUserExists, onTableCreate, purge, removeColumn, renameTable, saveData, saveUser, setup, shutdown
-
Constructor Details
-
DivinityUserData
- Throws:
SQLException
-
-
Method Details
-
getInstance
- Throws:
SQLException
-
destroy
public static void destroy() -
registerAdapters
@NotNull protected com.google.gson.GsonBuilder registerAdapters(@NotNull com.google.gson.GsonBuilder builder) - Overrides:
registerAdaptersin classstudio.magemonkey.codex.data.IDataHandler<Divinity,DivinityUser>
-
getColumnsToCreate
- Specified by:
getColumnsToCreatein classstudio.magemonkey.codex.data.IDataHandler<Divinity,DivinityUser>
-
getColumnsToSave
- Specified by:
getColumnsToSavein classstudio.magemonkey.codex.data.IDataHandler<Divinity,DivinityUser>
-
getFunctionToUser
- Specified by:
getFunctionToUserin classstudio.magemonkey.codex.data.IDataHandler<Divinity,DivinityUser>
-