|
S-PLUS Connect/Java v1.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.insightful.splus.util.ResultSetUtilities
public class ResultSetUtilities
Provides static methods for accessing a ResultSet from S-PLUS.
This is experimental code that has not been extensively bullet-proofed.
This code uses the following data type mappings from SQL Types to Java Types to S-PLUS Types
SQL TYPES Java Type S-PLUS Type BIGINT double numeric DECIMAL double numeric NUMERIC double numeric DOUBLE double numeric FLOAT float single REAL float single DATE double numeric TIME double numeric TIMESTAMP double numeric TINYINT integer integer SMALLINT integer integer INTEGER integer integer BOOLEAN boolean logical BIT boolean logical All Others String character
Method Summary | |
---|---|
static Object[] |
getData(String key)
Get data from a registered ResultSet. |
static int |
getDefaultNumberOfRows()
|
static void |
register(String key,
ResultSet set)
Register a ResultSet in the Hashtable of known sets. |
static void |
setDefaultNumberOfRows(int nrow)
Specify the default number of rows. |
static void |
unregister(String key)
Unregister a ResultSet from the Hashtable of known sets. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void register(String key, ResultSet set)
public static void unregister(String key)
public static void setDefaultNumberOfRows(int nrow)
public static int getDefaultNumberOfRows()
public static Object[] getData(String key) throws SQLException
key
- used to register the ResultSet in the Hashtable of known
ResultSets.
Throws
- an SQLException if an error occurs accessing the ResultSet.
SQLException
|
S-PLUS Connect/Java v1.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |