|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.util.ManagedReferenceHolder
org.starhope.appius.util.BaseDatum
org.starhope.appius.game.intangible.Store
public class Store
WRITEME
| Field Summary | |
|---|---|
private Vector<com.sun.sgs.app.ManagedReference<StoreCategory>> |
categories
WRITEME |
private String |
code
WRITEME |
private com.sun.sgs.app.ManagedReference<Domain> |
domain
WRITEME |
private String |
title
WRITEME |
| Fields inherited from class org.starhope.appius.util.BaseDatum |
|---|
database_id |
| Constructor Summary | |
|---|---|
Store()
WRITEME |
|
| Method Summary | |
|---|---|
void |
add(StoreCategory newCat)
WRITEME |
Vector<com.sun.sgs.app.ManagedReference<StoreCategory>> |
getCategories()
WRITEME |
String |
getCode()
|
Domain |
getDomain()
|
String |
getTitle()
|
void |
remove(StoreCategory cat)
|
void |
set(org.json.JSONObject o)
This method will attempt to set the data contents of this object to the values derived from the JSON object being passed-in. |
void |
setCode(String code)
Unique 5-character internal identifier. |
void |
setDomain(Domain domain)
|
void |
setTitle(String title)
The user-visible name of the store. |
org.json.JSONObject |
toJSON()
This returns a copy of the object's data cast into a JSON form. |
| Methods inherited from class org.starhope.appius.util.BaseDatum |
|---|
changed, commitToDatabase, delete, equals, flush, get, get, getID, getUniqueBoundName, readExternal, refJSON, setID, sqlDateTime, writeExternal |
| Methods inherited from class org.starhope.appius.util.ManagedReferenceHolder |
|---|
deref, setRef |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Vector<com.sun.sgs.app.ManagedReference<StoreCategory>> categories
private String code
private com.sun.sgs.app.ManagedReference<Domain> domain
private String title
| Constructor Detail |
|---|
public Store()
| Method Detail |
|---|
public void add(StoreCategory newCat)
newCat - WRITEMEpublic Vector<com.sun.sgs.app.ManagedReference<StoreCategory>> getCategories()
public String getCode()
public Domain getDomain()
public String getTitle()
public void remove(StoreCategory cat)
cat - the category to be removed from the storepublic void set(org.json.JSONObject o)
CastsToJSON
set in interface CastsToJSONset in class BaseDatumo - The JSON object containing a the new data for this
object.CastsToJSON.set(org.json.JSONObject)public void setCode(String code)
code - the code to setpublic void setDomain(Domain domain)
domain - the domain in which this store will now be foundpublic void setTitle(String title)
title - the title to setpublic org.json.JSONObject toJSON()
CastsToJSON
toJSON in interface CastsToJSONtoJSON in class BaseDatumBaseDatum.toJSON()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||