public abstract class JdbcUtils extends Object
| Constructor and Description |
|---|
JdbcUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
getResultSetValue(ResultSet rs,
int index)
Retrieve a JDBC column value from a ResultSet, using the most appropriate
value type.
|
public static Object getResultSetValue(ResultSet rs, int index) throws SQLException
Uses the getObject(index) method, but includes additional
"hacks" to get around Oracle 10g returning a non-standard object for its
TIMESTAMP datatype and a java.sql.Date for DATE columns
leaving out the time portion: These columns will explicitly be extracted
as standard java.sql.Timestamp object.
rs - is the ResultSet holding the dataindex - is the column indexSQLException - if thrown by the JDBC APIBlob,
Clob,
TimestampCopyright © 2013 Bgee - Swiss Institute of Bioinformatics. All Rights Reserved.