|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.example.table.DataRow
com.rapidminer.example.table.DatabaseDataRow
public class DatabaseDataRow
Reads datarows from a data base.
| Constructor Summary | |
|---|---|
DatabaseDataRow(java.sql.ResultSet resultSet)
Creates a data row from the given result set. |
|
| Method Summary | |
|---|---|
protected void |
ensureNumberOfColumns(int numberOfColumns)
Does nothing. |
double |
get(Attribute attribute)
Returns the desired data for the given attribute. |
protected double |
get(int index,
double defaultValue)
Returns the value for the given index. |
static double |
readColumn(java.sql.ResultSet resultSet,
Attribute attribute)
Reads the data for the given attribute from the result set. |
void |
set(Attribute attribute,
double value)
Sets the given data for the given attribute. |
protected void |
set(int index,
double value,
double defaultValue)
Sets the given data for the given index. |
java.lang.String |
toString()
Returns a string representation for this data row. |
void |
trim()
Does nothing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DatabaseDataRow(java.sql.ResultSet resultSet)
throws java.sql.SQLException
java.sql.SQLException| Method Detail |
|---|
public double get(Attribute attribute)
get in class DataRow
public void set(Attribute attribute,
double value)
set in class DataRow
protected double get(int index,
double defaultValue)
DataRow
get in class DataRow
protected void set(int index,
double value,
double defaultValue)
DataRow
set in class DataRowprotected void ensureNumberOfColumns(int numberOfColumns)
ensureNumberOfColumns in class DataRowpublic void trim()
trim in class DataRowpublic java.lang.String toString()
DataRow
toString in class DataRow
public static double readColumn(java.sql.ResultSet resultSet,
Attribute attribute)
throws java.sql.SQLException
java.sql.SQLException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||