com.bm.utils
Class SQLUtils

java.lang.Object
  extended by com.bm.utils.SQLUtils

public final class SQLUtils
extends java.lang.Object

Untility class for SQL operations.

Author:
Daniel Wiese, Daniel Wiese

Method Summary
static void cleanup(java.sql.Connection con)
          Close the resources.
static void cleanup(java.sql.Connection con, java.sql.PreparedStatement prst)
          Close the resources.
static void cleanup(java.sql.Connection con, java.sql.PreparedStatement prst, java.sql.ResultSet rs)
          Close the resources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

cleanup

public static void cleanup(java.sql.Connection con,
                           java.sql.PreparedStatement prst,
                           java.sql.ResultSet rs)
Close the resources.

Parameters:
con - -connection
prst - - prepared statement
rs - - result set

cleanup

public static void cleanup(java.sql.Connection con)
Close the resources.

Parameters:
con - -connection

cleanup

public static void cleanup(java.sql.Connection con,
                           java.sql.PreparedStatement prst)
Close the resources.

Parameters:
con - -connection
prst - - prepared statement


Copyright © 2008. All Rights Reserved.