package com.eactive.eai.inbound.remote;

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

public interface RemoteTransferLogQuery
{

    public static final String INSERT_REMOTE_TRANSFER_LOG =
          "INSERT INTO " + Keys.TABLE_OWNER + "TSEAIBU03 ( \n"
        + "       FileTrsmtLogID                         ,\n"
        + "       FileTrsmtStartPtrnDstcd                ,\n"
        + "       FileTrsmtStartHMS                      ,\n"
        + "       FileTrsmtEndHMS                        ,\n"
        + "       BjobBzwkDstcd                          ,\n"
        + "       OsidInstiDstcd                         ,\n"
        + "       BjobMsgDstcd                           ,\n"
        + "       FileTrsmtPathName                      ,\n"
        + "       TrsmtFileName                          ,\n"
        + "       RmtFileTrsmtPathName                   ,\n"
        + "       RmtTrsmtFileName                       ,\n"
        + "       FileTrsmtSize                          ,\n"
        + "       ThisMsgRegsntID                        ,\n"
        + "       ThisMsgRegiHMS                         ,\n"
        + "       ThisStgePrcssRsultCd                   ,\n"
        + "       SendRecvYn                             ,\n"
        + "       ObstclOccurCausCtnt                    )\n"
        + "VALUES (                                           \n"
        + "       ?                                          ,\n"
        + "       ?                                          ,\n"
        + "       ?                                          ,\n"
        + "       ?                                          ,\n"
        + "       ?                                          ,\n"
        + "       ?                                          ,\n"
        + "       ?                                          ,\n"
        + "       ?                                          ,\n"
        + "       ?                                          ,\n"
        + "       ?                                          ,\n"
        + "       ?                                          ,\n"
        + "       ?                                          ,\n"
        + "       ?                                          ,\n"
        + "       TO_CHAR(SYSTIMESTAMP,'YYYYMMDDHH24MISSFF3'),\n"
        + "       ?                                          ,\n"
        + "       ?                                          ,\n"
        + "       ?                                          )";

    public static final String UPDATE_REMOTE_TRANSFER_LOG =
          "UPDATE " + Keys.TABLE_OWNER + "TSEAIBU03\n"
        + "SET    FileTrsmtStartPtrnDstcd = ?, \n"
        + "       FileTrsmtStartHMS       = ?, \n"
        + "       FileTrsmtEndHMS         = ?, \n"
        + "       BjobBzwkDstcd           = ?, \n"
        + "       OsidInstiDstcd          = ?, \n"
        + "       BjobMsgDstcd            = ?, \n"
        + "       FileTrsmtPathName       = ?, \n"
        + "       TrsmtFileName           = ?, \n"
        + "       RmtFileTrsmtPathName    = ?, \n"
        + "       RmtTrsmtFileName        = ?, \n"
        + "       FileTrsmtSize           = ?, \n"
        + "       ThisMsgRegsntID         = ?, \n"
        + "       ThisStgePrcssRsultCd    = ?, \n"
        + "       SendRecvYn              = ?, \n"
        + "       ObstclOccurCausCtnt     = ?  \n"
        + "WHERE  FileTrsmtLogID          = ?  ";

    public static final String SELECT_REMOTE_TRANSFER_LOG =
        "SELECT FileTrsmtStartPtrnDstcd   ,\n"
      + "       FileTrsmtStartHMS         ,\n"
      + "       FileTrsmtEndHMS           ,\n"
      + "       BjobBzwkDstcd             ,\n"
      + "       OsidInstiDstcd            ,\n"
      + "       BjobMsgDstcd              ,\n"
      + "       FileTrsmtPathName         ,\n"
      + "       TrsmtFileName             ,\n"
      + "       RmtFileTrsmtPathName      ,\n"
      + "       RmtTrsmtFileName          ,\n"
      + "       FileTrsmtSize             ,\n"
      + "       ThisMsgRegsntID           ,\n"
      + "       ThisStgePrcssRsultCd      ,\n"
      + "       SendRecvYn                ,\n"
      + "       ObstclOccurCausCtnt        \n"
      + "FROM " + Keys.TABLE_OWNER + "TSEAIBU03\n"
      + "WHERE  FileTrsmtLogID          = ?  ";
}
