# Uses of Class de.epiceric.shopchest.utils.Callback (ShopChest 1.12 API)
Date: 2017-06-08

## Uses of Class
de.epiceric.shopchest.utils.Callback

Packages that use Callback
de.epiceric.shopchest.sql
de.epiceric.shopchest.utils

### Uses of Callback in de.epiceric.shopchest.sql

Methods in de.epiceric.shopchest.sql with parameters of type Callback
`void` Database.`addShop(Shop shop, Callback callback)` Adds a shop to the database
`void` Database.`connect(Callback callback)` (Re-)Connects to the the database and initializes it.
`void` Database.`getLastLogout(org.bukkit.entity.Player player, Callback callback)` Get the last logout of a player
`void` Database.`getRevenue(org.bukkit.entity.Player player, long logoutTime, Callback callback)` Get the revenue a player got while he was offline
`void` Database.`getShops(boolean showConsoleMessages, Callback callback)` Get all shops from the database
`void` Database.`isShop(int id, Callback callback)`
`void` Database.`logEconomy(org.bukkit.entity.Player executor, org.bukkit.inventory.ItemStack product, org.bukkit.OfflinePlayer vendor, Shop.ShopType shopType, org.bukkit.Location location, double price, ShopBuySellEvent.Type type, Callback callback)` Log an economy transaction to the database
`void` Database.`logLogout(org.bukkit.entity.Player player, long timestamp, Callback callback)` Log a logout to the database
`void` Database.`removeShop(Shop shop, Callback callback)` Remove a shop from the database

### Uses of Callback in de.epiceric.shopchest.utils

Methods in de.epiceric.shopchest.utils with parameters of type Callback
`void` ShopUtils.`addShop(Shop shop, boolean addToDatabase, Callback callback)` Add a shop
`void` ShopUtils.`reloadShops(boolean reloadConfig, boolean showConsoleMessages, Callback callback)` Reload the shops
`void` ShopUtils.`removeShop(Shop shop, boolean removeFromDatabase, Callback callback)` Remove a shop