Revision as of 16:34, 22 March 2011 by Han84 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/**
 * Get the Statement from SQL Connection.
 * @param conn the SQL Connection
 * @return
 */
public static java.sql.Statement sqlGetStatement(java.sql.Connection conn) {
	java.sql.Statement stat = null;
	try {
//			stat = conn.createStatement();
		stat = conn.createStatement(java.sql.ResultSet.TYPE_SCROLL_SENSITIVE, java.sql.ResultSet.CONCUR_READ_ONLY);
	} catch (java.sql.SQLException ex) {
		Ts.printErr(ex);
	}
	return stat;
}


Back to JavaHowTo

Alumni Liaison

Abstract algebra continues the conceptual developments of linear algebra, on an even grander scale.

Dr. Paul Garrett