<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
	    <bm:operation name="insert">
            <bm:update-sql><![CDATA[
    		 	 BEGIN
					insert into hl_e_archives_pool_temp
					   (primary_field,
						pool_id
						)
					values
					   (
						${@primary_field},
						${@pool_id}
					   );
				  END;
    		 ]]></bm:update-sql>
        </bm:operation>
		<bm:operation name="delete">
            <bm:update-sql><![CDATA[
    		 	begin
   				   delete from hl_e_archives_pool_temp t;
   			   end;
    		 ]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="update">
                   <bm:update-sql><![CDATA[
           		 	begin
           		 	update hl_e_archives_pool t set t.post_status='POST_FAILED' where t.pool_id=${@pool_id};
          		    end;
           		 ]]></bm:update-sql>
               </bm:operation>
    </bm:operations>
 </bm:model>
