|
Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference 11g Release 1 (11.1) E17274-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataResultSet
DataResultSet represents a two-dimension data structure. It contains a collection of rows (DataObject). Each row contains a collection of fields (actually values of fields). Because a field contains definition (e.g. a name, type, etc.) for a column of cells. However this interface does not provide direct access to an individual cell. Instead a caller uses getRows () to retrieve an entire row of values.
Nested Class Summary | |
---|---|
static class |
DataResultSet.Field A Field represents definition (e.g. |
Method Summary | |
---|---|
void |
addField(DataResultSet.Field field, java.lang.String defaultValue) Add a new field to the existing list of fields. |
void |
addRow(DataObject row) Add a new row of value. |
void |
addRow(java.util.List<java.lang.String> items) Add a new row as an array of string values |
DataResultSet.Field |
getField(int index) Retrieve the field object at a given index |
DataResultSet.Field |
getField(java.lang.String name) Retrieve the field object with the given field name. |
java.util.List<DataResultSet.Field> |
getFields() Retrieve fields for all columns |
java.util.List<DataObject> |
getRows() Retrieve values of all rows |
boolean |
hasField(java.lang.String name) Determines if the field is present in this result set by a given field name |
void |
insertRow(DataObject row, int index) Add a new row of data at the given index. |
void |
insertRow(java.util.List<java.lang.String> items, int index) Add a new row as an array of string values at the given index. |
void |
removeField(java.lang.String field) Remove a field from all rows by a given field name Note: this is an expensive operation; all internal data structures will be updated. |
void |
removeRow(int row) Remove a row at a given index |
void |
setFields(java.util.List<DataResultSet.Field> fields) Set the fields for all columns |
Method Detail |
---|
boolean hasField(java.lang.String name)
name
- the field nameDataResultSet.Field getField(java.lang.String name)
name
- the name of the fieldDataResultSet.Field getField(int index)
index
- the column indexjava.util.List<DataResultSet.Field> getFields()
void setFields(java.util.List<DataResultSet.Field> fields)
fields
- the fields for all columnsvoid addField(DataResultSet.Field field, java.lang.String defaultValue)
field
- the field to adddefaultValue
- a default value for the new column in each rowvoid removeField(java.lang.String field)
field
- the field to removevoid addRow(DataObject row)
row
- a data object with a mapping of the list field names to valuesvoid addRow(java.util.List<java.lang.String> items)
items
- the row valuesvoid insertRow(DataObject row, int index)
index
- the index into the list to insert this rowrow
- a data object with a mapping of the list field names to valuesaddRow(DataObject)
void insertRow(java.util.List<java.lang.String> items, int index)
index
- the index to insert the rowitems
- the row valuesvoid removeRow(int row)
row
- the zero-based row indexjava.util.List<DataObject> getRows()
|
Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference 11g Release 1 (11.1) E17274-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |