|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.starhope.appius.sql.SQLPeerDatum
org.starhope.appius.game.StoreItem
public class StoreItem
WRITEME: The documentation for this type (StoreItem) is incomplete. (brpocock, Aug 19, 2009)
Field Summary | |
---|---|
private static long |
serialVersionUID
TODO: document this field (brpocock, Oct 13, 2009) serialVersionUID (long) |
Fields inherited from class org.starhope.appius.sql.SQLPeerDatum |
---|
hackyDatabaseConnection |
Constructor Summary | |
---|---|
StoreItem()
|
Method Summary | |
---|---|
void |
flush()
This is an overriding method. |
static StoreItem |
getByID(int id)
|
protected String |
getCacheUniqueID()
|
String |
getDescription()
Get the user-visible description of the item |
int |
getItemID()
|
BigDecimal |
getPrice()
|
String |
getTitle()
|
protected void |
set(ResultSet rs)
This is an overriding method. |
void |
setItemID(int itemID1)
|
void |
setPrice(BigDecimal price1)
|
void |
setTitle(String title1)
|
org.json.JSONObject |
toJSON()
This is an overriding method. |
Methods inherited from class org.starhope.appius.sql.SQLPeerDatum |
---|
changed, findInCache, get, prepareX, prepareX, saveInCache, set |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
Constructor Detail |
---|
public StoreItem()
Method Detail |
---|
public static StoreItem getByID(int id) throws NotFoundException
id
- WRITEME
NotFoundException
- WRITEMEpublic void flush()
flush
in class SQLPeerDatum
SQLPeerDatum.flush()
protected String getCacheUniqueID()
getCacheUniqueID
in class SQLPeerDatum
SQLPeerDatum.getCacheUniqueID()
public String getDescription()
ItemCreationTemplate
getDescription
in interface ItemCreationTemplate
ItemCreationTemplate.getDescription()
public int getItemID()
getItemID
in interface ItemCreationTemplate
ItemCreationTemplate.getItemID()
public BigDecimal getPrice()
getPrice
in interface ItemCreationTemplate
ItemCreationTemplate.getPrice()
public String getTitle()
getTitle
in interface ItemCreationTemplate
ItemCreationTemplate.getTitle()
protected void set(ResultSet rs) throws SQLException
set
in class SQLPeerDatum
rs
- The result of an SQL query, with the cursor already
pointed at the row describing this specific instance
of the object.
SQLException
- if the database fails somehowSQLPeerDatum.set(java.sql.ResultSet)
public void setItemID(int itemID1)
setItemID
in interface ItemCreationTemplate
itemID1
- the itemID to setItemCreationTemplate.setItemID(int)
public void setPrice(BigDecimal price1)
setPrice
in interface ItemCreationTemplate
price1
- the price to setItemCreationTemplate.setPrice(java.math.BigDecimal)
public void setTitle(String title1)
setTitle
in interface ItemCreationTemplate
title1
- the title to setItemCreationTemplate.setTitle(java.lang.String)
public org.json.JSONObject toJSON()
toJSON
in interface ItemCreationTemplate
toJSON
in class SQLPeerDatum
SQLPeerDatum.toJSON()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |