atavism.agis.database
Class ItemDatabase
java.lang.Object
atavism.agis.database.ItemDatabase
public class ItemDatabase
- extends java.lang.Object
Contains functions for reading and writing item related content information to/from
the content database.
- Author:
- Andrew Harrison
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
queries
protected static Queries queries
ITEM_TABLE
public static final java.lang.String ITEM_TABLE
- See Also:
- Constant Field Values
ItemDatabase
public ItemDatabase(boolean keepAlive)
loadItemTemplates
public java.util.ArrayList<Template> loadItemTemplates(java.util.LinkedList<java.lang.Integer> storeItems)
- Loads in the item templates from the content database.
- Returns:
loadMerchantTables
public java.util.HashMap<java.lang.Integer,MerchantTable> loadMerchantTables()
loadMerchantItems
public void loadMerchantItems(MerchantTable mTbl)
loadCraftingRecipes
public java.util.HashMap<java.lang.Integer,CraftingRecipe> loadCraftingRecipes()
getCharacterOids
public java.util.List<java.lang.Long> getCharacterOids()
- Searches through the objstore table to get the oids of all player
characters.
close
public void close()
- Having too many connection errors, so adding this function to help cope with it