cristighr1995 / Holiholic

A trip planner and travel guide application which offers activity suggestions and personalized day plans based on user’s preferences and profile.
Apache License 2.0
2 stars 0 forks source link

[HH-44] Create ResultSet wrapper class for HH Database API #45

Closed roxanamacarie closed 5 years ago

roxanamacarie commented 5 years ago

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.

roxanamacarie commented 5 years ago

Related issue: https://github.com/cristighr1995/Holiholic/issues/44