wms - SearchKey & AlterKey 使用
来源:互联网 发布:微雕大师软件 编辑:程序博客网 时间:2024/06/11 22:03
SearchKey
1、设置 SQL 语句 where 后面的条件部分:
a、通用方法,SearchKey.setKey( FieldName field, String value );
b、子类具体的方法,ItemSearchKey.setItemCode( String value );
优先选择第二种,这样看着更清晰。
2、表的连接
public void setJoin(FieldName field1, String field1Postfix, FieldName field2, String field2Postfix)例如(searchKey 为 ItemSearchKey 的实例 )
searchKey.setJoin( Stock.ITEM_CODE, "", Item.ITEM_CODE, "(+)" )
等价于: select * from Stock left join Item ...
3、查询结果的排序
searchKey.setItemCodeOrder( true )
true ---> 升序
false ----> 降序
4、查询结果的分组
searchKey.setGroup( Item.ITEM_CODE );
5、查询字段的筛选
searchKey.setCollect(new FieldName(Item.STORE_NAME, FieldName.ALL_FIELDS));
searchKey.setCollect(Stock.CONSIGNOR_CODE);
调用 SQL 内部函数(如:MAX,AVG...)后列名筛选:
searchKey.setCollect(PCTRetPlan.CONSIGNOR_NAME, "MAX", CONSIGNOR_NAME);
AlterKey
1、设置 SQL 语句的 where 后面的条件部分
a、通用方法:AlterKey.setKey( FieldName field, String value );
b、子类具体方法:ItemAlterKey.setItemCode( String value );
2、设置 SQL 语句字段赋值部分
ItemAlterKey.updateItemCode( String value );
- wms - SearchKey & AlterKey 使用
- WMS-SearchKey/AlterKey 数组参数注意
- 使用LoadRunner测试WMS
- 什么是金蝶WMS系统金蝶WMS系统功能,使用仓库WMS系统,金蝶WMS有什么好处
- 使用天地图api访问本地wms
- openlayers使用geoser的WMS协议
- 如何使用GeoServer发布WMS服务
- linux 下使用mapscript开发wms环境搭建篇
- 初用WMS~~~
- 什么是WMS
- geoserver-wms
- WMS服务
- WMS GetCapabilities
- WMS介绍
- 什么是WMS
- WMS系统
- WMS琐碎
- 使用GeoServer发布shp数据为WMS服务和WFS服务(图文教程)
- js各种验证文本框输入格式
- 更改SQLServer实例默认字符集
- android skia 中skpaint 的setXfermode属性
- android 上下左右手势判断 根据别人的改的
- extJS 在面向对象方面的支持
- wms - SearchKey & AlterKey 使用
- 【Silverlight】Bing Maps学习系列(五):绘制多边形(Polygon)图形
- poj3321 Apple Tree
- iOS app lifecycle some issues
- Brookstone推出高性能的HDMI掌上投影仪
- int(*p)[]和int(**p)[]
- 类模板
- hdu 4245 A Famous Music Composer--map
- 线程状态间的关系