File tree Expand file tree Collapse file tree
database-parser/java/app/src/main/java/com/smc/connector Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com .smc .connector .controller ;
22
33import com .smc .connector .util .AsyncTask ;
4- import com .smc .connector .model .DatabaseRequest ;
4+ import com .smc .connector .model .DatabaseRequestModel ;
55import org .springframework .http .MediaType ;
66import org .springframework .stereotype .Controller ;
77import org .springframework .web .bind .annotation .PostMapping ;
1111import java .util .Map ;
1212
1313@ Controller
14- public class DatabaseController {
14+ public class DatabaseRequestController {
1515 @ PostMapping (path = "/getData" , consumes = MediaType .APPLICATION_JSON_VALUE )
1616 @ ResponseBody
1717 public String getData (@ RequestBody Map model ) {
18- AsyncTask asyncTask = new AsyncTask (new DatabaseRequest (model ));
18+ AsyncTask asyncTask = new AsyncTask (new DatabaseRequestModel (model ));
1919
2020 asyncTask .start ();
2121
Original file line number Diff line number Diff line change 55import java .sql .*;
66import java .util .*;
77
8- public class DatabaseRequest extends Request {
9- public DatabaseRequest (Map model ) {
8+ public class DatabaseRequestModel extends Request {
9+ public DatabaseRequestModel (Map model ) {
1010 super (model );
1111 this ._jdbcUrl = (String ) model .get ("url" );
1212 this ._database = (String ) model .get ("database" );
You can’t perform that action at this time.
0 commit comments