<?xml version="1.0" encoding="UTF-8"?> <bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm"> <bm:operations> <bm:operation name="query"> <bm:query-sql><![CDATA[select t.bank_code, t.bank_code||'-'||t.bank_short_name bank_code_name, t.bank_short_name bank_name, t.bank_full_name BANK_NAME_ALT, t.bank_type, t.zero_amounts_allowed, t.enabled_flag from csh_bank_v t #WHERE_CLAUSE# order by bank_code]]></bm:query-sql> </bm:operation> </bm:operations> <bm:fields> <bm:field name="bank_code" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="200" forDisplay="true" forQuery="true" physicalName="BANK_CODE" prompt="HLS.BANK_CODE"/> <bm:field name="bank_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BANK_NAME"/> <bm:field name="bank_name_alt" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="300" forDisplay="true" forQuery="true" physicalName="BANK_NAME_ALT" prompt="HLS.BANK_FULL_NAME"/> <bm:field name="bank_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BANK_TYPE"/> <bm:field name="zero_amounts_allowed" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ZERO_AMOUNTS_ALLOWED"/> <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG"/> <bm:field name="bank_code_name"/> </bm:fields> <bm:query-fields> <bm:query-field name="bank_code" queryExpression="bank_code like '%'||upper(${@bank_code})||'%'"/> <bm:query-field name="bank_name" queryExpression="bank_short_name like '%'||${@bank_name}||'%'"/> <bm:query-field name="bank_name_alt" queryExpression="bank_full_name like '%'||${@bank_name_alt}||'%'"/> <bm:query-field name="bank_type" queryExpression="bank_type = ${@bank_type}"/> <bm:query-field field="enabled_flag" queryOperator="="/> </bm:query-fields> </bm:model>