| prefuse.data.io.sql.SQLDataHandler
All known Subclasses: prefuse.data.io.sql.CompositeSQLDataHandler, prefuse.data.io.sql.DefaultSQLDataHandler,
SQLDataHandler | public interface SQLDataHandler (Code) | | Interface for taking a value in a SQL ResultSet and translating it into
a Java data value for use in a prefuse Table.
author: jeffrey heer |
Method Summary | |
public Class | getDataType(String columnName, int sqlType) Return the Java data type for the given data field name and
its sql data type.
Parameters: columnName - the name of data field / column Parameters: sqlType - the field's sql data type, one of the constantsin the java.sql.Types class. | public void | process(Table t, int trow, ResultSet rset, int rcol) Process a data value from a ResultSet, translating it into a
Java data value and storing it in a Table. |
getDataType | public Class getDataType(String columnName, int sqlType)(Code) | | Return the Java data type for the given data field name and
its sql data type.
Parameters: columnName - the name of data field / column Parameters: sqlType - the field's sql data type, one of the constantsin the java.sql.Types class. the Java Class data type |
process | public void process(Table t, int trow, ResultSet rset, int rcol) throws SQLException(Code) | | Process a data value from a ResultSet, translating it into a
Java data value and storing it in a Table.
Parameters: t - the Table in which to store the result value Parameters: trow - the Table row to add to Parameters: rset - the ResultSet to read the SQL value from, assumedto be set to the desired row Parameters: rcol - the column index of the data value in the row set.This is also used to look up the column name, which is usedto access the correct data field of the Table. throws: SQLException - if an error occurs accessing the ResultSet |
|
|