Fixed missing close statements and cleaned up imports

This commit is contained in:
ejentzsx
2015-01-09 11:58:14 +01:00
parent b8126f36dc
commit b34b836b5f
3 changed files with 11 additions and 8 deletions
@@ -34,14 +34,20 @@ public class SQLiteDatabase implements IDatabase {
@Override
public void close(ResultSet resultSet, Statement statement, Connection connection) {
// TODO Auto-generated method stub
try {
resultSet.close();
statement.close();
connection.close();
} catch (SQLException e) {}
}
@Override
public void close(PreparedStatement preparedStatement, Connection connection) {
// TODO Auto-generated method stub
try {
preparedStatement.close();
connection.close();
} catch (SQLException e) {}
}
}