|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.db.ResultSetUtil
public class ResultSetUtil
Various result set utilities.
| Constructor Summary | |
|---|---|
ResultSetUtil()
|
|
| Method Summary | |
|---|---|
static void |
close(java.sql.ResultSet resultSet)
Closes provided result set without throwing an exception. |
static int |
getFirstInt(java.sql.ResultSet resultSet)
Returns int value of very first column in result set. |
static long |
getFirstLong(java.sql.ResultSet resultSet)
Returns long value of very first column in result set. |
void |
iterate(java.sql.ResultSet rs,
RowMapper mapper)
Invokes RowMapper for each row of the result set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResultSetUtil()
| Method Detail |
|---|
public static void close(java.sql.ResultSet resultSet)
public static long getFirstLong(java.sql.ResultSet resultSet)
throws java.sql.SQLException
java.sql.SQLException
public static int getFirstInt(java.sql.ResultSet resultSet)
throws java.sql.SQLException
java.sql.SQLException
public void iterate(java.sql.ResultSet rs,
RowMapper mapper)
throws java.sql.SQLException
RowMapper for each row of the result set.
java.sql.SQLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||