|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.data.AbstractDataset
info.informatica.data.GenericDataset
info.informatica.data.ListDataset
public final class ListDataset
A Dataset backed by a List.
| Constructor Summary | |
|---|---|
ListDataset(Collection<String> column_names)
|
|
ListDataset(List<String> column_names)
|
|
ListDataset(List<String> column_names,
int capacity)
|
|
ListDataset(ResultsetDataset ds)
|
|
ListDataset(ResultsetDataset ds,
int capacity)
Copy constructor with a ResultsetDataset. |
|
| Method Summary | |
|---|---|
void |
add(Object o)
Convenience method that adds a row composed by a single object. |
void |
add(Object[] o)
|
void |
add(Object first,
Object second)
Convenience method that adds a row composed by a two objects. |
void |
addAll(Collection<Object> coll)
|
void |
close()
Closes the Dataset. |
Map<FieldName,Object> |
getMap()
Gets a name-> values map containing the current data row. |
boolean |
isAfterLast()
Retrieves wether the dataset is after its last row. |
boolean |
isEmpty()
|
boolean |
isLast()
Retrieves wether the dataset is on its last row. |
boolean |
next()
Positions the Dataset at the next row of data. |
void |
reset()
Puts the Dataset cursor in the initial state, regardless of the current cursor state. |
| Methods inherited from class info.informatica.data.GenericDataset |
|---|
getDate, getDate, getDouble, getDouble, getInt, getInt, getLong, getLong, getMetaData, getNestedSet, getObject, getObject, getString, getString, setMetaData |
| Methods inherited from class info.informatica.data.AbstractDataset |
|---|
evaluate, findColumn, getCatalogName, getColumnCount, getColumnName, getEnviron, getLabel, setEnviron, setLabel |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ListDataset(List<String> column_names)
public ListDataset(Collection<String> column_names)
public ListDataset(List<String> column_names,
int capacity)
public ListDataset(ResultsetDataset ds)
throws DatasetException
DatasetException
public ListDataset(ResultsetDataset ds,
int capacity)
throws DatasetException
In some circumstances it is good to copy a ResultsetDataset to a ListDataset, to remove dependencies with the SQL connection or to be able to dynamically add new rowsets.
DatasetException| Method Detail |
|---|
public void addAll(Collection<Object> coll)
public void add(Object[] o)
public void add(Object o)
public void add(Object first,
Object second)
public boolean isEmpty()
throws DatasetException
DatasetException
public boolean next()
throws DatasetException
Dataset
next in interface Datasetnext in class AbstractDatasetDatasetException - if the data repository produced an error.
public boolean isAfterLast()
throws DatasetException
Dataset
DatasetException - if the data repository produced an error.
public boolean isLast()
throws DatasetException
DatasetEvaluation of this method could be expensive.
DatasetException - if the data repository produced an error.
public void reset()
throws DatasetException
DatasetThis method allows the reuse of a Dataset object after all rows have been extracted by the use of the next() function.
This method is optional. Implementations are required to throw an UnsupportedOperationException in case they do not implement it.
DatasetException - if an error happened when resetting the data.
public void close()
throws DatasetException
DatasetNo further work is possible with the Dataset after closing it.
close in interface Datasetclose in class GenericDatasetDatasetException - if an error happens when closing the Dataset.
public Map<FieldName,Object> getMap()
throws DatasetException
getMap in interface DatasetgetMap in class GenericDatasetDatasetException - if an error happens when creating the Map.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||