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)
Adds a shop to the database
|
Object |
get(int id,
Database.ShopInfo shopInfo) |
abstract Connection |
getConnection() |
int |
getHighestID() |
int |
getNextFreeID() |
void |
removeShop(Shop shop)
Remove a shop from the database
|
public ShopChest plugin
public Connection connection
public Database(ShopChest plugin)
public abstract Connection getConnection()
public int getNextFreeID()
public int getHighestID()
public void removeShop(Shop shop)
shop
- Shop to removepublic Object get(int id, Database.ShopInfo shopInfo)
id
- ID of the shopshopInfo
- What to getpublic void addShop(Shop shop)
shop
- Shop to addCopyright © 2016. All rights reserved.