com.extentech.ExtenBean
Interface SimpleDataObject

All Superinterfaces:
Serializable
All Known Subinterfaces:
DataObject, PageableDataObject
All Known Implementing Classes:
CellRangeDataObject, DataObjectImpl, ExtenBeanTreeNode, ExtenDataObject, GenericDataObject, JSONDataObject, NamedRangeDataObject, XMLBeanNode, XMLDataObject

public interface SimpleDataObject
extends Serializable

Interface defining a Data Object encapsulating data.

Since:
1.3
Version:
2.01
Author:
John McMahon -- Copyright ©2010 Extentech Inc.
See Also:
ExtenDataObject, RelationalObject, SQLObject

Method Summary
 colinfo[] getColinfo()
          Returns the column metadata for this row of data.
 colinfo getColinfoByName(String colname)
           
 List getColNames()
          returns a list of the colnames
 SimpleDataObject getDataObject(int idx)
          Poplulate a new Singular DataObject from this multi-row DataObject.
 Object[] getDataRow(int i)
          Get the data fields as an array of objects.
 boolean getIsMultiple()
           
 int getNumRows()
           
 String getStringVal(int idx, String col)
           
 String getStringVal(String col)
           
 Object getVal(int idx, String col)
           
 Object getVal(String field)
           
 boolean isNew()
           
 void load()
          get whether or not to cascade the updates to child dataobjects
 void remove()
           
 void setVal(int row, String col, Object val)
           
 void setVal(String col, Object val)
           
 void store()
           
 

Method Detail

getColNames

List getColNames()
returns a list of the colnames

Returns:

getIsMultiple

boolean getIsMultiple()

getColinfo

colinfo[] getColinfo()
Returns the column metadata for this row of data.

Returns:
An array of colinfo objects containing

getColinfoByName

colinfo getColinfoByName(String colname)

load

void load()
          throws Exception
get whether or not to cascade the updates to child dataobjects

Throws:
Exception

store

void store()
           throws Exception
Throws:
Exception

remove

void remove()
            throws Exception
Throws:
Exception

getVal

Object getVal(String field)

getVal

Object getVal(int idx,
              String col)

getStringVal

String getStringVal(int idx,
                    String col)

getStringVal

String getStringVal(String col)

getNumRows

int getNumRows()

setVal

void setVal(String col,
            Object val)

setVal

void setVal(int row,
            String col,
            Object val)

isNew

boolean isNew()

getDataObject

SimpleDataObject getDataObject(int idx)
Poplulate a new Singular DataObject from this multi-row DataObject.


getDataRow

Object[] getDataRow(int i)
Get the data fields as an array of objects. Type information is contained in the colinfo for this object.

Returns:
An array of values from a database


Copyright © 2010 Extentech Inc. All Rights Reserved.