HANDLE, SITE, RESOURCE_BO, RESRCE, USER_ID, TEMPORARY_USER, STATUS, CREATE_USER, CREATED_DATE_TIME, MODIFY_USER, MODIFIED_DATE_TIME INSERT INTO Z_USER_RESOURCE HANDLE, SITE, RESOURCE_BO, RESRCE, USER_ID, TEMPORARY_USER, STATUS, CREATE_USER, CREATED_DATE_TIME, MODIFY_USER, MODIFIED_DATE_TIME, VALUES #{handle}, #{site}, #{resourceBo}, #{resrce}, #{userId}, #{temporaryUser}, #{status}, #{createUser}, #{createdDateTime}, #{modifyUser}, #{modifiedDateTime}, INSERT INTO Z_USER_RESOURCE VALUES #{handle}, #{site}, #{resourceBo}, #{resrce}, #{userId}, #{temporaryUser}, #{status}, #{createUser}, #{createdDateTime}, #{modifyUser}, #{modifiedDateTime}, UPDATE Z_USER_RESOURCE SITE=#{et.site}, RESOURCE_BO=#{et.resourceBo}, RESRCE=#{et.resrce}, USER_ID=#{et.userId}, TEMPORARY_USER=#{et.temporaryUser}, STATUS=#{et.status}, CREATE_USER=#{et.createUser}, CREATED_DATE_TIME=#{et.createdDateTime}, MODIFY_USER=#{et.modifyUser}, MODIFIED_DATE_TIME=#{et.modifiedDateTime}, WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL} UPDATE Z_USER_RESOURCE SITE=#{et.site}, RESOURCE_BO=#{et.resourceBo}, RESRCE=#{et.resrce}, USER_ID=#{et.userId}, TEMPORARY_USER=#{et.temporaryUser}, STATUS=#{et.status}, CREATE_USER=#{et.createUser}, CREATED_DATE_TIME=#{et.createdDateTime}, MODIFY_USER=#{et.modifyUser}, MODIFIED_DATE_TIME=#{et.modifiedDateTime}, WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL} UPDATE Z_USER_RESOURCE SITE=#{et.site}, RESOURCE_BO=#{et.resourceBo}, RESRCE=#{et.resrce}, USER_ID=#{et.userId}, TEMPORARY_USER=#{et.temporaryUser}, STATUS=#{et.status}, CREATE_USER=#{et.createUser}, CREATED_DATE_TIME=#{et.createdDateTime}, MODIFY_USER=#{et.modifyUser}, MODIFIED_DATE_TIME=#{et.modifiedDateTime}, HANDLE=#{ew.entity.handle} AND SITE=#{ew.entity.site} AND RESOURCE_BO=#{ew.entity.resourceBo} AND RESRCE=#{ew.entity.resrce} AND USER_ID=#{ew.entity.userId} AND TEMPORARY_USER=#{ew.entity.temporaryUser} 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} ${ew.sqlSegment} ${ew.sqlSegment} DELETE FROM Z_USER_RESOURCE WHERE HANDLE=#{handle} DELETE FROM Z_USER_RESOURCE ${k} = #{cm[${k}]} DELETE FROM Z_USER_RESOURCE HANDLE=#{ew.entity.handle} AND SITE=#{ew.entity.site} AND RESOURCE_BO=#{ew.entity.resourceBo} AND RESRCE=#{ew.entity.resrce} AND USER_ID=#{ew.entity.userId} AND TEMPORARY_USER=#{ew.entity.temporaryUser} 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} ${ew.sqlSegment} ${ew.sqlSegment} DELETE FROM Z_USER_RESOURCE WHERE HANDLE IN ( #{item} )