|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pt.jcodeutil.core.sql.DataSet.DataRow
Class that contains the information about one row of data.
Title: JCodeUtil
Description:
Constructor Summary | |
DataSet.DataRow(int elements)
Creates a new DataSet for the number of columns specified |
Method Summary | |
void |
addRow(java.lang.String name,
java.lang.String value)
Adds a new row in the DataSet |
void |
clear()
Clears this DataRow. |
java.lang.String |
getName(int pos)
Gets the name for the specified position. |
java.lang.String[] |
getNames()
Get the names of the data. |
int |
getPosByName(java.lang.String name)
Gets the position of a named column |
java.lang.String |
getValue(java.lang.String name)
Gets the value for the specified column name. |
java.lang.String |
getValueByPos(int pos)
Gets the value in the specified position. |
java.lang.String[] |
getValues()
Get the values of the data. |
void |
resetValue(int pos,
java.lang.String value)
Changes the value in a column |
void |
resetValue(java.lang.String name,
java.lang.String value)
Changes the value in a column. |
void |
setAllNullsAsEmptyStrings()
Replaces all columns with value == null with Empty String |
int |
size()
Get the size of the row. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataSet.DataRow(int elements)
elements
- Number of columns in the DataSetMethod Detail |
public java.lang.String[] getNames()
public java.lang.String[] getValues()
public void addRow(java.lang.String name, java.lang.String value)
name
- Name of the columnvalue
- Value in the columnpublic int size()
public java.lang.String getValue(java.lang.String name)
name
- Name of the column.public void resetValue(java.lang.String name, java.lang.String value)
name
- Name of the column to change it's value.value
- New value for the column.public void resetValue(int pos, java.lang.String value)
pos
- Position to change the valuevalue
- New value for the columnpublic int getPosByName(java.lang.String name)
name
- Name of the column to findpublic java.lang.String getValueByPos(int pos)
public java.lang.String getName(int pos)
pos
- Position.public void clear()
public void setAllNullsAsEmptyStrings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |