Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-04


oracle.stellent.ridc.model.impl
Class DataResultSetImpl

java.lang.Object
  extended by oracle.stellent.ridc.model.impl.DataResultSetImpl

All Implemented Interfaces:
DataResultSet

public class DataResultSetImpl
extends Object
implements 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
DataResultSetImpl()
           

 

Method Summary
 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.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DataResultSetImpl

public DataResultSetImpl()

Method Detail

hasField

public boolean hasField(String name)
Determines if the field is present in this result set
Specified by:
hasField in interface DataResultSet
Parameters:
name - the field name
Returns:
true if the field exists

getField

public DataResultSet.Field getField(String name)
Retrieve the field object with the given name.
Specified by:
getField in interface DataResultSet
Parameters:
name - the name of the field
Returns:
the field or null if no such field exists

getField

public DataResultSet.Field getField(int index)
The column fields corresponding to the given name
Specified by:
getField in interface DataResultSet
Parameters:
index - the column index
Returns:
the field

getFields

public List<DataResultSet.Field> getFields()
Description copied from interface: DataResultSet
Retrieve fields for all columns
Specified by:
getFields in interface DataResultSet
Returns:
the fields for this result set

setFields

public void setFields(List<DataResultSet.Field> fields)
Set the fields. This will remove all row data.
Specified by:
setFields in interface DataResultSet
Parameters:
fields - the fields

addField

public void addField(DataResultSet.Field field,
                     String defaultValue)
Add a field to the list of fields. Will require all row data to be augmented with the given default value.
Specified by:
addField in interface DataResultSet
Parameters:
field - the field
defaultValue - a default value to add to each row for this new field

addRow

public void addRow(List<String> items)
Add a row as an array of string values
Specified by:
addRow in interface DataResultSet
Parameters:
items - the row values

insertRow

public void insertRow(List<String> items,
                      int index)
Add a row as an array of string values
Specified by:
insertRow in interface DataResultSet
Parameters:
index - the index to insert the row
items - the row values

addRow

public void addRow(DataObject row)
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:
addRow in interface DataResultSet
Parameters:
row - a data object with a mapping of the list field names to values

insertRow

public void insertRow(DataObject row,
                      int index)
Add a row of data to this result set in the given row.
Specified by:
insertRow in 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:
addRow(oracle.stellent.ridc.model.DataObject)

removeRow

public void removeRow(int row)
Remove a row in this result set.
Specified by:
removeRow in interface DataResultSet
Parameters:
row - the row index, with 0 as the first row index.

removeField

public void removeField(String name)
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:
removeField in interface DataResultSet
Parameters:
name - the field to remove

getRows

public List<DataObject> getRows()
Description copied from interface: DataResultSet
Retrieve values of all rows
Specified by:
getRows in interface DataResultSet
Returns:
the list of the available data object rows

getFieldIndex

protected int getFieldIndex(String name)
Retrieve the field index.
Parameters:
name - the field name
Returns:
the field index; -1 if the field is not found

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-04


Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.