|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.extentech.ExtenBean.JSONDataObject
public class JSONDataObject
A DataObject implementation which uses JSON (Java Script Object Notation) data.
JSONDataObjectFactory,
DataObject,
colinfo,
Serialized Form| Constructor Summary | |
|---|---|
JSONDataObject(org.json.JSONArray j)
|
|
| Method Summary | |
|---|---|
colinfo[] |
getColinfo()
Returns the column metadata for this row of data. |
colinfo |
getColinfoByName(String colname)
|
List |
getColNames()
return the JSON Array Ojbect field names |
SimpleDataObject |
getDataObject(int x)
get a new DataObject from this one |
Object[] |
getDataRow(int i)
Get the data fields as an array of objects. |
org.json.JSONArray |
getDelegate()
|
boolean |
getIsMultiple()
|
int |
getNumRows()
|
Object |
getOriginalKey()
|
String |
getStringVal(int idx,
String col)
|
String |
getStringVal(String col)
|
Object |
getVal(int idx,
String col)
|
Object |
getVal(String field)
|
Object |
getValForNode(String field)
|
void |
init()
|
void |
initNode(int idx,
JSONDataObject dobj)
more or less clone this node, except as a singleton |
boolean |
isNew()
|
void |
load()
get whether or not to cascade the updates to child dataobjects |
void |
remove()
|
void |
setDelegate(org.json.JSONArray delegate)
|
void |
setVal(int row,
String col,
Object val)
|
void |
setVal(String col,
Object val)
|
void |
store()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSONDataObject(org.json.JSONArray j)
| Method Detail |
|---|
public Object getOriginalKey()
public Object getValForNode(String field)
public void init()
public SimpleDataObject getDataObject(int x)
getDataObject in interface SimpleDataObject
public void initNode(int idx,
JSONDataObject dobj)
public colinfo[] getColinfo()
SimpleDataObject
getColinfo in interface SimpleDataObjectpublic colinfo getColinfoByName(String colname)
getColinfoByName in interface SimpleDataObjectpublic List getColNames()
getColNames in interface SimpleDataObjectcom.extentech.ExtenBean.SimpleDataObject#getColnames()public org.json.JSONArray getDelegate()
public void setDelegate(org.json.JSONArray delegate)
delegate - The delegate to set.public Object[] getDataRow(int i)
SimpleDataObject
getDataRow in interface SimpleDataObjectpublic boolean getIsMultiple()
getIsMultiple in interface SimpleDataObjectpublic int getNumRows()
getNumRows in interface SimpleDataObject
public String getStringVal(int idx,
String col)
getStringVal in interface SimpleDataObjectpublic String getStringVal(String col)
getStringVal in interface SimpleDataObjectpublic Object getVal(String field)
getVal in interface SimpleDataObject
public Object getVal(int idx,
String col)
getVal in interface SimpleDataObjectpublic boolean isNew()
isNew in interface SimpleDataObject
public void load()
throws Exception
SimpleDataObject
load in interface SimpleDataObjectException
public void remove()
throws Exception
remove in interface SimpleDataObjectException
public void setVal(String col,
Object val)
setVal in interface SimpleDataObject
public void setVal(int row,
String col,
Object val)
setVal in interface SimpleDataObject
public void store()
throws Exception
store in interface SimpleDataObjectException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||