Constructor and Description |
---|
Database(Plan plugin)
Super constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
clean() |
abstract void |
close() |
abstract HashMap<String,Integer> |
getCommandUse() |
String |
getConfigName() |
org.bukkit.configuration.ConfigurationSection |
getConfigSection() |
abstract List<org.bukkit.Location> |
getLocations(String userId,
HashMap<String,org.bukkit.World> worlds) |
abstract String |
getName() |
abstract Set<UUID> |
getSavedUUIDs() |
abstract int |
getUserId(String uuid) |
abstract int |
getVersion() |
abstract void |
giveUserDataToProcessors(UUID uuid,
Collection<DBCallableProcessor> processors) |
void |
giveUserDataToProcessors(UUID uuid,
DBCallableProcessor... processors) |
boolean |
init()
Initiates the database.
|
abstract boolean |
removeAccount(String uuid) |
abstract boolean |
removeAllData() |
abstract void |
saveCommandUse(HashMap<String,Integer> data) |
abstract void |
saveMultipleUserData(List<UserData> data) |
abstract void |
saveUserData(UUID uuid,
UserData data) |
abstract void |
setVersion(int version) |
abstract boolean |
wasSeenBefore(UUID uuid) |
public Database(Plan plugin)
plugin
- current instance of Plan.public boolean init()
public void giveUserDataToProcessors(UUID uuid, DBCallableProcessor... processors) throws SQLException
uuid
- processors
- SQLException
public abstract void giveUserDataToProcessors(UUID uuid, Collection<DBCallableProcessor> processors) throws SQLException
uuid
- processors
- SQLException
public abstract void saveUserData(UUID uuid, UserData data) throws SQLException
uuid
- data
- SQLException
public abstract void saveMultipleUserData(List<UserData> data) throws SQLException
data
- SQLException
public abstract boolean wasSeenBefore(UUID uuid)
uuid
- public abstract void clean()
public abstract String getName()
public String getConfigName()
public org.bukkit.configuration.ConfigurationSection getConfigSection()
public abstract int getVersion() throws SQLException
SQLException
public abstract void setVersion(int version) throws SQLException
version
- SQLException
public abstract void close() throws SQLException
SQLException
public abstract boolean removeAccount(String uuid) throws SQLException
uuid
- SQLException
public abstract boolean removeAllData() throws SQLException
SQLException
public abstract void saveCommandUse(HashMap<String,Integer> data) throws SQLException, NullPointerException
data
- SQLException
NullPointerException
public abstract Set<UUID> getSavedUUIDs() throws SQLException
SQLException
public abstract HashMap<String,Integer> getCommandUse() throws SQLException
SQLException
public abstract int getUserId(String uuid) throws SQLException
uuid
- SQLException
public abstract List<org.bukkit.Location> getLocations(String userId, HashMap<String,org.bukkit.World> worlds) throws SQLException
userId
- worlds
- SQLException
Copyright © 2017. All rights reserved.