public class HibernateHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanupDB(java.sql.ResultSet rs)
Helper function for cleaning up all DB objects
|
static void |
cleanupDB(java.sql.ResultSet rs,
java.sql.Statement stmt)
Helper function for cleaning up all DB objects
|
static void |
cleanupDB(java.sql.Statement stmt)
Helper function for cleaning up all DB objects
|
public static void cleanupDB(java.sql.ResultSet rs)
rs - JDBC ResultSet to be closed.public static void cleanupDB(java.sql.Statement stmt)
stmt - Statement to be closed.public static void cleanupDB(java.sql.ResultSet rs,
java.sql.Statement stmt)
throws java.lang.RuntimeException
rs - The resultSet to closestmt - The preparedStatement to closejava.lang.RuntimeException - in case of SQLException