|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evanmclean.evlib.sql.Rs
public final class Rs
A bunch of static utility functions related to result sets.
Method Summary | |
---|---|
static Double |
getDouble(ResultSet rs,
int col_idx)
Retrieves a double from a result set, checking for null. |
static Double |
getDouble(ResultSet rs,
String col_name)
Retrieves a double from a result set, checking for null. |
static Integer |
getInt(ResultSet rs,
int col_idx)
Retrieves an integer from a result set, checking for null. |
static Integer |
getInt(ResultSet rs,
String col_name)
Retrieves an integer from a result set, checking for null. |
static Integer |
getIntZN(ResultSet rs,
int col_idx)
Retrieves an integer from a result set, nulls and zeros return null. |
static Integer |
getIntZN(ResultSet rs,
String col_name)
Retrieves an integer from a result set, nulls and zeros return null. |
static String |
getTrimString(ResultSet rs,
int col_idx)
Retrieves a trimmed string from a result set. |
static String |
getTrimString(ResultSet rs,
String col_name)
Retrieves a trimmed string from a result set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Double getDouble(ResultSet rs, int col_idx) throws SQLException
rs
- The result set.col_idx
- The index of the column to retrieve.
SQLException
public static Double getDouble(ResultSet rs, String col_name) throws SQLException
rs
- The result set.col_name
- The name of the column to retrieve.
SQLException
public static Integer getInt(ResultSet rs, int col_idx) throws SQLException
rs
- The result set.col_idx
- The index of the column to retrieve.
SQLException
public static Integer getInt(ResultSet rs, String col_name) throws SQLException
rs
- The result set.col_name
- The name of the column to retrieve.
SQLException
public static Integer getIntZN(ResultSet rs, int col_idx) throws SQLException
rs
- The result set.col_idx
- The index of the column to retrieve.
SQLException
public static Integer getIntZN(ResultSet rs, String col_name) throws SQLException
rs
- The result set.col_name
- The name of the column to retrieve.
SQLException
public static String getTrimString(ResultSet rs, int col_idx) throws SQLException
rs
- The result set.col_idx
- The index of the column to retrieve.
SQLException
public static String getTrimString(ResultSet rs, String col_name) throws SQLException
rs
- The result set.col_name
- The name of the column to retrieve.
SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |