fetchCachedRowSet

A simple wrapper to ease the use of JDBC for novices. Returns the results of a query in the form of a JDBC CachedRowSet. Errors in the SQL are the user's responsibility. Any exceptions are logged and squashed. The underlying query is closed.

The connection should be open and is not closed during this function. It is the caller's responsibility to close the connection when appropriate.

Return

the results of the query or null if there was a problem

Parameters

connection

A valid and open connection to a database.

sql

an SQL text string that is valid