Modifier and Type | Class and Description |
---|---|
static class |
Database.DatabaseType |
static class |
Database.ShopInfo |
Modifier and Type | Field and Description |
---|---|
Connection |
connection |
ShopChest |
plugin |
Modifier and Type | Method and Description |
---|---|
void |
addShop(Shop shop,
int reconnectAttempts)
Adds a shop to the database
|
Object |
get(int id,
Database.ShopInfo shopInfo,
int reconnectAttempts) |
abstract Connection |
getConnection() |
int |
getHighestID(int reconnectAttempts) |
int |
getNextFreeID(int reconnectAttempts) |
void |
removeShop(Shop shop,
int reconnectAttempts)
Remove a shop from the database
|
public ShopChest plugin
public Connection connection
public Database(ShopChest plugin)
public abstract Connection getConnection()
public int getNextFreeID(int reconnectAttempts)
reconnectAttempts
- Attempts to reconnect to the database if not connectedpublic int getHighestID(int reconnectAttempts)
public void removeShop(Shop shop, int reconnectAttempts)
shop
- Shop to removepublic Object get(int id, Database.ShopInfo shopInfo, int reconnectAttempts)
id
- ID of the shopshopInfo
- What to getpublic void addShop(Shop shop, int reconnectAttempts)
shop
- Shop to addCopyright © 2016. All rights reserved.