<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ## 一、概述 平臺提供了一套富客戶端子框架,可以便捷的開發基于客戶端/服務器模式或兩層架構的應用; 典型登陸界面如下: ![](https://img.kancloud.cn/2a/39/2a399ea988f8d7dee7e28f48d14fe845_400x225.png) 主界面如下: ![](https://img.kancloud.cn/d1/d0/d1d037addcf934a34268fe51e77f87b5_1366x768.png) ![](https://img.kancloud.cn/e5/4c/e54c50b844aa69025c698e45aa9597e5_1366x768.png) ## 二、開發步驟 1、建表; 代碼生成: ![](https://img.kancloud.cn/72/dd/72ddc90a9d7b126d583cd4df1d2d202a_768x441.png) 需要注意的是,這里建的表生成是實體,是富客戶端專用的實體; ![](https://img.kancloud.cn/be/50/be501edf421acc9c25a2ebc540dc3cb9_1287x593.png) 2、數據庫訪問; ![](https://img.kancloud.cn/27/8a/278a7d8b449cb7644a05ae63d4dfc424_552x157.png) ``` TempDao tempdao = new TempDao(); tempdao.add(tz); ``` 3、事務在業務中的支持 默認的,每個dao的CUD方法在獨立的事務中; 如果需要業務中組合的dao方法能夠共享一個事務,則調用如下; ``` TempDao tempdao = new TempDao(); Connection connection = null; try { connection = tempdao.getConnection(); int fenxiaoRowNumber = fenxiaoSheet.getPhysicalNumberOfRows(); int curInsertRow = 0; for (int i = 1; i < fenxiaoRowNumber; i++) { Row curRow = fenxiaoSheet.getRow(i); TempFxctmxb tz = new TempFxctmxb(); RowObjectMapper.mapRowToObject(tz, curRow, 55, "yyyy/MM/dd HH:mm"); tempdao.addInTransaction(connection, tz); // Row curDRow = destSheet.createRow(i); RowObjectMapper.mapObjectToRow(tz, curDRow); } tempdao.commit(connection); JOptionPane.showMessageDialog(this, "成功處理完畢.", "Uniframework消息", JOptionPane.WARNING_MESSAGE); } catch (Exception ex) { tempdao.rollback(connection); SwingLogger.logger.error("wbase:", ex); } ``` >[danger] 這里需要特別注意,由于是自行控制事務,必須嚴格遵循連接使用流程; > 獲取---使用---提交/回滾
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看