Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void closeStatement() throws DaoException, SQLException {
- try {
- getByIdStmt.close();
- } catch (Exception e) {
- throw new DaoException("Error! getByIdStmt is not closed");
- }
- try {
- updateStmt.close();
- } catch (Exception e) {
- throw new DaoException("Error! updateStmt is not closed");
- }
- try {
- addStmt.close();
- } catch (Exception e) {
- throw new DaoException("Error! addStmt is not closed");
- }
- try {
- deleteStmt.close();
- } catch (Exception e) {
- throw new DaoException("Error! deleteStmt is not closed");
- }
- System.out.println("Statement close");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement