Package com.dbanalyzer.controller
Class DatabaseConnectionController
java.lang.Object
com.dbanalyzer.controller.DatabaseConnectionController
@Controller
@RequestMapping("/connections")
public class DatabaseConnectionController
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void>
deleteConnection
(Long id) editConnection
(Long id, org.springframework.ui.Model model) org.springframework.http.ResponseEntity<Integer>
getDefaultPort
(DatabaseType databaseType) listConnections
(org.springframework.ui.Model model) newConnection
(org.springframework.ui.Model model) saveConnection
(DatabaseConnection connection) testConnection
(DatabaseConnection connection) updateConnection
(Long id, DatabaseConnection connection)
-
Constructor Details
-
DatabaseConnectionController
public DatabaseConnectionController()
-
-
Method Details
-
newConnection
-
listConnections
-
editConnection
-
saveConnection
-
updateConnection
@PostMapping("/update/{id}") public String updateConnection(@PathVariable Long id, @ModelAttribute DatabaseConnection connection) -
deleteConnection
-
testConnection
@PostMapping("/test") @ResponseBody public org.springframework.http.ResponseEntity<Map<String,Object>> testConnection(@RequestBody DatabaseConnection connection) -
getDefaultPort
@GetMapping("/default-port/{databaseType}") @ResponseBody public org.springframework.http.ResponseEntity<Integer> getDefaultPort(@PathVariable DatabaseType databaseType)
-