org.kuali.common.jdbc
Class JdbcUtils

java.lang.Object
  extended by org.kuali.common.jdbc.JdbcUtils

public class JdbcUtils
extends Object


Constructor Summary
JdbcUtils()
           
 
Method Summary
static void closeQuietly(DataSource dataSource, Connection conn)
           
static void closeQuietly(DataSource dataSource, Connection conn, Statement statement)
           
static void closeQuietly(Statement statement)
           
static long getSqlCount(List<SqlSupplier> suppliers)
          Return a count of the total number of SQL statements contained in suppliers.
static SqlMetaData getSqlMetaData(BufferedReader in, SqlReader reader)
           
static long getSqlSize(List<SqlSupplier> suppliers)
          Return the total size of the SQL statements contained in suppliers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcUtils

public JdbcUtils()
Method Detail

getSqlSize

public static long getSqlSize(List<SqlSupplier> suppliers)
Return the total size of the SQL statements contained in suppliers. Assumes suppliers has had its SqlMetaData filled in.


getSqlCount

public static long getSqlCount(List<SqlSupplier> suppliers)
Return a count of the total number of SQL statements contained in suppliers. Assumes suppliers has had its SqlMetaData filled in.


closeQuietly

public static final void closeQuietly(DataSource dataSource,
                                      Connection conn,
                                      Statement statement)

closeQuietly

public static final void closeQuietly(Statement statement)

closeQuietly

public static final void closeQuietly(DataSource dataSource,
                                      Connection conn)

getSqlMetaData

public static SqlMetaData getSqlMetaData(BufferedReader in,
                                         SqlReader reader)
                                  throws IOException
Throws:
IOException


Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.