<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: likun  
    $Date: 2012-6-27 上午10:24:28  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:o="leaf.database.local.oracle" xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="FND_PROGRAM_PARAMETERS">
    <bm:fields>
        <bm:field name="parameter_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PARAMETER_ID" prompt="FND_PROGRAM_PARAMETERS.PARAMETER_ID"/>
        <bm:field name="program_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PROGRAM_ID" prompt="FND_PROGRAM_PARAMETERS.PROGRAM_ID"/>
        <bm:field name="parameter_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PARAMETER_NAME" prompt="FND_PROGRAM_PARAMETERS.PARAMETER_NAME"/>
        <bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String"/>
        <bm:field name="parameter_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PARAMETER_TYPE" prompt="FND_PROGRAM_PARAMETERS.PARAMETER_TYPE"/>
        <bm:field name="parameter_type_desc" expression="(select code_value_name from sys_code_values_v  where code=&apos;REQUEST_PARAMETER_TYPE&apos; and code_value=t1.parameter_type)" forInsert="false" forUpdate="false"/>
        <bm:field name="edit_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EDIT_TYPE" prompt="FND_PROGRAM_PARAMETERS.EDIT_TYPE"/>
        <bm:field name="edit_type_desc" expression="(select code_value_name from sys_code_values_v  where code=&apos;REQUEST_PARAMETER_EDIT_TYPE&apos; and code_value=t1.edit_type)" forInsert="false" forUpdate="false"/>
        <bm:field name="parameter_sql" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PARAMETER_SQL" prompt="FND_PROGRAM_PARAMETERS.PARAMETER_SQL"/>
        <bm:field name="required_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REQUIRED_FLAG" prompt="FND_PROGRAM_PARAMETERS.REQUIRED_FLAG"/>
        <bm:field name="seq" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SEQ" prompt="FND_PROGRAM_PARAMETERS.SEQ"/>
        <bm:field name="bm" databaseType="VARCHAR2" datatype="java.lang.String"/>
        <bm:field name="valuefiled_from" databaseType="VARCHAR2" datatype="java.lang.String"/>
        <bm:field name="valuefiled_to" databaseType="VARCHAR2" datatype="java.lang.String"/>
        <bm:field name="displayfiled_from" databaseType="VARCHAR2" datatype="java.lang.String"/>
        <bm:field name="displayfiled_to" databaseType="VARCHAR2" datatype="java.lang.String"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
        <o:sequence-pk/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="parameter_id"/>
    </bm:primary-key>
    <bm:query-fields>
        <bm:query-field name="program_id" queryExpression="program_id = ${@program_id}"/>
        <bm:query-field name="parameter_id" queryExpression="parameter_id = ${@parameter_id}"/>
    </bm:query-fields>
</bm:model>
