|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.sql.SQLPeerDatum
com.tootsville.Store
public class Store
A Store contains StoreItems. Note that my original interpretation of this was Store as in Storage, but it's come to also (usually) mean as in Place Of Shopping.
XXX this class is still based upon SQLPeerDatum, it should be
migrated to DataRecord.
GenericItemReference,
Serialized Form| Field Summary | |
|---|---|
private int |
id
store's id |
private List<GenericItemReference> |
items
the set of all items found in the store |
private static long |
serialVersionUID
Java serialisation unique ID |
| Constructor Summary | |
|---|---|
Store()
|
|
| Method Summary | |
|---|---|
private void |
addItem(GenericItemReference item)
WRITEME: document this method (brpocock@star-hope.org, Aug 27, 2009) |
void |
flush()
This is an overriding method. |
static Store |
getByID(int storeID)
Fetch up a store by its ID. |
protected String |
getCacheUniqueID()
This is an overriding method. |
int |
getID()
|
AbstractItem[] |
getItems()
WRITEME: document this method (brpocock@star-hope.org, Aug 27, 2009) |
protected void |
set(ResultSet rs)
This is an overriding method. |
protected void |
setID(int id1)
|
org.json.JSONObject |
toJSON()
This is an overriding method. |
| Methods inherited from class org.starhope.appius.sql.SQLPeerDatum |
|---|
changed, compareTo, findInCache, 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
private int id
private final List<GenericItemReference> items
| Constructor Detail |
|---|
public Store()
| Method Detail |
|---|
public static Store getByID(int storeID)
storeID - WRITEME
private void addItem(GenericItemReference item)
item - WRITEMEpublic void flush()
flush in class SQLPeerDatumSQLPeerDatum.flush()protected String getCacheUniqueID()
getCacheUniqueID in class SQLPeerDatumSQLPeerDatum.getCacheUniqueID()public int getID()
public AbstractItem[] getItems()
protected void set(ResultSet rs)
throws SQLException
set in class SQLPeerDatumrs - 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)protected void setID(int id1)
id1 - the id to setpublic org.json.JSONObject toJSON()
toJSON in class SQLPeerDatumCastsToJSON.toJSON()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||