This method sets the module status to Closed. This information is absorbed by the Tournament Floor Plan @param ApplicationRoot Current running director of the application @param moduleId The identifier of the module that is been set to closed status @return Boolean result depicting success of statem
(String ApplicationRoot, String moduleId)
| 436 | * @return Boolean result depicting success of statement |
| 437 | */ |
| 438 | public static boolean setModuleStatusClosed (String ApplicationRoot, String moduleId) |
| 439 | { |
| 440 | log.debug("*** Setter.setModuleStatusClosed ***"); |
| 441 | boolean result = false; |
| 442 | Connection conn = Database.getCoreConnection(ApplicationRoot); |
| 443 | try |
| 444 | { |
| 445 | CallableStatement callstmt = conn.prepareCall("call moduleSetStatus(?, ?)"); |
| 446 | log.debug("Preparing moduleSetStatus procedure"); |
| 447 | callstmt.setString(1, moduleId); |
| 448 | callstmt.setString(2, "closed"); |
| 449 | callstmt.execute(); |
| 450 | log.debug("Executed moduleSetStatus"); |
| 451 | result = true; |
| 452 | } |
| 453 | catch (SQLException e) |
| 454 | { |
| 455 | log.error("Could not execute moduleSetStatus: " + e.toString()); |
| 456 | } |
| 457 | Database.closeConnection(conn); |
| 458 | log.debug("*** END setModuleStatusClosed ***"); |
| 459 | return result; |
| 460 | } |
| 461 | |
| 462 | /** |
| 463 | * This method sets the module status to Open. This information is absorbed by the Tournament Floor Plan |