|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jtheque.utils.DatabaseUtils
public final class DatabaseUtils
An utility class for database use.
Method Summary | |
---|---|
static void |
close(Connection connection)
Close the connection. |
static void |
close(ResultSet rs)
Close the result set. |
static void |
close(Statement statement)
Close the statement. |
static Collection<Integer> |
getAllIntResults(ResultSet rs,
String column)
Return all the results of the specified column. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void close(ResultSet rs)
rs
- The result set to close.public static void close(Statement statement)
statement
- The statement to close.public static void close(Connection connection)
connection
- The connection to close.public static Collection<Integer> getAllIntResults(ResultSet rs, String column)
rs
- The result set.column
- The column to get the data from.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |