| java.lang.Object org.dbunit.util.SQLHelper
SQLHelper | public class SQLHelper (Code) | | Helper for SQL-related stuff.
TODO: testcases
author: Felipe Leme version: $Revision: 554 $ since: Nov 5, 2005 |
close | public static void close(ResultSet rs, Statement stmt) throws SQLException(Code) | | Close a result set and a prepared statement, checking for null references.
Parameters: rs - result set to be closed Parameters: stmt - prepared statement to be closed throws: SQLException - exception raised in either close() method |
close | public static void close(Statement stmt) throws SQLException(Code) | | Close a preparement statement, checking for null references.
Parameters: rs - result set to be closed Parameters: stmt - statement to be closed throws: SQLException - exception raised while closing the statement |
getPrimaryKeyColumn | public static String getPrimaryKeyColumn(Connection conn, String table) throws SQLException(Code) | | Gets the primary column for a table.
Parameters: conn - connection with the database Parameters: table - table name name of primary column for a table (assuming it's just 1 column). throws: SQLException - raised while getting the meta data |
|
|