Package oracle.stellent.ridc.model.impl
Class DataResultSetImpl
java.lang.Object
oracle.stellent.ridc.model.impl.DataResultSetImpl
- All Implemented Interfaces:
DataResultSet
A result set of content from the Content Server.
-
Nested Class Summary
Nested classes/interfaces inherited from interface oracle.stellent.ridc.model.DataResultSet
DataResultSet.Field -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddField(DataResultSet.Field field, String defaultValue) Add a field to the list of fields.voidAdd a row as an array of string valuesvoidaddRow(DataObject row) Add a row of data to this result set.getField(int index) The column fields corresponding to the given nameRetrieve the field object with the given name.protected intgetFieldIndex(String name) Retrieve the field index.Retrieve fields for all columnsgetRows()Retrieve values of all rowsbooleanDetermines if the field is present in this result setvoidAdd a row as an array of string valuesvoidinsertRow(DataObject row, int index) Add a row of data to this result set in the given row.voidremoveField(String name) Remove a field from this result set.voidremoveRow(int row) Remove a row in this result set.voidsetFields(List<DataResultSet.Field> fields) Set the fields.
-
Constructor Details
-
DataResultSetImpl
public DataResultSetImpl()
-
-
Method Details
-
hasField
Determines if the field is present in this result set- Specified by:
hasFieldin interfaceDataResultSet- Parameters:
name- the field name- Returns:
- true if the field exists
-
getField
Retrieve the field object with the given name.- Specified by:
getFieldin interfaceDataResultSet- Parameters:
name- the name of the field- Returns:
- the field or null if no such field exists
-
getField
The column fields corresponding to the given name- Specified by:
getFieldin interfaceDataResultSet- Parameters:
index- the column index- Returns:
- the field
-
getFields
Description copied from interface:DataResultSetRetrieve fields for all columns- Specified by:
getFieldsin interfaceDataResultSet- Returns:
- the fields for this result set
-
setFields
Set the fields. This will remove all row data.- Specified by:
setFieldsin interfaceDataResultSet- Parameters:
fields- the fields
-
addField
Add a field to the list of fields. Will require all row data to be augmented with the given default value.- Specified by:
addFieldin interfaceDataResultSet- Parameters:
field- the fielddefaultValue- a default value to add to each row for this new field
-
addRow
Add a row as an array of string values- Specified by:
addRowin interfaceDataResultSet- Parameters:
items- the row values
-
insertRow
Add a row as an array of string values- Specified by:
insertRowin interfaceDataResultSet- Parameters:
index- the index to insert the rowitems- the row values
-
addRow
Add a row of data to this result set. Any field names that are present in the data object but not in the result set field list will be ignored. Any missing fields will be replaced by empty strings.- Specified by:
addRowin interfaceDataResultSet- Parameters:
row- a data object with a mapping of the list field names to values
-
insertRow
Add a row of data to this result set in the given row.- Specified by:
insertRowin interfaceDataResultSet- Parameters:
index- the index into the list to insert this rowrow- a data object with a mapping of the list field names to values- See Also:
-
removeRow
public void removeRow(int row) Remove a row in this result set.- Specified by:
removeRowin interfaceDataResultSet- Parameters:
row- the row index, with 0 as the first row index.
-
removeField
Remove a field from this result set. This field will be removed from all associated rows. Note: this is an expensive operation; all internal data structures will be updated.- Specified by:
removeFieldin interfaceDataResultSet- Parameters:
name- the field to remove
-
getRows
Description copied from interface:DataResultSetRetrieve values of all rows- Specified by:
getRowsin interfaceDataResultSet- Returns:
- the list of the available data object rows
-
getFieldIndex
Retrieve the field index.- Parameters:
name- the field name- Returns:
- the field index; -1 if the field is not found
-