HANDLE, SITE, INSPECTION_ITEM_NO, INSPECTION_TYPE, REVISION, CURRENT_REVISION, DESCRIPTION, STATUS, CREATE_USER, CREATED_DATE_TIME, MODIFY_USER, MODIFIED_DATE_TIME, CATEGORY INSERT INTO Z_INSPECTION_ITEM HANDLE, SITE, INSPECTION_ITEM_NO, INSPECTION_TYPE, REVISION, CURRENT_REVISION, DESCRIPTION, STATUS, CREATE_USER, CREATED_DATE_TIME, MODIFY_USER, MODIFIED_DATE_TIME, CATEGORY, VALUES #{handle}, #{site}, #{inspectionItemNo}, #{inspectionType}, #{revision}, #{currentRevision}, #{description}, #{status}, #{createUser}, #{createdDateTime}, #{modifyUser}, #{modifiedDateTime}, #{category}, INSERT INTO Z_INSPECTION_ITEM VALUES #{handle}, #{site}, #{inspectionItemNo}, #{inspectionType}, #{revision}, #{currentRevision}, #{description}, #{status}, #{createUser}, #{createdDateTime}, #{modifyUser}, #{modifiedDateTime}, #{category}, UPDATE Z_INSPECTION_ITEM SITE=#{et.site}, INSPECTION_ITEM_NO=#{et.inspectionItemNo}, INSPECTION_TYPE=#{et.inspectionType}, REVISION=#{et.revision}, CURRENT_REVISION=#{et.currentRevision}, DESCRIPTION=#{et.description}, STATUS=#{et.status}, CREATE_USER=#{et.createUser}, CREATED_DATE_TIME=#{et.createdDateTime}, MODIFY_USER=#{et.modifyUser}, MODIFIED_DATE_TIME=#{et.modifiedDateTime}, CATEGORY=#{et.category}, WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL} UPDATE Z_INSPECTION_ITEM SITE=#{et.site}, INSPECTION_ITEM_NO=#{et.inspectionItemNo}, INSPECTION_TYPE=#{et.inspectionType}, REVISION=#{et.revision}, CURRENT_REVISION=#{et.currentRevision}, DESCRIPTION=#{et.description}, STATUS=#{et.status}, CREATE_USER=#{et.createUser}, CREATED_DATE_TIME=#{et.createdDateTime}, MODIFY_USER=#{et.modifyUser}, MODIFIED_DATE_TIME=#{et.modifiedDateTime}, CATEGORY=#{et.category}, WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL} UPDATE Z_INSPECTION_ITEM SITE=#{et.site}, INSPECTION_ITEM_NO=#{et.inspectionItemNo}, INSPECTION_TYPE=#{et.inspectionType}, REVISION=#{et.revision}, CURRENT_REVISION=#{et.currentRevision}, DESCRIPTION=#{et.description}, STATUS=#{et.status}, CREATE_USER=#{et.createUser}, CREATED_DATE_TIME=#{et.createdDateTime}, MODIFY_USER=#{et.modifyUser}, MODIFIED_DATE_TIME=#{et.modifiedDateTime}, CATEGORY=#{et.category}, HANDLE=#{ew.entity.handle} AND SITE=#{ew.entity.site} AND INSPECTION_ITEM_NO=#{ew.entity.inspectionItemNo} AND INSPECTION_TYPE=#{ew.entity.inspectionType} AND REVISION=#{ew.entity.revision} AND CURRENT_REVISION=#{ew.entity.currentRevision} AND DESCRIPTION=#{ew.entity.description} AND STATUS=#{ew.entity.status} AND CREATE_USER=#{ew.entity.createUser} AND CREATED_DATE_TIME=#{ew.entity.createdDateTime} AND MODIFY_USER=#{ew.entity.modifyUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} AND CATEGORY=#{ew.entity.category} ${ew.sqlSegment} ${ew.sqlSegment} DELETE FROM Z_INSPECTION_ITEM WHERE HANDLE=#{handle} DELETE FROM Z_INSPECTION_ITEM ${k} = #{cm[${k}]} DELETE FROM Z_INSPECTION_ITEM HANDLE=#{ew.entity.handle} AND SITE=#{ew.entity.site} AND INSPECTION_ITEM_NO=#{ew.entity.inspectionItemNo} AND INSPECTION_TYPE=#{ew.entity.inspectionType} AND REVISION=#{ew.entity.revision} AND CURRENT_REVISION=#{ew.entity.currentRevision} AND DESCRIPTION=#{ew.entity.description} AND STATUS=#{ew.entity.status} AND CREATE_USER=#{ew.entity.createUser} AND CREATED_DATE_TIME=#{ew.entity.createdDateTime} AND MODIFY_USER=#{ew.entity.modifyUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} AND CATEGORY=#{ew.entity.category} ${ew.sqlSegment} ${ew.sqlSegment} DELETE FROM Z_INSPECTION_ITEM WHERE HANDLE IN ( #{item} )