|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Datasource
This is the interface to Datasources which are places you go to get information like Databases and flat files.
| Method Summary | |
|---|---|
int |
columnCount()
Returns the number of columns in the current row. |
boolean |
getBoolean(int column)
Returns the boolean value of the contents at the position of column. |
boolean |
getBoolean(java.lang.String name)
Returns the boolean value found in the column of the given name. |
double |
getDouble(int column)
Returns the double value of the contents at the position of column. |
double |
getDouble(java.lang.String name)
Returns the double value found in the column of the given name. |
float |
getFloat(int column)
Returns the float value of the contents at the position of column. |
float |
getFloat(java.lang.String name)
Returns the float value found in the column of the given name. |
int |
getInt(int column)
Returns the int value of the contents at the position of column. |
int |
getInt(java.lang.String name)
Returns the int value found in the column of the given name. |
long |
getLong(int column)
Returns the long value of the contents at the position of column. |
long |
getLong(java.lang.String name)
Returns the long value found in the column of the given name. |
java.lang.String |
getString(int column)
Returns the string value of the contents at the position of column. |
java.lang.String |
getString(java.lang.String name)
Returns the string value found in the column of the given name. |
boolean |
isAfterLast()
Tells whether the cursor has moved past the last row or not. |
boolean |
isBeforeFirst()
Tells whether the cursor position is before the first line. |
boolean |
isFirst()
Tells whether the cursor is on the first row or not. |
boolean |
isLast()
Tells whether the cursor is on the last row or not. |
boolean |
next()
Moves the cursor to the next line. |
| Method Detail |
|---|
boolean next()
boolean isBeforeFirst()
boolean isFirst()
boolean isAfterLast()
boolean isLast()
java.lang.String getString(int column)
throws DatasourceException
column - The position of the column in the row.
DatasourceException - If something goes wrong.
java.lang.String getString(java.lang.String name)
throws DatasourceException
name - The name of the column in the row.
DatasourceException - If something goes wrong.
long getLong(int column)
throws DatasourceException
column - The position of the column in the row.
DatasourceException - If something goes wrong.
long getLong(java.lang.String name)
throws DatasourceException
name - The name of the column in the row.
DatasourceException - If something goes wrong.
int getInt(int column)
throws DatasourceException
column - The position of the column in the row.
DatasourceException - If something goes wrong.
int getInt(java.lang.String name)
throws DatasourceException
name - The name of the column in the row.
DatasourceException - If something goes wrong.
double getDouble(int column)
throws DatasourceException
column - The position of the column in the row.
DatasourceException - If something goes wrong.
double getDouble(java.lang.String name)
throws DatasourceException
name - The name of the column in the row.
DatasourceException - If something goes wrong.
float getFloat(int column)
throws DatasourceException
column - The position of the column in the row.
DatasourceException - If something goes wrong.
float getFloat(java.lang.String name)
throws DatasourceException
name - The name of the column in the row.
DatasourceException - If something goes wrong.
boolean getBoolean(int column)
throws DatasourceException
column - The position of the column in the row.
DatasourceException - If something goes wrong.
boolean getBoolean(java.lang.String name)
throws DatasourceException
name - The name of the column in the row.
DatasourceException - If something goes wrong.
int columnCount()
throws DatasourceException
DatasourceException - If called on an invalid row.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||