<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<sqlMap namespace="BapCode">
	<statement id="selectDetail" resultClass="java.util.HashMap">
		SELECT 	Msg                AS "MSG" ,  
		        MsgCtnt            AS "MSGCTNT" ,  
		        TreatMatrCtnt      AS "TREATMATRCTNT" ,  
		        SMSSendYn          AS "SMSSENDYN" ,  
		        ITSMObstclGrdDstcd AS "ITSMOBSTCLGRDDSTCD"   
		FROM    $schemaId$.TSEAIBP05   
	    WHERE   MSG = #msg#
	</statement>  
	
	<statement id="update" parameterClass="java.util.HashMap" resultClass="java.lang.Integer">
		UPDATE 	$schemaId$.TSEAIBP05 SET
		        MsgCtnt            = #msgCtnt#           ,
    		    TreatMatrCtnt      = #treatMatrCtnt#     ,
    		    SMSSendYn          = #smsSendYn#         ,
    		    ITSMObstclGrdDstcd = #itsmObstclGrdDstcd#
		WHERE 	Msg = #msg#
	</statement>
	
	<statement id="insert" parameterClass="java.util.HashMap" resultClass="java.lang.Integer">
		INSERT 	INTO $schemaId$.TSEAIBP05(
				Msg, MsgCtnt, TreatMatrCtnt, SMSSendYn, ITSMObstclGrdDstcd )
				VALUES(#msg# ,#msgCtnt#, #treatMatrCtnt#, #smsSendYn#, #itsmObstclGrdDstcd#)
	</statement>
	
	<statement id="delete" parameterClass="java.util.HashMap" resultClass="java.lang.Integer">
		DELETE 	FROM $schemaId$.TSEAIBP05 WHERE Msg = #msg#
	</statement>
	
</sqlMap>
