com.easyjf.dbo
Class JDBCUtil

java.lang.Object
  extended bycom.easyjf.dbo.JDBCUtil

public abstract class JDBCUtil
extends java.lang.Object


Constructor Summary
JDBCUtil()
           
 
Method Summary
static java.util.List resultSet2List(java.sql.ResultSet rs)
           
static java.util.Map resultSet2Map(java.sql.ResultSet rs)
           
static void setQueryParam(java.lang.Object obj, int column, java.sql.PreparedStatement ps)
           
static void setQueryParams(java.util.Collection queryParams, java.sql.PreparedStatement ps)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCUtil

public JDBCUtil()
Method Detail

setQueryParams

public static void setQueryParams(java.util.Collection queryParams,
                                  java.sql.PreparedStatement ps)
                           throws java.lang.Exception
Throws:
java.lang.Exception

resultSet2List

public static java.util.List resultSet2List(java.sql.ResultSet rs)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

resultSet2Map

public static java.util.Map resultSet2Map(java.sql.ResultSet rs)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

setQueryParam

public static void setQueryParam(java.lang.Object obj,
                                 int column,
                                 java.sql.PreparedStatement ps)