<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: gaoyang  
    $Date: 2014-4-9 上午10:23:32  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT
                    nvl(h.clob_validation_sql,h.validation_sql) validation_sql
                FROM
                    hls_doc_layout_config h
                WHERE
                    h.layout_code = ${@layout_code} AND
                    h.tab_code    = ${@tab_code} AND
                    h.column_name = upper(${@column_name})
            ]]></bm:query-sql>
            <bm:parameters>
                <bm:parameter name="layout_code"/>
                <bm:parameter name="tab_code"/>
                <bm:parameter name="column_name"/>
            </bm:parameters>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="validation_sql" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="VALIDATION_SQL"/>
    </bm:fields>
</bm:model>
