|
||||||||||
| 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.ResultsetDataset
public final class ResultsetDataset
Encapsulates a Resultset within a Dataset interface.
| Constructor Summary | |
|---|---|
ResultsetDataset()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the Dataset. |
int |
findColumn(FieldName name)
Finds the index of the given column name of the dataset. |
String |
getCatalogName(int i)
Gets the designated data item's catalog name. |
int |
getColumnCount()
|
FieldName |
getColumnName(int i)
Gets the designated data item's column name. |
List<String> |
getColumnNames()
|
Date |
getDate(FieldName id)
Returns Date of name id. |
Date |
getDate(int i)
Returns Date of index i. |
double |
getDouble(FieldName id)
Returns double of name id |
double |
getDouble(int i)
Returns int of index i |
int |
getInt(FieldName id)
Returns int of name id |
int |
getInt(int i)
Returns int of index i |
long |
getLong(FieldName id)
Returns long of name id |
long |
getLong(int i)
Returns long of index i |
Map<FieldName,Object> |
getMap()
Gets a name-> values map containing the current data row. |
MetaData |
getMetaData()
Gets the meta data for this data set. |
Object |
getObject(FieldName id)
Returns Object of name id |
Object |
getObject(int i)
Returns Object of index i |
String |
getString(FieldName id)
Returns String of name id. |
String |
getString(int i)
Returns String of index i. |
Map<String,Object> |
getStringMap()
Gets a name-> values map containing the current data row. |
boolean |
isAfterLast()
Retrieves wether the dataset is after its last row. |
boolean |
isEmpty()
Tests if the ResultsetDataset is empty. |
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. |
void |
set(ResultSet rs)
|
| Methods inherited from class info.informatica.data.AbstractDataset |
|---|
evaluate, getEnviron, getLabel, getNestedSet, setEnviron, setLabel |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResultsetDataset()
| Method Detail |
|---|
public void set(ResultSet rs)
public int getColumnCount()
throws DatasetException
getColumnCount in interface DatasetgetColumnCount in class AbstractDatasetDatasetException - if the data repository produced an error.
public Date getDate(int i)
throws DatasetException
Dataset
DatasetException - if the data repository produced an error.
public Date getDate(FieldName id)
throws DatasetException
Dataset
DatasetException - if the data repository produced an error.
public double getDouble(int i)
throws DatasetException
Dataset
DatasetException - if the data repository produced an error.
public double getDouble(FieldName id)
throws DatasetException
Dataset
DatasetException - if the data repository produced an error.
public int getInt(int i)
throws DatasetException
Dataset
DatasetException - if the data repository produced an error.
public int getInt(FieldName id)
throws DatasetException
Dataset
DatasetException - if the data repository produced an error.
public long getLong(int i)
throws DatasetException
Dataset
DatasetException - if the data repository produced an error.
public long getLong(FieldName id)
throws DatasetException
Dataset
DatasetException - if the data repository produced an error.
public Object getObject(int i)
throws DatasetException
Dataset
DatasetException - if the data repository produced an error.
public Object getObject(FieldName id)
throws DatasetException
Dataset
DatasetException - if the data repository produced an error.
public String getString(int i)
throws DatasetException
Dataset
DatasetException - if the data repository produced an error.
public String getString(FieldName id)
throws DatasetException
Dataset
DatasetException - if the data repository produced an error.
public boolean next()
throws DatasetException
Dataset
next in interface Datasetnext in class AbstractDatasetDatasetException - if the data repository produced an error.
public MetaData getMetaData()
throws DataException
Dataset
getMetaData in interface DatasetgetMetaData in class AbstractDatasetDataException - if the data repository produced an error.
public String getCatalogName(int i)
throws DatasetException
getCatalogName in interface DatasetgetCatalogName in class AbstractDatasetDatasetException - if the data repository produced an error.
public FieldName getColumnName(int i)
throws DatasetException
getColumnName in interface DatasetgetColumnName in class AbstractDatasetDatasetException
public List<String> getColumnNames()
throws DatasetException
DatasetException
public boolean isEmpty()
throws DatasetException
If the recordset is null, it is considered empty. If the recordset can be moved backwards, will try to determine if there are data available. If it is of type FORWARD_ONLY will return true if the recordset is not null.
DatasetException
public boolean isLast()
throws DatasetException
DatasetEvaluation of this method could be expensive.
DatasetException - if the data repository produced an error.
public boolean isAfterLast()
throws DatasetException
Dataset
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 AbstractDatasetDatasetException - if an error happens when closing the Dataset.
public int findColumn(FieldName name)
throws DatasetException
Beware that this class will handle any SQL error as an indication that the requested column does not exist.
findColumn in interface DatasetfindColumn in class AbstractDatasetDatasetException - if an error happens when accessing the data.
public Map<FieldName,Object> getMap()
throws DatasetException
DatasetException - if an error happens when creating the Map.
public Map<String,Object> getStringMap()
throws DatasetException
DatasetException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||