<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: DJ  
    $Date: 2013-3-26 下午9:30:09  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="CUX_EBANK_CMB_LOGS">
    <bm:fields>
        <bm:field name="log_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="LOG_ID"/>
        <bm:field name="interface_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="INTERFACE_ID"/>
        <bm:field name="log_date" databaseType="DATE" datatype="java.lang.String" physicalName="LOG_DATE" prompt="SCH111.SCH_CONCURRENT_JOB_LOG.LOG_DATE"/>
        <bm:field name="log_message" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ERROR_MESSAGE" prompt="SCH111.SCH_CONCURRENT_JOB_LOG.ERROR_MESSAGE"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="log_id"/>
    </bm:primary-key>
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
    			select l.log_id,
				       l.interface_id,
				       to_char(l.log_date, 'yyyy-mm-dd hh24:mi:ss') as log_date,
				       l.log_message
				  from hls_ebank_logs l
				 #WHERE_CLAUSE#
				 ORDER BY l.log_id desc
    		]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:data-filters>
        <bm:data-filter name="interface_id" enforceOperations="query" expression="interface_id=${@interface_id}"/>
    </bm:data-filters>
</bm:model>
