package com.eactive.eai.batch.rule.nodeinfo; 

import com.eactive.eai.common.dao.Keys;

public interface NodeInfoQuery 
{ 
    /* DB컬럼명 변경으로 인한 수정 - by kscheon
    public static final String GET_ALL_NODES =  
        " select " + 
        " RuleCode,      PhaseCode, " + 
        " PhaseType,     FlowComp, " + 
        " TelegramID,   LengthField, Desc " +        
        " from " + Keys.TABLE_OWNER + "tseaibr03 " ;
    */
    public static final String GET_ALL_NODES =  
        " select " + 
        " BjobBzwkPrcssDstcd,      BjobStgeDstcd, " + 
        " BjobStgePtrnName,     BjobFlowCmpoName, " + 
        " TelgmClsID,   UnitTelgmLen, BjobNodeDesc " +        
        " from " + Keys.TABLE_OWNER + "tseaibr03 " ;
    
    /**
     * 지정된 RuleCode에 해당 하는 노드를 리턴해 준다.
     */
    /* DB컬럼명 변경으로 인한 수정 - by kscheon
    public static final String GET_PHASE_NODEINFO =  
        " select " + 
        " RuleCode,      PhaseCode, " + 
        " PhaseType,     FlowComp, " + 
        " TelegramID, LengthField, Desc " +
        " from " + Keys.TABLE_OWNER + "tseaibr03 " + 
        " where RuleCode = ? " + 
        " and   UPPER(PhaseCode) = ? ";
    */
    public static final String GET_PHASE_NODEINFO =  
        " select " + 
        " BjobBzwkPrcssDstcd,      BjobStgeDstcd, " + 
        " BjobStgePtrnName,     BjobFlowCmpoName, " + 
        " TelgmClsID, UnitTelgmLen, BjobNodeDesc " +
        " from " + Keys.TABLE_OWNER + "tseaibr03 " + 
        " where BjobBzwkPrcssDstcd = ? " + 
        " and   UPPER(BjobStgeDstcd) = ? ";
    
    /**
     * 지정된 RuleCode 를 가지고 NodeInfo 리스트를 리턴해준다.
     */
    /* DB컬럼명 변경으로 인한 수정 - by kscheon
    public static final String GET_NODEINFO_LIST =  
        " select " + 
        " RuleCode,      PhaseCode, " + 
        " PhaseType,     FlowComp, " + 
        " TelegramID, LengthField, Desc " +        
        " from " + Keys.TABLE_OWNER + "tseaibr03 " + 
        " where UPPER(RuleCode) = ? " ;
    */
    public static final String GET_NODEINFO_LIST =  
        " select " + 
        " BjobBzwkPrcssDstcd,      BjobStgeDstcd, " + 
        " BjobStgePtrnName,     BjobFlowCmpoName, " + 
        " TelgmClsID, UnitTelgmLen, BjobNodeDesc " +        
        " from " + Keys.TABLE_OWNER + "tseaibr03 " + 
        " where UPPER(BjobBzwkPrcssDstcd) = ? " ;
        
} 
