|
|
@ -94,12 +94,14 @@ public class OperationManagementDAOFactory {
|
|
|
|
public static void closeConnection() throws OperationManagementDAOException {
|
|
|
|
public static void closeConnection() throws OperationManagementDAOException {
|
|
|
|
|
|
|
|
|
|
|
|
Connection con = currentConnection.get();
|
|
|
|
Connection con = currentConnection.get();
|
|
|
|
try {
|
|
|
|
if (con != null) {
|
|
|
|
con.close();
|
|
|
|
try {
|
|
|
|
} catch (SQLException e) {
|
|
|
|
con.close();
|
|
|
|
log.error("Error occurred while close the connection");
|
|
|
|
} catch (SQLException e) {
|
|
|
|
|
|
|
|
log.error("Error occurred while close the connection");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
currentConnection.remove();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
currentConnection.remove();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static void commitTransaction() throws OperationManagementDAOException {
|
|
|
|
public static void commitTransaction() throws OperationManagementDAOException {
|
|
|
|