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 DataResultSet
name
- the field namepublic DataResultSet.Field getField(String name)
getField
in interface DataResultSet
name
- the name of the fieldpublic DataResultSet.Field getField(int index)
getField
in interface DataResultSet
index
- the column indexpublic List<DataResultSet.Field> getFields()
DataResultSet
getFields
in interface DataResultSet
public void setFields(List<DataResultSet.Field> fields)
setFields
in interface DataResultSet
fields
- the fieldspublic void addField(DataResultSet.Field field, String defaultValue)
addField
in interface DataResultSet
field
- the fielddefaultValue
- a default value to add to each row for this new fieldpublic void addRow(List<String> items)
addRow
in interface DataResultSet
items
- the row valuespublic void insertRow(List<String> items, int index)
insertRow
in interface DataResultSet
index
- the index to insert the rowitems
- the row valuespublic void addRow(DataObject row)
addRow
in interface DataResultSet
row
- a data object with a mapping of the list field names to valuespublic void insertRow(DataObject row, int index)
insertRow
in interface DataResultSet
index
- 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 DataResultSet
row
- the row index, with 0 as the first row index.public void removeField(String name)
removeField
in interface DataResultSet
name
- the field to removepublic List<DataObject> getRows()
DataResultSet
getRows
in interface DataResultSet
protected int getFieldIndex(String name)
name
- the field name