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 SummaryNested classes/interfaces inherited from interface oracle.stellent.ridc.model.DataResultSetDataResultSet.Field
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
DataResultSetImplpublic DataResultSetImpl()
 
- 
- 
Method Details- 
hasFieldDetermines if the field is present in this result set- Specified by:
- hasFieldin interface- DataResultSet
- Parameters:
- name- the field name
- Returns:
- true if the field exists
 
- 
getFieldRetrieve the field object with the given name.- Specified by:
- getFieldin interface- DataResultSet
- Parameters:
- name- the name of the field
- Returns:
- the field or null if no such field exists
 
- 
getFieldThe column fields corresponding to the given name- Specified by:
- getFieldin interface- DataResultSet
- Parameters:
- index- the column index
- Returns:
- the field
 
- 
getFieldsDescription copied from interface:DataResultSetRetrieve fields for all columns- Specified by:
- getFieldsin interface- DataResultSet
- Returns:
- the fields for this result set
 
- 
setFieldsSet the fields. This will remove all row data.- Specified by:
- setFieldsin interface- DataResultSet
- Parameters:
- fields- the fields
 
- 
addFieldAdd a field to the list of fields. Will require all row data to be augmented with the given default value.- Specified by:
- addFieldin interface- DataResultSet
- Parameters:
- field- the field
- defaultValue- a default value to add to each row for this new field
 
- 
addRowAdd a row as an array of string values- Specified by:
- addRowin interface- DataResultSet
- Parameters:
- items- the row values
 
- 
insertRowAdd a row as an array of string values- Specified by:
- insertRowin interface- DataResultSet
- Parameters:
- index- the index to insert the row
- items- the row values
 
- 
addRowAdd 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 interface- DataResultSet
- Parameters:
- row- a data object with a mapping of the list field names to values
 
- 
insertRowAdd a row of data to this result set in the given row.- Specified by:
- insertRowin interface- DataResultSet
- Parameters:
- index- the index into the list to insert this row
- row- a data object with a mapping of the list field names to values
- See Also:
 
- 
removeRowpublic void removeRow(int row) Remove a row in this result set.- Specified by:
- removeRowin interface- DataResultSet
- Parameters:
- row- the row index, with 0 as the first row index.
 
- 
removeFieldRemove 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 interface- DataResultSet
- Parameters:
- name- the field to remove
 
- 
getRowsDescription copied from interface:DataResultSetRetrieve values of all rows- Specified by:
- getRowsin interface- DataResultSet
- Returns:
- the list of the available data object rows
 
- 
getFieldIndexRetrieve the field index.- Parameters:
- name- the field name
- Returns:
- the field index; -1 if the field is not found
 
 
-