jjklm

          執(zhí)行存儲過程

          <Code Name="SMS_DocumentType" Description="文檔類型">
          ?<Table>SMS_documentType</Table>
          ?<NameField>Name</NameField>
          ?<ValueField>DocumentTypeID</ValueField>
          ?<PYField>DocumentTypeID</PYField>
          ?<DataModel>SMS_DocumentType</DataModel>
          ?<DataFilter>true</DataFilter>
          ?<ParentField BaseValue="0">parentid</ParentField>
          ?<LeafField Value="1">isleaf</LeafField>
          ?<Type>parentSon</Type>
          </Code>


          /**
          ???? * 執(zhí)行存儲過程
          ???? * @param sql
          ???? * @return
          ???? * @throws SQLException
          ???? */
          ??? public ResultSet queryProcedure(String procedure) throws SQLException {
          ??????? con = super.getConnection();
          ??????? CallableStatement cstmt = null;
          ??????? String strSql = " { call " + procedure + " } ";
          ??????? cstmt = con.prepareCall(strSql);
          ??????? rs = cstmt.executeQuery();
          ??????? return rs;
          ??? }

          posted on 2006-09-13 17:11 天涯孤客 閱讀(52) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 晋江市| 山阴县| 绥化市| 铜梁县| 海盐县| 龙井市| 五峰| 平利县| 香港| 清涧县| 界首市| 恩施市| 凌云县| 镇康县| 读书| 洛南县| 九寨沟县| 甘洛县| 永登县| 资中县| 惠东县| 瑞金市| 固阳县| 任丘市| 唐海县| 洛浦县| 汶川县| 高淳县| 江北区| 三明市| 庆城县| 武宣县| 高阳县| 波密县| 陈巴尔虎旗| 锡林浩特市| 廉江市| 卓尼县| 牙克石市| 绥宁县| 湘潭县|