com.jdon.model.query
Class JdbcUtil

java.lang.Object
  extended by com.jdon.model.query.JdbcUtil

public class JdbcUtil
extends java.lang.Object


Constructor Summary
JdbcUtil()
           
 
Method Summary
 java.util.List extract(java.sql.ResultSet rs)
          return a List in the List, every object is a map, by database column name, we can get the its result from map
 void setQueryParams(java.util.Collection queryParams, java.sql.PreparedStatement ps)
          queryParam type only support String Integer Float or Long Double Bye Short if you need operate other types, you must use JDBC directly!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcUtil

public JdbcUtil()
Method Detail

setQueryParams

public void setQueryParams(java.util.Collection queryParams,
                           java.sql.PreparedStatement ps)
                    throws java.lang.Exception
queryParam type only support String Integer Float or Long Double Bye Short if you need operate other types, you must use JDBC directly!

Throws:
java.lang.Exception

extract

public java.util.List extract(java.sql.ResultSet rs)
                       throws java.lang.Exception
return a List in the List, every object is a map, by database column name, we can get the its result from map

Parameters:
rs - ResultSet
Returns:
List
Throws:
java.lang.Exception