Right now the select returns a ResultSet but can not be used due to the fact that the connection to the database is closed in the select method.
We need to create a wrapper class which has the ResultSet, the Statement and the DatabaseConnection and the user should be one which closes the connection after using the result set returned.
Right now the select returns a
ResultSet
but can not be used due to the fact that the connection to the database is closed in the select method.We need to create a wrapper class which has the
ResultSet
, theStatement
and theDatabaseConnection
and the user should be one which closes the connection after using the result set returned.