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
|
void |
connect()
(Re-)Connects to the the database and initializes it.
|
void |
disconnect()
Closes the connection 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 void connect()
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 addpublic void disconnect()
Copyright © 2016. All rights reserved.