一、数据集成
1、smartClient服务框架(使用SQL或者JPA/Hibernate) 推荐!!!
2、DSRequest & DSResponse
DSRequest: data sortBy startRow endRow oldValues DSResponse: status data startRow endRow totalRows error
a. 请求响应转化(如果使用SC服务框架,则不需要转化,直接获取数据)
RestDataSource class 同时扮演着请求响应的四个核心角色
4、recordXPath方式绑定XML和JSON服务
isc.DataSourse.create({ ID: "sourseDS", dataFormat: "xml" dataURL: "data/xxx.xml" recordXPath: "//item" fields: [ {name: "title", valueXPath: "", type: "text"}, {name: "link"}, ] });
本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。
我来说两句