org.javaWebGen.data
Interface DataBean


public interface DataBean

interface representing the data in one row of the database classes that implements this are generally generated by the GeneratDAO object

Version:
$Revision: 1.2 $
Author:
Kevin Scott

Method Summary
 java.lang.Object[] getData()
          Get row data from Object.
 int[] getDataTypes()
          return the type of columns in the database
 void setData(java.lang.Object[] parms)
          set object data.
 java.lang.String toJSON()
          Get the row data in an JSON form
 java.lang.String toXML()
          Get the row data in an XML form
 

Method Detail

toXML

java.lang.String toXML()
Get the row data in an XML form

Returns:
xml

toJSON

java.lang.String toJSON()
                        throws org.json.JSONException
Get the row data in an JSON form

Returns:
json text
Throws:
org.json.JSONException

getData

java.lang.Object[] getData()
                           throws DBException
Get row data from Object. Used by DAO objects

Returns:
row data as array of Objects
Throws:
DBException
See Also:
DAO

setData

void setData(java.lang.Object[] parms)
             throws DBException
set object data. Used by DAO objects

Parameters:
parms - row data
Throws:
DBException
See Also:
DAO

getDataTypes

int[] getDataTypes()
return the type of columns in the database

Returns:
array of column types


Copyright(C) 2003-2006 Kevin Scott - All Rights Reserved.