Class SQLController


  • @Controller
    public class SQLController
    extends java.lang.Object
    SQL 실행 관련 Controller
    Version:
    1.0
    Author:
    Wooyoung Lee
    • Constructor Summary

      Constructors 
      Constructor Description
      SQLController()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void runRuleSQL​(javax.servlet.http.HttpServletResponse response, java.lang.String presentVersion, Rule rule)
      query를 받아서 sql 쿼리문을 실행하고 그 결과를 DB에 저장
      void runSQL​(javax.servlet.http.HttpServletResponse response, java.lang.String query)
      query를 받아서 SQL을 실행
      java.lang.String sqlExecutePage()
      SQL 실행 페이지로 이동
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SQLController

        public SQLController()
    • Method Detail

      • sqlExecutePage

        @GetMapping("/runSQLPage")
        public java.lang.String sqlExecutePage()
        SQL 실행 페이지로 이동
        Returns:
        SQL 실행 페이지
      • runSQL

        @ResponseBody
        @RequestMapping(value="/runSQL",
                        method=POST)
        public void runSQL​(javax.servlet.http.HttpServletResponse response,
                           @RequestParam("query")
                           java.lang.String query)
        query를 받아서 SQL을 실행
        Parameters:
        response - 보낼 응답
        query - 실행 시킬 쿼리문
      • runRuleSQL

        @ResponseBody
        @PostMapping("/runRuleSQL")
        public void runRuleSQL​(javax.servlet.http.HttpServletResponse response,
                               java.lang.String presentVersion,
                               Rule rule)
        query를 받아서 sql 쿼리문을 실행하고 그 결과를 DB에 저장
        Parameters:
        response - 사용자에게 전달할 응답
        presentVersion - 현재 버전
        rule - query문이 담긴 Rule 객체