Constructor and Description |
---|
SQLDB(Plan plugin,
boolean supportsModification) |
getConfigName, getConfigSection, getName, giveUserDataToProcessors
public SQLDB(Plan plugin, boolean supportsModification)
plugin
- supportsModification
- public void startConnectionPingTask(Plan plugin) throws IllegalArgumentException, IllegalStateException
plugin
- IllegalArgumentException
IllegalStateException
public boolean init()
Database
public boolean checkConnection() throws SQLException
SQLException
public Table[] getAllTables()
public Table[] getAllTablesInRemoveOrder()
public abstract Connection getNewConnection()
public void close() throws SQLException
close
in class Database
SQLException
public int getVersion() throws SQLException
getVersion
in class Database
SQLException
public void setVersion(int version) throws SQLException
setVersion
in class Database
version
- SQLException
public boolean wasSeenBefore(UUID uuid)
wasSeenBefore
in class Database
uuid
- public int getUserId(String uuid) throws SQLException
getUserId
in class Database
uuid
- SQLException
public Set<UUID> getSavedUUIDs() throws SQLException
getSavedUUIDs
in class Database
SQLException
@Deprecated public void saveCommandUse(HashMap<String,Integer> commandUse) throws SQLException, NullPointerException
saveCommandUse
in class Database
commandUse
- SQLException
NullPointerException
@Deprecated public HashMap<String,Integer> getCommandUse() throws SQLException
getCommandUse
in class Database
SQLException
public boolean removeAccount(String uuid) throws SQLException
removeAccount
in class Database
uuid
- SQLException
public void giveUserDataToProcessors(UUID uuid, Collection<DBCallableProcessor> processors) throws SQLException
giveUserDataToProcessors
in class Database
uuid
- processors
- SQLException
@Deprecated public List<org.bukkit.Location> getLocations(String userId, HashMap<String,org.bukkit.World> worlds) throws SQLException
getLocations
in class Database
SQLException
@Deprecated public List<org.bukkit.Location> getLocations(int userId, HashMap<String,org.bukkit.World> worlds) throws SQLException
userId
- worlds
- SQLException
public void saveMultipleUserData(List<UserData> data) throws SQLException
saveMultipleUserData
in class Database
data
- SQLException
public void saveUserData(UUID uuid, UserData data) throws SQLException
saveUserData
in class Database
uuid
- data
- SQLException
@Deprecated public void saveAdditionalLocationsList(int userId, List<org.bukkit.Location> locations) throws SQLException
userId
- locations
- SQLException
@Deprecated public void saveNickList(int userId, Set<String> names, String lastNick) throws SQLException
userId
- names
- lastNick
- SQLException
@Deprecated public void saveSessionList(int userId, List<SessionData> sessions) throws SQLException
userId
- sessions
- SQLException
@Deprecated public void savePlayerKills(int userId, List<KillData> kills) throws SQLException
userId
- kills
- SQLException
@Deprecated public void saveIPList(int userId, Set<InetAddress> ips) throws SQLException
userId
- ips
- SQLException
@Deprecated public void saveGMTimes(int userId, Map<org.bukkit.GameMode,Long> gamemodeTimes) throws SQLException
userId
- gamemodeTimes
- SQLException
public boolean removeAllData()
removeAllData
in class Database
public boolean supportsModification()
public Connection getConnection()
public UsersTable getUsersTable()
public SessionsTable getSessionsTable()
public GMTimesTable getGmTimesTable()
public KillsTable getKillsTable()
public LocationsTable getLocationsTable()
public IPsTable getIpsTable()
public NicknamesTable getNicknamesTable()
public CommandUseTable getCommandUseTable()
Copyright © 2017. All rights reserved.