|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.db.DbUtil
public class DbUtil
Various DB utilities.
| Constructor Summary | |
|---|---|
DbUtil()
|
|
| Method Summary | |
|---|---|
static void |
close(java.sql.ResultSet resultSet)
Closes result set safely without throwing an exception. |
static void |
close(java.sql.Statement statement)
Closes statement safely 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. |
static void |
setPreparedStatementObject(java.sql.PreparedStatement preparedStatement,
int index,
java.lang.Object value,
int targetSqlType)
Sets prepared statement object using target SQL type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbUtil()
| Method Detail |
|---|
public static void close(java.sql.Statement statement)
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 static void setPreparedStatementObject(java.sql.PreparedStatement preparedStatement,
int index,
java.lang.Object value,
int targetSqlType)
throws java.sql.SQLException
java.sql.SQLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||