public class LocationsTable extends Table
db, tableName, usingMySQL
Constructor and Description |
---|
LocationsTable(SQLDB db,
boolean usingMySQL) |
Modifier and Type | Method and Description |
---|---|
boolean |
createTable() |
List<org.bukkit.Location> |
getLocations(int userId,
HashMap<String,org.bukkit.World> worlds) |
boolean |
removeUserLocations(int userId) |
void |
saveAdditionalLocationsList(int userId,
List<org.bukkit.Location> locations) |
close, execute, getConnection, getTableName, getVersion, prepareStatement, removeAllData
public LocationsTable(SQLDB db, boolean usingMySQL)
db
- usingMySQL
- public boolean createTable()
createTable
in class Table
public boolean removeUserLocations(int userId)
userId
- public List<org.bukkit.Location> getLocations(int userId, HashMap<String,org.bukkit.World> worlds) throws SQLException
userId
- worlds
- SQLException
public void saveAdditionalLocationsList(int userId, List<org.bukkit.Location> locations) throws SQLException
userId
- locations
- SQLException
Copyright © 2017. All rights reserved.