package com.eactive.eai.adapter.wca.cfg; 

import com.eactive.eai.adapter.wca.servlet.TableInfoEx;

/** 
* 1. 기능 : LU 호스트 관리 SQL Query문을 정의한 인터페이스
* 2. 처리 개요 : 
* 3. 주의사항 
*
* @author  : 
* @version : v 1.0.0
* @see     : 관련 기능을 참조
* @since   :  
*/
public interface LUHostQueryEx 
{
   /**
    *  노드 이름에 해당하는 LU 호스트 SELECT QUERY
    */
    public static final String GET_ALL_LU_HOST  = "SELECT SNAAdptrSevrName, SNAAdptrSevrIPName, SNAAdptrSevrCtnt " +
                                                  "FROM " + TableInfoEx.T_LU_HOST + " where 1=1 " + 
                                                  " ORDER BY SNAAdptrSevrName ";   
   /**
    *  LU 호스트 INSERT QUERY
    */
    public static final String INSERT_LU_HOST  =  "INSERT INTO "+ TableInfoEx.T_LU_HOST + 
													    " (SNAAdptrSevrName, SNAAdptrSevrIPName, SNAAdptrSevrCtnt ) " + 
													    "VALUES(?, ?, ?)";    
   
   /**
    *  LU 호스트 DELETE QUERY
    */
    public static final String DELETE_LU_HOST  =  "DELETE FROM "+ TableInfoEx.T_LU_HOST + 
                                                        " WHERE SNAAdptrSevrName=?";
    
    /**
    *  LU 호스트 UPDATE QUERY
    */
    public static final String UPDATE_LU_HOST  =  "UPDATE  "+ TableInfoEx.T_LU_HOST + 
													    " SET SNAAdptrSevrIPName=?, SNAAdptrSevrCtnt=? " + 
													    "WHERE SNAAdptrSevrName=? ";
} 
