public interface ItemNameDAO
The normal way to get item names, without writing your own DAOs, is to use a MapItemNameDAO
, often
loaded from a CSV file:
bind MapItemNameDAO to CSVFileItemNameDAOProvider
set ItemFile to "item-names.csv"
Note that, while MapItemNameDAO
implements both this
interface and ItemDAO
, binding this interface to the
provider instead of the class means that the item name DAO will only be used to satisfy item name
DAO requests and not item list requests.
Modifier and Type | Method and Description |
---|---|
String |
getItemName(long item)
Get the name for an item.
|