Atavism Version 2018.1AGIS API

atavism.agis.database
Class ItemDatabase

java.lang.Object
  extended by 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

Field Summary
static java.lang.String ITEM_TABLE
           
protected static Queries queries
           
 
Constructor Summary
ItemDatabase(boolean keepAlive)
           
 
Method Summary
 void close()
          Having too many connection errors, so adding this function to help cope with it
 java.util.List<java.lang.Long> getCharacterOids()
          Searches through the objstore table to get the oids of all player characters.
 java.util.HashMap<java.lang.Integer,CraftingRecipe> loadCraftingRecipes()
           
 java.util.ArrayList<Template> loadItemTemplates(java.util.LinkedList<java.lang.Integer> storeItems)
          Loads in the item templates from the content database.
 void loadMerchantItems(MerchantTable mTbl)
           
 java.util.HashMap<java.lang.Integer,MerchantTable> loadMerchantTables()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queries

protected static Queries queries

ITEM_TABLE

public static final java.lang.String ITEM_TABLE
See Also:
Constant Field Values
Constructor Detail

ItemDatabase

public ItemDatabase(boolean keepAlive)
Method Detail

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



Copyright © 2018 Dragonsan Studios Sp. z o.o.