基於xml查詢的基類

來源:互聯網
上載者:User
我們根據上一個post可以得出一個基本模型

query

 statementcollection statement

 conditioncollection condition

 title titleCollection等對象。

其中query是一個基本的對象,擁有statementcollection conditioncollection這個兩對象。

 主要實現的功能,LoadFromXml() SaveToXml() .

集合類主要是實現IEnumerable等介面。用於Foreach用途,以及一些對象的管理,以及ToXml()方法的實現。

statement對象擁有titleCollection和Content對象,擁有name database屬性。

   name 主要用於標誌statement以及用於填充dataset的表名

   database用於標誌使用哪一個資料庫(由於目前的公司存在as400 和oracle兩個主要的生產server)

statement主要實現ToXml()方法

condition擁有name title type length pairtype屬性,

   type目前包括string integer date

  pairtype包括OneMonth,OneYear,None<用於判斷條件是否需要做一些限制,比如配對的不超過1個月或者1年>

具體的關係圖,明日到公司後再作。洗澡睡覺去也。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.