public class DataResultSetImpl extends Object implements DataResultSet
DataResultSet.Field| Constructor and Description |
|---|
DataResultSetImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addField(DataResultSet.Field field, String defaultValue)
Add a field to the list of fields.
|
void |
addRow(DataObject row)
Add a row of data to this result set.
|
void |
addRow(List<String> items)
Add a row as an array of string values
|
DataResultSet.Field |
getField(int index)
The column fields corresponding to the given name
|
DataResultSet.Field |
getField(String name)
Retrieve the field object with the given name.
|
protected int |
getFieldIndex(String name)
Retrieve the field index.
|
List<DataResultSet.Field> |
getFields()
Retrieve fields for all columns
|
List<DataObject> |
getRows()
Retrieve values of all rows
|
boolean |
hasField(String name)
Determines if the field is present in this result set
|
void |
insertRow(DataObject row, int index)
Add a row of data to this result set in the given row.
|
void |
insertRow(List<String> items, int index)
Add a row as an array of string values
|
void |
removeField(String name)
Remove a field from this result set.
|
void |
removeRow(int row)
Remove a row in this result set.
|
void |
setFields(List<DataResultSet.Field> fields)
Set the fields.
|
public boolean hasField(String name)
hasField in interface DataResultSetname - the field namepublic DataResultSet.Field getField(String name)
getField in interface DataResultSetname - the name of the fieldpublic DataResultSet.Field getField(int index)
getField in interface DataResultSetindex - the column indexpublic List<DataResultSet.Field> getFields()
DataResultSetgetFields in interface DataResultSetpublic void setFields(List<DataResultSet.Field> fields)
setFields in interface DataResultSetfields - the fieldspublic void addField(DataResultSet.Field field, String defaultValue)
addField in interface DataResultSetfield - the fielddefaultValue - a default value to add to each row for this new fieldpublic void addRow(List<String> items)
addRow in interface DataResultSetitems - the row valuespublic void insertRow(List<String> items, int index)
insertRow in interface DataResultSetindex - the index to insert the rowitems - the row valuespublic void addRow(DataObject row)
addRow in interface DataResultSetrow - a data object with a mapping of the list field names to valuespublic void insertRow(DataObject row, int index)
insertRow in interface DataResultSetindex - the index into the list to insert this rowrow - a data object with a mapping of the list field names to valuesaddRow(oracle.stellent.ridc.model.DataObject)public void removeRow(int row)
removeRow in interface DataResultSetrow - the row index, with 0 as the first row index.public void removeField(String name)
removeField in interface DataResultSetname - the field to removepublic List<DataObject> getRows()
DataResultSetgetRows in interface DataResultSetprotected int getFieldIndex(String name)
name - the field name