<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="delete">
            <bm:update-sql><![CDATA[ begin
			 syn_data_synchronization_pkg.delete_data_synchronization(
				${@data_synchronization_id},
				${/session/@user_id}
				);
		end;
		]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[ begin
		syn_data_synchronization_pkg.update_synonym_synchronization(
		    p_synonym_id => ${@data_synchronization_id},
			p_synonym_name => ${@data_synchronization_code},
			p_synonym_desc => ${@data_synchronization_desc},
			p_synonym_source => ${@synchronization_sql},
			p_seq_number => ${@seq_number},
			p_enabled_flag => nvl(${@enabled_flag},'N'),
			p_system_flag => 'N',
			p_dblink_name => ${@dbname},
			p_user_id => ${/session/@user_id});
	 end;
	 ]]></bm:update-sql>
            <bm:parameters>
                <bm:parameter name="data_synchronization_id" dataType="java.lang.Long" input="true" inputPath="@data_synchronization_id" output="true" outputPath="@data_synchronization_id"/>
            </bm:parameters>
        </bm:operation>
    </bm:operations>
</bm:model>
